nScopeAPI  v0.8
nScopeAPI_analogOutputs.h
Go to the documentation of this file.
1 /*******************************************************
2  nScopeAPI - Multi-Platform library for
3  communication with nScope.
4 
5  David Meyer
6 
7  10/23/2014
8 
9  Copyright 2015 nLabs, All Rights Reserved.
10 
11 ********************************************************/
12 
18 #ifndef NSCOPEAPI_ANALOGOUTPUTS_H__
19 #define NSCOPEAPI_ANALOGOUTPUTS_H__
20 
21 
22 #ifdef __cplusplus
23 extern "C" {
24 #endif
25 
40  NSCOPE_API ErrorType nScope_set_AX_on(ScopeHandle nScope, int aChannel, bool aOn);
41 
56  NSCOPE_API ErrorType nScope_get_AX_on(ScopeHandle nScope, int aChannel, bool* aOn);
57 
71  NSCOPE_API ErrorType nScope_set_AX_frequency_in_hz(ScopeHandle nScope, int aChannel, double frequency);
72 
84  NSCOPE_API ErrorType nScope_get_AX_frequency_in_hz(ScopeHandle nScope, int aChannel, double* frequency);
85 
100 
112  NSCOPE_API ErrorType nScope_get_AX_wave_type(ScopeHandle nScope, int aChannel, WaveType* wave);
113 
127  NSCOPE_API ErrorType nScope_set_AX_unipolar(ScopeHandle nScope, int aChannel, bool isUnipolar);
128 
142  NSCOPE_API ErrorType nScope_get_AX_unipolar(ScopeHandle nScope, int aChannel, bool* isUnipolar);
143 
159  NSCOPE_API ErrorType nScope_set_AX_amplitude(ScopeHandle nScope, int aChannel, double amplitude);
160 
174  NSCOPE_API ErrorType nScope_get_AX_amplitude(ScopeHandle nScope, int aChannel, double* amplitude);
175 
176 #ifdef __cplusplus
177 }
178 #endif
179 
180 #endif
NSCOPE_API ErrorType nScope_set_AX_on(ScopeHandle nScope, int aChannel, bool aOn)
Set the analog channel (on/off)
#define NSCOPE_API
Definition: nScopeAPI_defs.h:29
NSCOPE_API ErrorType nScope_set_AX_wave_type(ScopeHandle nScope, int aChannel, WaveType wave)
Set the analog channel output wave type.
ErrorType
Definition: nScopeAPI_defs.h:42
NSCOPE_API ErrorType nScope_set_AX_amplitude(ScopeHandle nScope, int aChannel, double amplitude)
Set the analog channel amplitude.
NSCOPE_API ErrorType nScope_get_AX_frequency_in_hz(ScopeHandle nScope, int aChannel, double *frequency)
Get the analog channel output frequency and store it in the given variable.
NSCOPE_API ErrorType nScope_set_AX_frequency_in_hz(ScopeHandle nScope, int aChannel, double frequency)
Set the analog channel output frequency.
NSCOPE_API ErrorType nScope_get_AX_unipolar(ScopeHandle nScope, int aChannel, bool *isUnipolar)
Get the analog channel unipolarity.
NSCOPE_API ErrorType nScope_set_AX_unipolar(ScopeHandle nScope, int aChannel, bool isUnipolar)
Set the analog channel unipolarity.
struct scopeDev_ * ScopeHandle
Definition: nScopeAPI_defs.h:32
NSCOPE_API ErrorType nScope_get_AX_amplitude(ScopeHandle nScope, int aChannel, double *amplitude)
Get the analog channel amplitude.
NSCOPE_API ErrorType nScope_get_AX_on(ScopeHandle nScope, int aChannel, bool *aOn)
Get the analog channel (on/off) and store it in aOn.
NSCOPE_API ErrorType nScope_get_AX_wave_type(ScopeHandle nScope, int aChannel, WaveType *wave)
Get the analog channel output wave type.
WaveType
Definition: nScopeAPI_defs.h:96