01-31-2008 01:43 PM
02-01-2008 10:44 AM
Rickard:
The NI Switch Driver API does not support such a case - only the NI Switch Executive application supports this. If you want to do multi-device routing, then you'll need to use NI Switch Executive. This involves creating an NI Switch Executive Virtual Device. However, you state that this is cumbersome to you: too many clicks to get to a working set up. If your use case is simple, you should be able to do this creation in a more streamlined way by defining Hardwires in NI Switch Executive but no routes. An example hardwire you could configure would be on these channels: device1/r0 and device2/r0. Then, at runtime we could call the niSE Connect vi or C function, passing it the endpoints of the route you wish to connect. An example of a connection specification you could pass is: device1/c0->device2/c24. This would find the path through the hardwire at runtime, so you don't have to configure the routes up front or choose their individual legs. One drawback to this approach is runtime performance, because the route has to be found each time you want to connect it. If your performance requirements are not strict, then this is a good option.
I hope this helps you.
Brian