Functions for controlling auxiliary analog and digital IO.
More...
|
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.
|
|
Functions for controlling auxiliary analog and digital IO.
◆ AbsScpiClient_GetAllAnalogOutputs()
int AbsScpiClient_GetAllAnalogOutputs |
( |
AbsScpiClientHandle |
handle, |
|
|
float |
voltages_out[], |
|
|
unsigned int |
count |
|
) |
| |
Query many analog outputs' set points.
- Parameters
-
[in] | handle | SCPI client |
[out] | voltages_out | array to store the returned voltages, one per channel |
[in] | count | length 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] | handle | SCPI client |
[out] | levels_out | pointer 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] | handle | SCPI client |
[in] | channel | target channel index, 0-7 |
[out] | voltage_out | pointer 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] | handle | SCPI client |
[in] | channel | target channel index, 0-3 |
[out] | level_out | pointer 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] | handle | SCPI client |
[out] | voltages_out | array to store the returned voltages |
[in] | count | length 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] | handle | SCPI client |
[out] | levels_out | pointer 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] | handle | SCPI client |
[in] | channel | target channel index, 0-7 |
[out] | voltage_out | pointer 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] | handle | SCPI client |
[in] | channel | target channel index, 0-3 |
[out] | level_out | pointer 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] | handle | SCPI client |
[in] | voltages | array of voltages, one per channel |
[in] | count | number 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] | handle | SCPI client |
[in] | levels_mask | mask 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] | handle | SCPI client |
[in] | channel | target channel index, 0-7 |
[in] | voltage | desired 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] | handle | SCPI client |
[in] | channel | target channel index, 0-3 |
[in] | level | desired 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] | handle | SCPI client |
[in] | channels | bitmask of channels to target, one bit per channel |
[in] | voltage | target output voltage |
- Returns
- 0 on success or a negative error code.