National Instruments 321645c-01 Welding System User Manual


 
Chapter 2 Function Reference RTSI_Conn
©
National Instruments Corporation 2-289 NI-DAQ FRM for PC Compatibles
RTSI_Conn
Format
status = RTSI_Conn (deviceNumber, sigCode, trigLine, dir)
Purpose
Connects a device to the specified RTSI bus trigger line.
Parameters
Input
Parameter Discussion
sigCode is the signal code number of the device signal to be connected to the trigger line.
Signal code numbers for each device type are in the RTSI Bus Trigger Functions section of
Chapter 3, Software Overview, of the NI-DAQ User Manual for PC Compatibles.
trigLine is the RTSI bus trigger line that is to be connected to the signal.
Range: 0 through 6.
dir is the direction of the connection.
0: Receive signal (input, receiver) from the RTSI bus trigger line.
1: Transmit signal (output, source) to the RTSI bus trigger line.
Using This Function
RTSI_Conn programs the RTSI interface on the specified deviceNumber such that NI-DAQ
connects the signal identified by sigCode to the trigger line specified by trigLine. For
example, if the specified deviceNumber is a non-E Series MIO or AI device, the device
sigCode is 7, the RTSI trigLine is 3, and the dir is 1, NI-DAQ drives the output produced by
counter 1 (OUT1) on the specified deviceNumber onto trigger line 3 of the RTSI bus. You
need to make another call to
RTSI_Conn to program another MIO or AI device (or the same
device) to receive the OUT1 signal (dir = 0) in order to make use of it.
Name Type Description
deviceNumber i16 assigned by configuration utility
sigCode i16 signal code number to be connected
trigLine i16 RTSI bus trigger line
dir i16 direction of the connection