NIDCPower.ExportSignal Method (String, DCPowerSignalSource, String)
- Updated2024-01-04
- 2 minute(s) read

NIDCPowerExportSignal Method (String, DCPowerSignalSource, String)
Routes trigger and event signals to the output terminal you specify. The route is created when the session is committed.
Namespace: NationalInstruments.ModularInstruments.NIDCPower
Assembly: NationalInstruments.ModularInstruments.NIDCPower.Fx45 (in NationalInstruments.ModularInstruments.NIDCPower.Fx45.dll) Version: 2023
Syntax
public void ExportSignal( string channelString, DCPowerSignalSource signalSource, string outputTerminal )
Public Sub ExportSignal ( channelString As String, signalSource As DCPowerSignalSource, outputTerminal As String )
Parameters
- channelString
- Type: SystemString
The channel to which you export the signal. You can only export a signal to one channel at a time. Specify the channel using the form PXI1Slot3/0, where PXI1Slot3 is the instrument resource name and 0 is the channel. - signalSource
- Type: NationalInstruments.ModularInstruments.NIDCPowerDCPowerSignalSource
The trigger or event signal to export. - outputTerminal
- Type: SystemString
The terminal to route the signal to. You can supply a fully qualified terminal name to this parameter, for example, /Dev1/PXI_Trig0, or /Dev1/Engine0/PXI_Trig0, where Engine0 is channel 0.
Exceptions
Exception | Condition |
---|---|
OperationNotSupportedException | ExportSignal(DCPowerSignalSource, String) was called on a session to unsupported hardware. |
ObjectDisposedException | ExportSignal(DCPowerSignalSource, String) was called after the associated NIDCPower object was disposed. |
SelectorNameException | ExportSignal(DCPowerSignalSource, String) was called with invalid channel. |
IviCDriverException |
The value of signalSource is invalid.
- or - The destination terminal to be routed cannot be found on the device.- or - The underlying NI-DCPower driver returned an error. |
Remarks
![]() |
---|
This method is not supported by all instruments. Refer to the Supported Functions by Device topic in the NI DC Power Supplies and SMUs Help for information about supported instruments. |