UL for Linux
User library to access and control supported MCC hardware over the Linux platform
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
Functions
Timer Output

Configure the timer output subsystem. More...

Functions

UlError ulTmrPulseOutStart (DaqDeviceHandle daqDeviceHandle, int timerNum, double *frequency, double *dutyCycle, unsigned long long pulseCount, double *initialDelay, TmrIdleState idleState, PulseOutOption options)
 Starts a timer to generate digital pulses at a specified frequency and duty cycle. More...
 
UlError ulTmrPulseOutStop (DaqDeviceHandle daqDeviceHandle, int timerNum)
 Stops a timer output. More...
 
UlError ulTmrPulseOutStatus (DaqDeviceHandle daqDeviceHandle, int timerNum, TmrStatus *status)
 The status of the timer output operation, if supported. More...
 
UlError ulTmrSetTrigger (DaqDeviceHandle daqDeviceHandle, TriggerType type, int trigChan, double level, double variance, unsigned int retriggerSampleCount)
 Configures the trigger parameters that will be used when ulTmrPulseOutStart() is called with the PO_RETRIGGER or PO_EXTTRIGGER PulseOutOption, when supported. More...
 
UlError ulTmrGetInfo (DaqDeviceHandle daqDeviceHandle, TmrInfoItem infoItem, unsigned int index, long long *infoValue)
 Use with TmrInfoItem to retrieve information about the timer subsystem. More...
 
UlError ulTmrGetInfoDbl (DaqDeviceHandle daqDeviceHandle, TmrInfoItemDbl infoItem, unsigned int index, double *infoValue)
 Use with TmrInfoItemDbl to retrieve information about the timer subsystem. More...
 

Detailed Description

Configure the timer output subsystem.

Function Documentation

UlError ulTmrGetInfo ( DaqDeviceHandle  daqDeviceHandle,
TmrInfoItem  infoItem,
unsigned int  index,
long long *  infoValue 
)

Use with TmrInfoItem to retrieve information about the timer subsystem.

Parameters
daqDeviceHandlethe handle to the DAQ device
infoItemthe timer information to retrieve
indexeither ignored or an index into the infoValue, depending on the value of the infoItem argument
infoValuethe timer information is returned to this variable
Returns
The UL error code.
UlError ulTmrGetInfoDbl ( DaqDeviceHandle  daqDeviceHandle,
TmrInfoItemDbl  infoItem,
unsigned int  index,
double *  infoValue 
)

Use with TmrInfoItemDbl to retrieve information about the timer subsystem.

Parameters
daqDeviceHandlethe handle to the DAQ device
infoItemthe timer information to retrieve
indexeither ignored or an index into the infoValue, depending on the value of the infoItem argument
infoValuethe timer information is returned to this variable
Returns
The UL error code.
UlError ulTmrPulseOutStart ( DaqDeviceHandle  daqDeviceHandle,
int  timerNum,
double *  frequency,
double *  dutyCycle,
unsigned long long  pulseCount,
double *  initialDelay,
TmrIdleState  idleState,
PulseOutOption  options 
)

Starts a timer to generate digital pulses at a specified frequency and duty cycle.

Parameters
daqDeviceHandlethe handle to the DAQ device
timerNumthe timer number
frequencyfrequency of the timer pulse output
dutyCycleduty cycle of the timer pulse output
pulseCountthe number of pulses to generate; set to 0 for continuous pulse output
initialDelaythe amount of time in seconds to wait before the first pulse is generated at the timer output
idleStatethe idle state (high or low)
optionspulse out options
Returns
The UL error code.
UlError ulTmrPulseOutStatus ( DaqDeviceHandle  daqDeviceHandle,
int  timerNum,
TmrStatus status 
)

The status of the timer output operation, if supported.

Parameters
daqDeviceHandlethe handle to the DAQ device
timerNumthe timer number
statusthe status of the background operation
Returns
The UL error code.
UlError ulTmrPulseOutStop ( DaqDeviceHandle  daqDeviceHandle,
int  timerNum 
)

Stops a timer output.

Parameters
daqDeviceHandlethe handle to the DAQ device
timerNumthe timer number to stop
Returns
The UL error code.
UlError ulTmrSetTrigger ( DaqDeviceHandle  daqDeviceHandle,
TriggerType  type,
int  trigChan,
double  level,
double  variance,
unsigned int  retriggerSampleCount 
)

Configures the trigger parameters that will be used when ulTmrPulseOutStart() is called with the PO_RETRIGGER or PO_EXTTRIGGER PulseOutOption, when supported.

Parameters
daqDeviceHandlethe handle to the DAQ device
typethe digital trigger type
trigChanignored
levelignored
varianceignored
retriggerSampleCountignored
Returns
The UL error code.