niSwitch_RouteTriggerInput
Specific Function
C Function Prototype
ViStatus niSwitch_RouteTriggerInput (ViSession vi, ViInt32 triggerInputConnector, ViInt32 triggerInputBusLine, ViBoolean invert);
Purpose
Routes the input trigger from the front or rear connector to a trigger bus line (TTLx). To disconnect the route, call this function again and specify None for trigger bus line parameter.
Parameters
Name | Type | Description |
---|---|---|
vi | ViSession | A particular NI-SWITCH session established with niSwitch_InitWithTopology, niSwitch_InitWithOptions, or niSwitch_init and used for all subsequent NI-SWITCH calls. |
triggerInputConnector | ViInt32 | The location of the input trigger source on the switch module. Valid locations are the NISWITCH_VAL_FRONTCONNECTOR and NISWITCH_VAL_REARCONNECTOR. The default value is NISWITCH_VAL_FRONTCONNECTOR. |
triggerInputBusLine | ViInt32 | The trigger line to route the input trigger. Select NISWITCH_VAL_NONE to break an existing route. Valid Values: NISWITCH_VAL_NONE (default) NISWITCH_VAL_TTL0 NISWITCH_VAL_TTL1 NISWITCH_VAL_TTL2 NISWITCH_VAL_TTL3 NISWITCH_VAL_TTL4 NISWITCH_VAL_TTL5 NISWITCH_VAL_TTL6 NISWITCH_VAL_TTL7 |
invert | ViBoolean | If VI_TRUE, inverts the input trigger signal from falling to rising or vice versa. The default value is VI_FALSE. |