12-01-2011 09:59 AM
I was wondering if there was a way to non-destructively find out what state the switch is set to. I'm working on some diagnostic software to be run along side our tests, and it would be really usefull to be able to find out what channels each of are switches are currently connected to.
In C#, I use this to actually set the channel -
DaqSystem.Local.ConnectSwitchChannels(channel1, channel2, true);
but haven't actually been able to find anything about reading back what channels are currently set. I have found this.
DaqSystem.Local.CreateSwitchScanTask
but I'm not sure that it is doing what I want it to be doing.
Any advice?
Thanks!
Solved! Go to Solution.
12-02-2011 08:51 AM
Hi Joel,
I believe this is the function you are looking for.
NI Switches help can be found under the start menu, National Instruments, NI-Switch, and Documentation.
Thanks for the question!
Lisa
12-02-2011 09:21 AM
Lisa, thank you. That was most helpfull. Your post lead me to discover this article.
http://zone.ni.com/devzone/cda/epd/p/id/1648
And from there I was able to adapt the source code for my own needs. I was previously unaware there was a module for using NISwitch with .NET.
Thank you Again.
-Joel
12-05-2011 09:51 AM
Hi Joel,
I'm glad to be of help!
Have a great day,
Lisa