This function gets current order of AD conversion across channels. See document of AioGetAiChannelSequence of API-USBP.
Parameters: | sequence (list) – See document of AioGetAiChannelSequence of API-USBP. |
---|---|
Returns: | See document of AioGwetAiChannelSequence of API-USBP. |
This function returns number of channels currently used for analog input.
Returns: | Number of channels. |
---|
This method returns events for analog input. See document of AioGetAiEvent of API-USBP.
Returns: | See document of AioGetAiEvent of API-USBP. |
---|
This method returns current number of sampling times. See document of AioGetAiEventSamplingTimes of API-USBP.
Returns: | See document of AioGetAiEventSamplingTimes of API-USBP. |
---|
This method returns current number of transfer times. See document of AioGetAiEventTransferTimes of API-USBP.
Returns: | See document of AioGetAiEventTransferTimes of API-USBP. |
---|
This function returns current input method of analog inputs.
Returns: | 0 for single-ended, 1 for differential. |
---|
This function returns maximum number of analog input channels.
Returns: | Maximum number of analog input channels. |
---|
This method returns current memory type for data recording. See document of AioGetAiMemoryType of API-USBP.
Returns: | See document of AioGetAiMemoryType of API-USBP. |
---|
This method returns range an analog input channel.
Parameters: | channel (int) – Analog input channel. |
---|---|
Returns: | Range ID. getRangeString() can be used to get range string from range IO. |
This method returns crrent repeat count. See document of AioGetAiRepeatCount of API-USBP.
Returns: | See document of AioGetAiRepeatCount of API-USBP. |
---|
This function returns resolution of analog input.
Returns: | 0 for no-analog-input, 12 for 12bit resolution, 16 for 16bit resolution. |
---|
This method returns current number of sampling counts. This method works only when device-buffer-mode is set by pyAPISUBP.AIO.getAiTransferMode() See document of AioGetAiSamplingCount of API-USBP.
Returns: | See document of AioGetAiSamplingCount of API-USBP. |
---|
This method returns sampling data from device memory. This method works only when device-buffer-mode is set by pyAPISUBP.AIO.getAiTransferMode() See document of AioGetAiSamplingData of API-USBP.
Parameters: | samplingTimes (int) – Size of buffer for data receiving. |
---|---|
Returns: | See document of AioGetAiSamplingData of API-USBP. |
This method returns sampling data (in voltage/current) from device memory. This method works only when device-buffer-mode is set by pyAPISUBP.AIO.getAiTransferMode() See document of AioGetAiSamplingDataEx of API-USBP.
Parameters: | samplingTimes (int) – Size of buffer for data receiving. |
---|---|
Returns: | See document of AioGetAiSamplingDataEx of API-USBP. |
This method returns current analog input status. pyAPISUBP.AIO has status ID as class attributes (e.g. pyAPIUSBP.AIO.AIS_BUSY). See document of AioGetAiStatus of API-USBP.
Returns: | See document of AioGetAiStatus of API-USBP. |
---|
This method returns current number of sampling counts when stop trigger is input. This method works only when device-buffer-mode is set by pyAPISUBP.AIO.getAiTransferMode() See document of AioGetAiStopTriggerCount of API-USBP.
Returns: | See document of AioGetAiStopTriggerCount of API-USBP. |
---|
This method returns number of transfers when stop trigger is input. This method works only when user-buffer-mode is set by pyAPISUBP.AIO.getAiTransferMode() See document of AioGetAiStopTriggerTransferCount of API-USBP.
Returns: | See document of AioGetAiStopTriggerTransferCount of API-USBP. |
---|
This method returns current number of data transferred to user buffer. is input. This method works only when user-buffer-mode is set by pyAPISUBP.AIO.getAiTransferMode() See document of AioGetAiTransferCount of API-USBP.
Returns: | See document of AioGetAiTransferCount of API-USBP. |
---|
This method returns how many times user buffer is overwritten. This method works only when user-buffer-mode is set by pyAPISUBP.AIO.getAiTransferMode() See document of AioGetAiTransferLap of API-USBP.
Returns: | See document of AioGetAiTransferLap of API-USBP. |
---|
This method returns current data transfer method of analog input.
Returns: | pyAPIUSBP.AIO.CONST_DEVICE_BUFFER for device-buffer-mode, pyAPIUSBP.AIO.CONST_USER_BUFFER for user-buffer-mode. |
---|
This function returns number of channels currently used for analog output.
Returns: | Number of channels. |
---|
This method returns events for analog output. See document of AioGetAoEvent of API-USBP.
Returns: | See document of AioGetAoEvent of API-USBP. |
---|
This method returns current number of sampling times. See document of AioGetAoEventSamplingTimes of API-USBP.
Returns: | See document of AioGetAoEventSamplingTimes of API-USBP. |
---|
This method returns current number of transfer times. See document of AioGetAoEventTransferTimes of API-USBP.
Returns: | See document of AioGetAoEventTransferTimes of API-USBP. |
---|
This function returns maximum number of analog output channels.
Returns: | Maximum number of analog output channels. |
---|
This method returns current memory type for data output. See document of AioGetAoMemoryType of API-USBP.
Returns: | See document of AioGetAoMemoryType of API-USBP. |
---|
This method returns range an analog output channel.
Parameters: | channel (int) – Analog output channel. |
---|---|
Returns: | Range ID. getRangeString() can be used to get range string from range IO. |
This method returns crrent repeat count. See document of AioGetAoRepeatCount of API-USBP.
Returns: | See document of AioGetAoRepeatCount of API-USBP. |
---|
This function returns resolution of analog output.
Returns: | 0 for no-analog-input, 12 for 12bit resolution, 16 for 16bit resolution. |
---|
This method returns current number of sampling counts. See document of AioGetAoSamplingCount of API-USBP.
Returns: | See document of AioGetAoSamplingCount of API-USBP. |
---|
This method returns data size per sample when user-buffer-mode is set by pyAPISUBP.AIO.getAoTransferMode(). See document of AioGetAoSamplingDataSize of API-USBP.
Returns: | See document of AioGetAoSamplingDataSize of API-USBP. |
---|
This method returns current number of sampling times. See document of AioGetAoSamplingTimes of API-USBP.
Returns: | See document of AioGetAoSamplingTimes of API-USBP. |
---|
This method returns current analog input status. pyAPISUBP.AIO has status ID as class attributes (e.g. pyAPIUSBP.AIO.AOS_BUSY). See document of AioGetAoStatus of API-USBP.
Returns: | See document of AioGetAoStatus of API-USBP. |
---|
This method returns current number of data transferred to user buffer. is input. This method works only when user-buffer-mode is set by pyAPISUBP.AIO.getAiTransferMode() See document of AioGetAiTransferCount of API-USBP.
Returns: | See document of AioGetAiTransferCount of API-USBP. |
---|
This method returns current data transfer method of analog output.
Returns: | pyAPIUSBP.AIO.CONST_DEVICE_BUFFER for device-buffer-mode, pyAPIUSBP.AIO.CONST_USER_BUFFER for user-buffer-mode. |
---|
This method gets current status of digital filter for external signal. See document of AioGetControlFilter of API-USBP.
Parameters: | signal (int) – See document of AioGetControlFilter |
---|---|
Returns: | See document of AioGetControlFilter |
This method returns current filter setting for digital input. See ocument of AioGetDiFilter of API-USBP.
Parameters: | bit (int) – See ocument of AioGetDiFilter of API-USBP. |
---|---|
Returns: | See ocument of AioGetDiFilter of API-USBP. |
This method returns current direction of digital I/O port. See document of AioGetDioDirection of API-USBP.
Parameters: | direction (int) – See document of AioGetDioDirection of API-USBP. |
---|
This method translates error code to error string.
Parameters: | code (int) – Error code of Contec API-USBP AIO functions. |
---|
This method reads a logical input bit.
Parameters: | bitNo (int) – Logical input bit number. |
---|---|
Returns: | Data (0 or 1). |
This method reads 1 byte data from a logical input port.
Parameters: | portNo (int) – Logical input port number. The first port of the device is 0, and the following ports are 1, 2, 3... Use getMaxPorts() to query how many ports your device has. |
---|---|
Returns: | Data (0-255). |
This method reads multiple analog input channels.
Parameters: | channelList (list) – List of channel numbers. |
---|---|
Returns: | List of values (range of values depends on the device). |
This method reads multiple analog input channels and converts them to voltage/current.
Parameters: | channelList (list) – List of channel numbers. |
---|---|
Returns: | List of values (range of values depends on the device). |
This method writes data to multiple analog output channels.
Parameters: |
|
---|
This method writes data (in voltage or current) to multiple analog output channels.
Parameters: |
|
---|
This method writes 0 or 1 to a logical output bit.
Parameters: |
|
---|
This method writes 1 byte data to a logical output port.
Parameters: |
|
---|
This method resets device buffer for analog input. This method works only when device-buffer-mode is set by pyAPISUBP.AIO.getAiTransferMode() See document of AioResetAiMemory of API-USBP.
Returns: | See document of AioResetAiMemory of API-USBP. |
---|
This method resets analog input status. See document of AioResetAiStatus of API-USBP.
Returns: | See document of AioResetAiStatus of API-USBP. |
---|
This method resets device buffer for analog input. See document of AioResetAoMemory of API-USBP.
Returns: | See document of AioResetAoMemory of API-USBP. |
---|
This method resets analog output status. See document of AioResetAoStatus of API-USBP.
Returns: | See document of AioResetAoStatus of API-USBP. |
---|
This method sets callback function for event. See document of AioSetAiCallBackProc of API-USBP.
Parameters: |
|
---|
This function sets order of AD conversion across channels. See document of AioSetAiChannelSequence of API-USBP.
Parameters: |
|
---|
This function sets number of channels for analog input.
Parameters: | channels (int) – Number of channels. |
---|
This method sets events for analog input. See document of AioSetAiEvent of API-USBP.
Parameters: |
|
---|
This method sets number of sampling times. See document of AioSetAiEventSamplingTimes of API-USBP.
Parameters: | samplingTimes (int) – See document of AioSetAiEventSamplingTimes of API-USBP. |
---|
This method sets number of transfer times. See document of AioSetAiEventTransferTimes of API-USBP.
Parameters: | transferTimes (int) – See document of AioSetAiEventTransferTimes of API-USBP. |
---|
This function sets input method of analog inputs.
Parameters: | method (int) – 0 for single-ended, 1 for differential. |
---|
This method sets memory type for data recording. See document of AioSetAiMemoryType of API-USBP.
Parameters: | memType (int) – See document of AioSetAiMemoryType of API-USBP. |
---|
This method sets range of an analog input channel.
Parameters: |
|
---|
This method sets range of all analog input channels.
Parameters: | AiRange (int) – Range ID. pyAPISUBP.AIO has Range ID as class attributes. That is, you can specify range like pyAPISUBP.AIO.P5 |
---|
See document of AioSetAiStartInRange of API-USBP.
See document of AioSetAiStartInRangeEx of API-USBP.
See document of AioSetAiStartLevelEx of API-USBP.
See document of AioSetAiStartOutRange of API-USBP.
See document of AioSetAiStartOutRangeEx of API-USBP.
See document of AioSetAiStopInRange of API-USBP.
See document of AioSetAiStopInRangeEx of API-USBP.
See document of AioSetAiStopLevelEx of API-USBP.
See document of AioSetAiStopOutRange of API-USBP.
See document of AioSetAiStopOutRangeEx of API-USBP.
This method sets data transfer method of analog input.
Parameters: | mode (int) – pyAPIUSBP.AIO.CONST_DEVICE_BUFFER for device-buffer-mode, pyAPIUSBP.AIO.CONST_USER_BUFFER for user-buffer-mode. |
---|
This method sets callback function for event. See document of AioSetAoCallBackProc of API-USBP.
Parameters: |
|
---|
This function sets number of channels for analog output.
Parameters: | channels (int) – Number of channels. |
---|
This method sets events for analog output. See document of AioSetAoEvent of API-USBP.
Parameters: |
|
---|
This method sets number of sampling times. See document of AioSetAoEventSamplingTimes of API-USBP.
Parameters: | samplingTimes (int) – See document of AioSetAoEventSamplingTimes of API-USBP. |
---|
This method sets number of transfer times. See document of AioSetAoEventTransferTimes of API-USBP.
Parameters: | transferTimes (int) – See document of AioSetAoEventTransferTimes of API-USBP. |
---|
This method sets memory type for data output. See document of AioSetAoMemoryType of API-USBP.
Parameters: | memType (int) – See document of AioSetAoMemoryType of API-USBP. |
---|
This method sets range of an analog output channel.
Parameters: |
|
---|
This method sets range of all analog output channels.
Parameters: | AiRange (int) – Range ID. pyAPISUBP.AIO has Range ID as class attributes. That is, you can specify range like pyAPISUBP.AIO.P5 |
---|
This method sets output data. See document of AioSetAoSamplingData of API-USBP.
Parameters: |
|
---|
This method sets output data in voltage/current. See document of AioSetAoSamplingData of API-USBP.
Parameters: |
|
---|
This method sets user buffer for analog output. This method works This method works only when user-buffer-mode is set by pyAPISUBP.AIO.getAoTransferMode(). See document of AioSetAoTransferData of API-USBP.
Parameters: |
|
---|
This method sets data transfer method of analog output.
Parameters: | mode (int) – pyAPIUSBP.AIO.CONST_DEVICE_BUFFER for device-buffer-mode, pyAPIUSBP.AIO.CONST_USER_BUFFER for user-buffer-mode. |
---|
See document of AioSetCntCallBackProc of API-USBP.
See document of AioSetCntComparisonReg of API-USBP.
See document of AioSetCntPresetReg of API-USBP.
This method sets digital filter for external signal. See document of AioSetControlFilter of API-USBP.
Parameters: |
|
---|
This method sets filter for digital input. See ocument of AioSetDiFilter of API-USBP.
Parameters: |
|
---|
This method sets direction of digital I/O port. See document of AioSetDioDirection of API-USBP.
Parameters: | direction (int) – See document of AioSetDioDirection of API-USBP. |
---|
See document of AioSetTmCallBackProc of API-USBP.
This method reads an analog input channel.
Parameters: | channel (int) – Channel number. |
---|---|
Returns: | Value (range depends on the device). |
This method reads an analog input channel and converts it to voltage/current.
Parameters: | channel (int) – Channel number. |
---|---|
Returns: | Value (range depends on the device). |
This method writes data to an analog output channel.
Parameters: |
|
---|
This method writes data (in voltage or current) to an analog output channel.
Parameters: |
|
---|
Get type of the device. Device name can be obtained as the second element of device information returned by getAioDeviceType().
Parameters: | device (str) – Model name of a device. |
---|---|
Returns: | Device type. |