DAQmxCreateCIGPSTimestampChan
int32 DAQmxCreateCIGPSTimestampChan (TaskHandle taskHandle, const char counter[], const char nameToAssignToChannel[], int32 units, int32 gpsSyncMethod, const char custScaleName[]);
Purpose
Creates a channel that uses a special-purpose counter to take a timestamp and synchronizes that counter to a GPS receiver.
Parameters
Input
|
Name |
Type |
Description |
taskHandle
|
TaskHandle |
The task to which to add the channels that this function creates. |
counter
|
const char []
|
The name of the counter to use to create virtual channels. |
nameToAssignToChannel
|
const char []
|
The name(s) to assign to the created virtual channel(s). If you do not specify a name, NI-DAQmx uses the physical channel name as the virtual channel name. If you specify your own names for nameToAssignToChannel, you must use the names when you refer to these channels in other NI-DAQmx functions.
If you create multiple virtual channels with one call to this function, you can specify a list of names separated by commas. If you provide fewer names than the number of virtual channels you create, NI-DAQmx automatically assigns names to the virtual channels. |
units
|
int32 |
The units to use to return the timestamp.
Value |
|
Description |
DAQmx_Val_Seconds
|
|
Seconds |
DAQmx_Val_FromCustomScale
|
|
From custom scale |
|
gpsSyncMethod
|
int32 |
The method to use to synchronize the counter to a GPS receiver.
Value |
|
Description |
DAQmx_Val_IRIGB
|
|
IRIG-B |
DAQmx_Val_PPS
|
|
PPS |
DAQmx_Val_None
|
|
None |
|
customScaleName
|
const char []
|
The name of a custom scale to apply to the channel. To use this parameter, you must set units to DAQmx_Val_FromCustomScale. If you do not set units to DAQmx_Val_FromCustomScale, you must set customScaleName to NULL. |
Return Value
Name |
Type |
Description |
status
|
int32 |
The error code returned by the function in the event of an error or warning. A value of 0 indicates success. A positive value indicates a warning. A negative value indicates an error. |