NI-Sync C API Reference

Content Type
Programming Language
Current manual
Table of Contents

niSync_DisconnectSWTrigFromTerminal

niSync_DisconnectSWTrigFromTerminal

C Function Prototype

ViStatus niSync_DisconnectSWTrigFromTerminal (ViSession vi, ViConstString sourceTerminal, ViConstString destinationTerminal);

Purpose

Closes a route between the global software trigger and a destination trigger terminal. You must use this function every time you connect a software trigger using niSync_ConnectSWTrigToTerminal. Once you invoke this function, you can use the associated terminal for other operations.

Parameters

Name Type Description
vi ViSession The session handle that you obtain from niSync_init. The handle identifies a particular instrument session.

sourceTerminal ViConstString Specifies the source software trigger terminal you want to disconnect from the destination terminal. The global software trigger must be connected to the destination terminal for this operation to succeed. The only acceptable value is Global Software Trigger.

Valid Values:
NISYNC_VAL_SWTRIG_GLOBAL (Default Value)

destinationTerminal ViConstString Specifies the destination trigger terminal to disconnect the global software trigger terminal from. The global software trigger must be connected to the destination terminal for this operation to succeed.

Valid Values:
NISYNC_VAL_PXITRIG0
NISYNC_VAL_PXITRIG1
NISYNC_VAL_PXITRIG2
NISYNC_VAL_PXITRIG3
NISYNC_VAL_PXITRIG4
NISYNC_VAL_PXITRIG5
NISYNC_VAL_PXITRIG6
NISYNC_VAL_PXITRIG7
NISYNC_VAL_PXISTAR0
NISYNC_VAL_PXISTAR1
NISYNC_VAL_PXISTAR2
NISYNC_VAL_PXISTAR3
NISYNC_VAL_PXISTAR4
NISYNC_VAL_PXISTAR5
NISYNC_VAL_PXISTAR6
NISYNC_VAL_PXISTAR7
NISYNC_VAL_PXISTAR8
NISYNC_VAL_PXISTAR9
NISYNC_VAL_PXISTAR10
NISYNC_VAL_PXISTAR11
NISYNC_VAL_PXISTAR12
NISYNC_VAL_PXISTAR13
NISYNC_VAL_PXISTAR14
NISYNC_VAL_PXISTAR15
NISYNC_VAL_PXISTAR16
NISYNC_VAL_PFI0
NISYNC_VAL_PFI1
NISYNC_VAL_PFI2
NISYNC_VAL_PFI3
NISYNC_VAL_PFI4
NISYNC_VAL_PFI5
NISYNC_VAL_PFILVDS0
NISYNC_VAL_PFILVDS1
NISYNC_VAL_PFILVDS2
NISYNC_VAL_PXIEDSTARB0
NISYNC_VAL_PXIEDSTARB1
NISYNC_VAL_PXIEDSTARB2
NISYNC_VAL_PXIEDSTARB3
NISYNC_VAL_PXIEDSTARB4
NISYNC_VAL_PXIEDSTARB5
NISYNC_VAL_PXIEDSTARB6
NISYNC_VAL_PXIEDSTARB7
NISYNC_VAL_PXIEDSTARB8
NISYNC_VAL_PXIEDSTARB9
NISYNC_VAL_PXIEDSTARB10
NISYNC_VAL_PXIEDSTARB11
NISYNC_VAL_PXIEDSTARB12
NISYNC_VAL_PXIEDSTARB13
NISYNC_VAL_PXIEDSTARB14
NISYNC_VAL_PXIEDSTARB15
NISYNC_VAL_PXIEDSTARB16
NISYNC_VAL_ALL_CONNECTED (Default Value)

Note  Each PXI_Star and PXIe_DStarB trigger is mapped to a single slot. This mapping is vendor specific. Your chassis documentation may describe this mapping in addition to the chassis.ini and pxisys.ini system description files the PXI Specification requires.


Return Values

Was this information helpful?