NI-SCOPE C Function Reference

niScope_ConfigureTriggerOutput

  • Updated2023-02-21
  • 1 minute(s) read

niScope_ConfigureTriggerOutput

C Function Prototype

ViStatus niScope_ConfigureTriggerOutput (ViSession vi, ViInt32 triggerEvent, ViConstString triggerOutput);

Purpose

Note  This function is obsolete. Consider using niScope_ExportSignal instead.

Configures the digitizer to generate a signal pulse that other digitizers can detect when configured for digital triggering.

For NI-DAQmx devices, closing the session clears the route. However, if you want to clear the routes before closing the session, call this function again and route the NISCOPE_VAL_STOP_TRIGGER_EVENT to NISCOPE_VAL_NONE.

Parameters

Input
Name Type Description
vi ViSession The instrument handle you obtain from niScope_init that identifies a particular instrument session.
triggerEvent ViInt32 Specifies the condition in which this device generates a digital pulse.
triggerOutput ViConstString Specifies the hardware signal line on which the digital pulse is generated.

Valid Values

NISCOPE_VAL_NO_EVENT
NISCOPE_VAL_STOP_TRIGGER_EVENT
NISCOPE_VAL_START_TRIGGER_EVENT
NISCOPE_VAL_END_OF_ACQUISITION_EVENT
NISCOPE_VAL_END_OF_RECORD_EVENT

Return Value

Name Type Description
Status ViStatus Reports the status of this operation. To obtain a text description of the status code, call niScope_GetErrorMessage. To obtain additional information concerning the error condition, use niScope_GetError and niScope_ClearError. The general meaning of the status code is as follows:

Value Meaning
0 Success
Positive Values Warnings
Negative Values Errors