File MIES_TestPulse_Multi.ipf

TPM Multi device background test pulse functionality

Functions

variable TPM_StartTPMultiDeviceLow(string device, variable runModifier = defaultValue, variable fast = defaultValue)

Start the test pulse when MD support is activated.

Parameters:
variable TPM_StartTestPulseMultiDevice(string device, variable fast = defaultValue)

Start a multi device test pulse, always done in background mode.

Parameters:
static variable TPM_BkrdTPMD(string device)
variable TPM_StopTestPulseMultiDevice(string device, variable fast = defaultValue)
static variable TPM_IsDeviceActive(string device)

Return true if the device is registered in the TPMD background task.

static variable TPM_FindDevice(string device)

Return the row of the device in the list of active devices, or NaN if it is not registered.

Device IDs are only unique per hardware type, so both have to match.

static variable TPM_HasActiveDevices()
static variable TPM_RemoveDevice(string device)
static variable TPM_AddDevice(string device)

Variables

static const double TPM_NI_TASKTIMEOUT = 0.5

After this time in s the background task reading data from the ADC device.

will not read multiple TP data sets subsequently to keep up if late

it will however still update once per device

so the gui thread can update at least every ~0.5 seconds (default value here)

however the fifo may run full if the timeout is hit too often

static const double TPM_NI_FIFO_THRESHOLD_SIZE = 1073741824