RTP Series API Programming Reference  1.2.1
Sensor RawIO

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...
 

Detailed Description

Sensor RawIO functions

Function Documentation

◆ PwrSnsr_ReadByteArray()

EXPORT int PwrSnsr_ReadByteArray ( SessionID  Vi,
const char *  Channel,
int  Count,
int  ValBufferSize,
unsigned char  Val[],
int *  ValActualSize 
)

Reads byte array from the meter.

Parameters
ViThe SessionID handle that you obtain from the PwrSnsr_init function. The handle identifies a particular instrument session.
ChannelChannel number. For single instruments, set this to "CH1".
CountMaximum count of bytes to return.
ValBufferSizeSize of the buffer.
ValByte array from the USB.
ValActualSizeActual size of the returned array in bytes.
Returns
Success (0) or error code.

◆ PwrSnsr_ReadControl()

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.

Parameters
ViThe SessionID handle that you obtain from the PwrSnsr_init function. The handle identifies a particular instrument session.
ChannelChannel number. For single instruments, set this to "CH1".
CountMaximum count to return.
ValBufferSizeSize of the buffer.
ValByte array from a USB control transfer.
ValActualSizeActual size of the returned array in bytes.
Returns
Success (0) or error code.

◆ PwrSnsr_Write()

EXPORT int PwrSnsr_Write ( SessionID  Vi,
const char *  Channel,
int  DataBufferSize,
unsigned char  Data[] 
)

Write a byte array to the meter.

Parameters
ViThe SessionID handle that you obtain from the PwrSnsr_init function. The handle identifies a particular instrument session.
ChannelChannel number. For single instruments, set this to "CH1".
DataBufferSizeSize of the buffer in bytes.
DataData to send.
Returns
Success (0) or error code.