Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

Trouble using Ctr0 on PCI-6123 with RTSI

Using VB in Visual Studio 2008.   I'm using Ctr1 and Ctr0 along with analog inputs for data capture with a PCI-6123 board.  

 

When I add a second PCI-6123 board and create a RTSI connection between the boards using Measurement and Automation, I get the following error when I try to start the task:

 

-89137: "Specified route cannot be satisfied, because it requires resources that are currently in use by another route."

 

I'm using Ctr0 to count the ai/SampleClock on the first card.

 

I'm also passing PFI2 => RTSI0 on the first board and receiving RTSI0 => PFI3 on the second board.

 

I can start my task just fine if I don't use Ctr0 to count the SampleClock.   Any help understanding why I cannot use Ctr0 along with a RTSI connection in this way?

 

Thanks

0 Kudos
Message 1 of 7
(4,054 Views)

Greetings John.

 

Have you tried using a different RTSI line to pass the PFI lines (RTSI 1, RTSI 2, RTSI 3...) ? Depending on your device, some signals are directly routed to the RTSI line, for example: aiStartTrigger.

 

You can check on MAX in the Device Routes tab if there is a direct route from the RTSI0 to any other signal your code might be using.

 

Let us know what happens when you run the test.

 

Best Regards.

Luis J.
Applications Engineer
National Instruments
0 Kudos
Message 2 of 7
(4,035 Views)

Thanks for getting back with me on this.  YES.   I have tried the other RTSI lines.  Same results for all...

0 Kudos
Message 3 of 7
(4,029 Views)

John@AEI wrote:

 

I'm also passing PFI2 => RTSI0 on the first board and receiving RTSI0 => PFI3 on the second board.


 

This your problem.  There is no direct connection between PFI and RTSI on the 6123.  Trying to make this route will use a counter (the screen shots say ctr0 and ctr1 respectivley but either available counter would be used for this purpose):

 

NI PCI-6123 Dev11 - Measurement & Automation Explorer_2013-10-08_13-17-01.png

 

 

NI PCI-6123 Dev11 - Measurement & Automation Explorer_2013-10-08_13-18-06.png

 

 

 

From your first post, you are using both counters on one of the devices so you wouldn't be able to route the RTSI line to the PFI line on this device.

 

 

Best Regards,

John Passiak
0 Kudos
Message 4 of 7
(4,023 Views)

Thanks.  That's sorta what I surmised as well since my inital post.   Are you aware of anyway to sync the 2 cards together so the tasks can contain channels from both cards and trigger together without using the RTSI connector? 

0 Kudos
Message 5 of 7
(4,020 Views)

You can use the RTSI lines to share signals between devices.  Anything that's green in the routing table is a direct route and doesn't require an additional counter:

 

 

From device to RTSI:

 

NI PCI-6123 Dev11 - Measurement & Automation Explorer_2013-10-08_15-13-58.png

 

 

From RTSI to Device:

NI PCI-6123 Dev11 - Measurement & Automation Explorer_2013-10-08_15-19-20.png

 

 

 

So you can synchronize tasks across devices by sharing the above signals (not sure what exactly it is you need to do though).  If you're just trying to synchronize AI channels across multiple 6123s you should be able to put the devices in the same task (see here) which will configure the signals on the RTSI bus for you.

 

 

Best Regards,

John Passiak
0 Kudos
Message 6 of 7
(4,017 Views)

I'll try doing that and let you know how it goes...  Thanks

0 Kudos
Message 7 of 7
(4,011 Views)