06-22-2006 05:33 PM
06-23-2006 10:16 AM
Good afternoon Vineet,
Thanks for contacting National Instruments with your issue, we'll try our best to resolve it for you as quickly and efficiently as possible.
It looks like the reason why you're getting an error is you're referring to a terminal (i.e. "ch0") rather than the actual relay. If you open up your NI Switches Help and in the Contents Tab browse to Devices > NI PXI-2569 and then select the Hardware Diagram, you'll see that for every pair of terminals there is an actual relay name. So for the Ch0 to Com0 connection, the terminal actually being closed is called K0.
So if you what to determine the relay position for a specific connection, you'll have to pass the corresponding actual relay name to niSwitch_GetRelayPosition. In this case, K0 should do it.
Best of luck with your project.
Sincerely,
Minh Tran
Applications Engineering
National Instruments