07-11-2012 11:46 AM
How do you open all the relays on a 2569 card using DAQmx in LV2009??
I looked at the help and it says to select (using shiiping examplewitch Controlling Individual Relay) BROWSE from the drop down list under relays.
Then thats it!! I tried "CTRL" then the channels I wanted..nothing.. then I tried "SHIFT" then the channels I wanted..still nothing.
I think the Help File is missing something!!
Solved! Go to Solution.
07-11-2012 12:37 PM
Thanks..yes, I do have it and wouldn't have found it using LV Help File. Do you have a suggestion for connecting 2 relays at once using DAQmx?? When I connect 1 then 2 , relay 1 disconnects.. Nothing in help or examples. Just talks about "Channels". Could you also point me to the correct sytax a relay has to be called out in if I explicitly state it in a string?? I remember something like "dev0/ch0". Is this sytax listed somewhere?? If I give my cards an alias in MAX would I replace the DEV1 with the alias?
07-11-2012 03:12 PM
You should be able to open multiple relays by performing the following operations:
1.) Drop the DAQmx Switch Open Relays.vi, create a constant under relays
2.) click the drop down list and click browse
3.) Select the first relay in the list
4.) Hold shift and select another relay to close all relays in the selections, hold ctrl and click individual relays for individual relay selection.
5.) Click ok and use VI
Additionally, you could type in the name of the relays as such:
"/2567/k0:10" for relays 0 through 10 on the 2567 on a device named "2567"
"/2567/k0, /2567/k2, /2567/k4, /2567/k6" for relays 0,2,4 and 6 on a device named "2567"
Let me know if this works!
07-11-2012 03:20 PM
I must first appload you for reading the help and using our examples! What the help says is correct, that if you right click a DAQmx swtich constant you can select Browse and select multiple relays using Control or Shift (just like you tried).
However, in the Switch Controlling Individual Relay example there is a small caveat that prevents us from doing this by default. It is an option set called "I/O Name Filtering" which is available on all DAQmx controls (and constants). It determines what data a user can select in that control (you should check it out for DAQmx device name controls, too).
Right click on the Relay Name control on the front panel of the exampe and select "I/O Name Filtering". This will bring up a window with a checkbox entitled "Allow Multiple Names." In this example this option is unchecked, which limits the user to only selecting a single relay name. Check the box, and you'll now be able to select multiple relays using shift and control when in the browse menu.
Alternatively you can select only the Device name itself and click OK, and it will automatically select all of the relays on the module.
07-12-2012 06:34 AM
Thanks everyone. I tried the "comma" to separate but it wouldn't take it until I tried the filtering solution you suggested. Maybe an addendum to the Help?? It was driving me nuts. Thanks. For documentation purposes in Teststand I'd like to close a relay then in the next step close another. When I do this the 1st relay opens. Can I close 2 different relays in 2 different steps keeping both closed until I open them?? Or do I have to do multiple relays like described above??
07-12-2012 10:05 AM
This is most likely because of the value you have in the property "Connection Lifetime"
By default it is set to "Step" which means the switch connection will disconnect as soon as the currest TestStand step completes. In your case the first connect step finished and moved to the second connect step. Since the first connect step completed NISE now disconnects the first connection.
You can change Connection Lifetime to "manual" if you want to manually disconnect each connection yourself. Or you can set it to "Sequence" so whenever the current sequence finishes it will disconnect automatically.
07-12-2012 11:18 AM
Are your LabVIEW VIs that you are calling performing a reset function? This would open up the relays.