Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I use RTSI to create a callback.

I have a digital signal input into the RTSI connector on my 6023e Ni-DAC card. I want to use this signal to generate a callback. I have looked at "Config_DAQ_Event_Message(...)", "RSI_CONN(..)", and "Select_Signal" and do not see how to connect them. I do not want to do a Data Acquisition task with this signal. I know how to do a callback. The problem is the signal name.
0 Kudos
Message 1 of 4
(2,948 Views)
Joe,

I don't think you can read an event from a RTSI line directly. So you might have to route the RTSI line to one of your digital channels and then use the Config_DAQ_Event_Message to monitor for events on that digital channel.

TylerS
Message 2 of 4
(2,927 Views)
TylerS

I have a digital signal attached to the RTSI bus line signal pin RTSI_0 and I am wanting to read the signal on PFI_0.

So I added this call:


nistatus= Select_Signal(m_nNiDevice, //this is the correct device
ND_PFI_0, //signal
ND_RTSI_0, //source
ND_DONT_CARE); //signal specification

I get a status of -10003 which is for an error in one of these parameters as being legal. Any help?

Thank You

Joe_V
0 Kudos
Message 3 of 4
(2,907 Views)
Joe,

The first thing I would do, if you haven't already, is go into Measurement and Automation Explorer (MAX)and make sure the routing between PFI_0 and RTSI_0 is available. If you click on your device under DAQmx Devices, one of the tabs at the bottom is Device Routes. This is a display of all the available routing for the board.

As for the function call itself, the device specification needs to be an integer rather than "m_nNiDevice". This integer should match up with the device number given in MAX (i.e. dev1, dev2, etc.). Let me know if this helps any.

TylerS
0 Kudos
Message 4 of 4
(2,899 Views)