Set number of samples in one data acquisition cycle
Do not use this C API type definition. Support for this type definition relies on support for the C API, which will be removed in a future release.
Enter the value returned by the function xPCOpenTcpIpPort.
Enter the scope number.
Enter the number of samples you want to acquire in one cycle.
xPCScSetNumSamples function sets the
number of samples for scope
Use this function only when the scope is stopped. Use xPCScGetState to check the state of the
scope. Use the xPCGetScope function
to get the scope number.
For file scopes, the
works with the autorestart parameter.
Autorestart is on — When the scope triggers, the scope starts collecting data into a memory buffer. A background task examines the buffer and writes data to the disk continuously, appending new data to the end of the file. When the scope reaches the number of samples that you specified, it starts collecting data again, overwriting the memory buffer. If the background task cannot keep pace with data collection, data can be lost.
Autorestart is off — When the scope triggers, the scope starts collecting data into a memory buffer. It stops when it has collected the number of samples that you specified. A background task examines the buffer and writes data to the disk continuously, appending the new data to the end of the file.