Samples

The MATLAB® Command Window provides you with a list of provided samples. To do this, use the command:

TwinCAT.ADS.Samples.List
Samples 1:

You can access the samples by clicking on the blue Start link. To do this, the sample code is copied to your user directory so that you do not change the original sample. You can work with the copy of the sample accordingly and try it out.

Also available for displaying and starting individual samples:

TwinCAT.ADS.Samples.Show(SampleName)
TwinCAT.ADS.Samples.Start(SampleName)

The argument SampleName is to be passed as a string, e.g.:

TwinCAT.ADS.Samples.Start('ADS Server Basics')

The list of samples can also be obtained from the documentation built into MATLAB® by clicking on the link Show a list of TE1410 samples.

Samples 2: