niRFSA_ExportSignal
ViStatus = niRFSA_ExportSignal( ViSession vi, ViInt32 signal, ViConstString signalIdentifier, ViConstString outputTerminal);
Purpose
Routes signals to the specified output terminal.
If you export a signal with this VI and commit the session, the signal is routed to the output terminal you specify. If you then reconfigure the signal to have a different output terminal, the previous output terminal is tristated when the session is next committed. If you change the outputTerminal to NIRFSA_VAL_DO_NOT_EXPORT and commit, the previous output terminal is tristated.
Any signals, except for PXI trigger lines, that are exported within a session persist after the session closes to prevent signal glitches between sessions. PXI trigger lines are always set to tristate when a session is closed. If you wish to have the terminal that the signal was exported to tristated when the session closes, first change the outputTerminal for the exported signal to NIRFSA_VAL_DO_NOT_EXPORT and commit the session again before closing it.
You can also tristate all PFI lines by setting the resetDevice parameter in the niRFSA_Initialize function or by using the niRFSA_reset function.
Parameters
Input | ||
Name | Type | Description |
vi | ViSession | Identifies your instrument session. vi is obtained from the niRFSA_init or the niRFSA_initWithOptions functions and identifies a particular instrument session. |
signal | ViInt32 | Specifies the type of signal to route. You can choose to export the Start, Reference, and Advance triggers and the Ready for Start, Ready for Advance, Ready for Ref, End of Record, and Done events. |
signalIdentifier | ViConstString | Specifies a particular instance of a trigger. This parameter currently is not supported. |
outputTerminal | ViConstString | Specifies the terminal where the signal will be exported. You can choose not to export any signal. |
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 examine the status code from each call to an instrument driver function to determine if an error occurred. To obtain a text description of the status code, call the niRFSA_error_message function. To obtain additional information about the error condition, call the niRFSA_GetError function. To clear the error information from the driver, call the niRFSA_ClearError function. The general meaning of the status code is as follows:
|
Meaning | |
---|---|---|---|---|
0 | Success | |||
Positive Values | Warnings | |||
Negative Values | Errors |