ABS SCPI Driver 0.2.0
ABS SCPI driver library
Loading...
Searching...
No Matches
Aux IO Control

Functions for controlling auxiliary analog and digital IO. More...

+ Collaboration diagram for Aux IO Control:

Functions

int AbsScpiClient_SetAnalogOutput (AbsScpiClientHandle handle, unsigned int channel, float voltage)
 Set a single analog output's voltage.
 
int AbsScpiClient_SetAllAnalogOutputs (AbsScpiClientHandle handle, const float voltages[], unsigned int count)
 Set many analog outputs.
 
int AbsScpiClient_SetMultipleAnalogOutputs (AbsScpiClientHandle handle, unsigned int channels, float voltage)
 Set multiple analog outputs to the same value.
 
int AbsScpiClient_GetAnalogOutput (AbsScpiClientHandle handle, unsigned int channel, float *voltage_out)
 Query on analog output's set point.
 
int AbsScpiClient_GetAllAnalogOutputs (AbsScpiClientHandle handle, float voltages_out[], unsigned int count)
 Query many analog outputs' set points.
 
int AbsScpiClient_SetDigitalOutput (AbsScpiClientHandle handle, unsigned int channel, bool level)
 Set a single digital output.
 
int AbsScpiClient_SetAllDigitalOutputs (AbsScpiClientHandle handle, unsigned int levels_mask)
 Set all digital outputs.
 
int AbsScpiClient_GetDigitalOutput (AbsScpiClientHandle handle, unsigned int channel, bool *level_out)
 Query the state of a digital output.
 
int AbsScpiClient_GetAllDigitalOutputs (AbsScpiClientHandle handle, unsigned int *levels_out)
 Query the states of all digital outputs.
 
int AbsScpiClient_MeasureAnalogInput (AbsScpiClientHandle handle, unsigned int channel, float *voltage_out)
 Measure a single analog input.
 
int AbsScpiClient_MeasureAllAnalogInputs (AbsScpiClientHandle handle, float voltages_out[], unsigned int count)
 Measure many analog inputs.
 
int AbsScpiClient_MeasureDigitalInput (AbsScpiClientHandle handle, unsigned int channel, bool *level_out)
 Measure a single digital input.
 
int AbsScpiClient_MeasureAllDigitalInputs (AbsScpiClientHandle handle, unsigned int *levels_out)
 Measure all digital inputs.
 

Detailed Description

Functions for controlling auxiliary analog and digital IO.

Function Documentation

◆ AbsScpiClient_GetAllAnalogOutputs()

int AbsScpiClient_GetAllAnalogOutputs ( AbsScpiClientHandle  handle,
float  voltages_out[],
unsigned int  count 
)

Query many analog outputs' set points.

Parameters
[in]handleSCPI client
[out]voltages_outarray to store the returned voltages, one per channel
[in]countlength of the array (must not be greater than the total channel count)
Returns
0 on success or a negative error code.

◆ AbsScpiClient_GetAllDigitalOutputs()

int AbsScpiClient_GetAllDigitalOutputs ( AbsScpiClientHandle  handle,
unsigned int *  levels_out 
)

Query the states of all digital outputs.

Parameters
[in]handleSCPI client
[out]levels_outpointer to store the returned levels, one bit per channel
Returns
0 on success or a negative error code.

◆ AbsScpiClient_GetAnalogOutput()

int AbsScpiClient_GetAnalogOutput ( AbsScpiClientHandle  handle,
unsigned int  channel,
float *  voltage_out 
)

Query on analog output's set point.

Parameters
[in]handleSCPI client
[in]channeltarget channel index, 0-7
[out]voltage_outpointer to store the returned voltage
Returns
0 on success or a negative error code.

◆ AbsScpiClient_GetDigitalOutput()

int AbsScpiClient_GetDigitalOutput ( AbsScpiClientHandle  handle,
unsigned int  channel,
bool *  level_out 
)

Query the state of a digital output.

Parameters
[in]handleSCPI client
[in]channeltarget channel index, 0-3
[out]level_outpointer to the returned output level
Returns
0 on success or a negative error code.

◆ AbsScpiClient_MeasureAllAnalogInputs()

int AbsScpiClient_MeasureAllAnalogInputs ( AbsScpiClientHandle  handle,
float  voltages_out[],
unsigned int  count 
)

Measure many analog inputs.

Parameters
[in]handleSCPI client
[out]voltages_outarray to store the returned voltages
[in]countlength of the array (must not be greater than the total channel count)
Returns
0 on success or a negative error code.

◆ AbsScpiClient_MeasureAllDigitalInputs()

int AbsScpiClient_MeasureAllDigitalInputs ( AbsScpiClientHandle  handle,
unsigned int *  levels_out 
)

Measure all digital inputs.

Parameters
[in]handleSCPI client
[out]levels_outpointer to the returned levels, one bit per channel
Returns
0 on success or a negative error code.

◆ AbsScpiClient_MeasureAnalogInput()

int AbsScpiClient_MeasureAnalogInput ( AbsScpiClientHandle  handle,
unsigned int  channel,
float *  voltage_out 
)

Measure a single analog input.

Parameters
[in]handleSCPI client
[in]channeltarget channel index, 0-7
[out]voltage_outpointer to the returned voltage
Returns
0 on success or a negative error code.

◆ AbsScpiClient_MeasureDigitalInput()

int AbsScpiClient_MeasureDigitalInput ( AbsScpiClientHandle  handle,
unsigned int  channel,
bool *  level_out 
)

Measure a single digital input.

Parameters
[in]handleSCPI client
[in]channeltarget channel index, 0-3
[out]level_outpointer to the returned input state
Returns
0 on success or a negative error code.

◆ AbsScpiClient_SetAllAnalogOutputs()

int AbsScpiClient_SetAllAnalogOutputs ( AbsScpiClientHandle  handle,
const float  voltages[],
unsigned int  count 
)

Set many analog outputs.

Parameters
[in]handleSCPI client
[in]voltagesarray of voltages, one per channel
[in]countnumber of channels to target (must not be greater than the total channel count)
Returns
0 on success or a negative error code.

◆ AbsScpiClient_SetAllDigitalOutputs()

int AbsScpiClient_SetAllDigitalOutputs ( AbsScpiClientHandle  handle,
unsigned int  levels_mask 
)

Set all digital outputs.

Parameters
[in]handleSCPI client
[in]levels_maskmask of desired output states, one bit per channel
Returns
0 on success or a negative error code.

◆ AbsScpiClient_SetAnalogOutput()

int AbsScpiClient_SetAnalogOutput ( AbsScpiClientHandle  handle,
unsigned int  channel,
float  voltage 
)

Set a single analog output's voltage.

Parameters
[in]handleSCPI client
[in]channeltarget channel index, 0-7
[in]voltagedesired voltage
Returns
0 on success or a negative error code.

◆ AbsScpiClient_SetDigitalOutput()

int AbsScpiClient_SetDigitalOutput ( AbsScpiClientHandle  handle,
unsigned int  channel,
bool  level 
)

Set a single digital output.

Parameters
[in]handleSCPI client
[in]channeltarget channel index, 0-3
[in]leveldesired output level
Returns
0 on success or a negative error code.

◆ AbsScpiClient_SetMultipleAnalogOutputs()

int AbsScpiClient_SetMultipleAnalogOutputs ( AbsScpiClientHandle  handle,
unsigned int  channels,
float  voltage 
)

Set multiple analog outputs to the same value.

Parameters
[in]handleSCPI client
[in]channelsbitmask of channels to target, one bit per channel
[in]voltagetarget output voltage
Returns
0 on success or a negative error code.