niFgen_ExportSignal
- Updated2023-02-21
- 3 minute(s) read
ViStatus niFgen_ExportSignal (ViSession vi, ViInt32 signal, ViConstString signalIdentifier, ViConstString outputTerminal);
Purpose
Routes signals (clocks, triggers, and events) to the output terminal you specify.
Any routes created within a session persist after the session closes to prevent signal glitching. To unconfigure signal routes created in previous sessions, set resetDevice in the niFgen_init function to VI_TRUE or use the niFgen_ResetDevice function.
If you export a signal with this function and commit the session, the signal is routed to the output terminal you specify.
Parameters
Input | ||||||||||||||||||||||||||||||||||
Name | Type | Description | ||||||||||||||||||||||||||||||||
vi | ViSession | Identifies your instrument session. vi is obtained from the niFgen_init, niFgen_InitWithOptions, or niFgen_InitializeWithChannels functions and identifies a particular instrument session. | ||||||||||||||||||||||||||||||||
signal | ViInt32 | Specifies the source of the signal to route. Defined Values
|
||||||||||||||||||||||||||||||||
signalIdentifier | ViConstString | Specifies which instance of the selected signal to export.
Defined Values
|
||||||||||||||||||||||||||||||||
outputTerminal | ViConstString | Specifies the output terminal to export the signal.
Defined Values
|
Return Value
Name | Type | Description | ||||||||
status | ViStatus | Returns the status code of this operation. The status code either indicates success or describes an error or warning condition. You can examine the status code from each call to an NI-FGEN function to determine if an error occurred.
To obtain a text description of the status code, call the niFgen_error_message function. To obtain additional information about the error condition, call the niFgen_GetError function. To clear the error information from NI-FGEN, call the niFgen_ClearError function. The general meaning of the status code is as follows:
|