RTP Series API Programming Reference
1.2.1
|
Functions | |
EXPORT int | PwrSnsr_Write (SessionID Vi, const char *Channel, int DataBufferSize, unsigned char Data[]) |
Write a byte array to the meter. More... | |
EXPORT int | PwrSnsr_ReadByteArray (SessionID Vi, const char *Channel, int Count, int ValBufferSize, unsigned char Val[], int *ValActualSize) |
Reads byte array from the meter. More... | |
EXPORT int | PwrSnsr_ReadControl (SessionID Vi, const char *Channel, int Count, int ValBufferSize, unsigned char Val[], int *ValActualSize) |
Reads a control transfer on the USB. More... | |
Sensor RawIO functions
EXPORT int PwrSnsr_ReadByteArray | ( | SessionID | Vi, |
const char * | Channel, | ||
int | Count, | ||
int | ValBufferSize, | ||
unsigned char | Val[], | ||
int * | ValActualSize | ||
) |
Reads byte array from the meter.
Vi | The SessionID handle that you obtain from the PwrSnsr_init function. The handle identifies a particular instrument session. |
Channel | Channel number. For single instruments, set this to "CH1". |
Count | Maximum count of bytes to return. |
ValBufferSize | Size of the buffer. |
Val | Byte array from the USB. |
ValActualSize | Actual size of the returned array in bytes. |
EXPORT int PwrSnsr_ReadControl | ( | SessionID | Vi, |
const char * | Channel, | ||
int | Count, | ||
int | ValBufferSize, | ||
unsigned char | Val[], | ||
int * | ValActualSize | ||
) |
Reads a control transfer on the USB.
Vi | The SessionID handle that you obtain from the PwrSnsr_init function. The handle identifies a particular instrument session. |
Channel | Channel number. For single instruments, set this to "CH1". |
Count | Maximum count to return. |
ValBufferSize | Size of the buffer. |
Val | Byte array from a USB control transfer. |
ValActualSize | Actual size of the returned array in bytes. |
EXPORT int PwrSnsr_Write | ( | SessionID | Vi, |
const char * | Channel, | ||
int | DataBufferSize, | ||
unsigned char | Data[] | ||
) |
Write a byte array to the meter.
Vi | The SessionID handle that you obtain from the PwrSnsr_init function. The handle identifies a particular instrument session. |
Channel | Channel number. For single instruments, set this to "CH1". |
DataBufferSize | Size of the buffer in bytes. |
Data | Data to send. |