10-04-2013 10:26 AM
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
10-07-2013 04:03 PM
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.
10-08-2013 07:47 AM
Thanks for getting back with me on this. YES. I have tried the other RTSI lines. Same results for all...
10-08-2013 01:20 PM - edited 10-08-2013 01:21 PM
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):
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,
10-08-2013 02:55 PM
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?
10-08-2013 03:23 PM
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:
From RTSI to Device:
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,
10-08-2013 03:28 PM
I'll try doing that and let you know how it goes... Thanks