File MIES_MiesUtilities_Device.ipf¶
This file holds MIES utility functions for Device handling.
Functions
-
string GetAllDevices()¶
Returns a list of all devices, e.g. “ITC18USB_Dev_0;…” which were locked at some point.
-
static variable DeviceHasUserComments(string device)¶
-
string GetAllDevicesWithContent(variable contentType = defaultValue)¶
Returns a list of all devices, e.g. “ITC18USB_Dev_0;”, which have content.
- Parameters:
contentType – [optional, defaults to CONTENT_TYPE_SWEEP] type of content to look for, one of CONTENT_TYPES
-
variable GetHardwareType(string device)¶
Return the hardware type of the device.
UTF_NOINSTRUMENTATION
- Returns:
One of HardwareDACTypeConstants
-
variable IsDeviceNameFromSutter(string device)¶
-
variable ParseDeviceString(string device, string *deviceType, string *deviceNumber)¶
Parse a device string: for ITC devices of the form X_DEV_Y, where X is from DEVICE_TYPES_ITC and Y from DEVICE_NUMBERS. for NI devices of the form X, where X is from DAP_GetNIDeviceList() for Sutter devices of the form IPA_E_Xxxxxx, where X must be present.
Returns the result in deviceType and deviceNumber. Currently the parsing is successfull if for ITC devices X and Y are non-empty. for NI devices X is non-empty. for Sutter devices if the name starts with IPA_E_ and is at least 7 characters long deviceNumber is empty for NI devices as it does not apply
UTF_NOINSTRUMENTATION
- Parameters:
device – [in] input device string X_DEV_Y
deviceType – [out] returns the device type X
deviceNumber – [out] returns the device number Y
- Returns:
one on successfull parsing, zero on error
-
string GetListOfUnlockedDevices()¶
Return the list of unlocked
DA_Ephyspanels.
-
string GetListOfLockedDevices()¶
Return the list of locked devices.
-
string GetListOfLockedITC1600Devices()¶
Return the list of locked ITC1600 devices.
-
variable IsITC1600(string device)¶
Check that the device is of type ITC1600.
-
variable IsDeviceActiveWithBGTask(string device, string task)¶
Check wether the given background task is running and that the device is active in multi device mode.
Device IDs are only unique per hardware type, so the device is identified by its device ID and hardware type. The list of the multi device DAQ timer holds no hardware type, there the device is identified by its name.
-
variable GetNextRandomNumberForDevice(string device)¶
Return the next random number using the device specific RNG seed.