12-05-2011 10:36 AM
Hello,
I am trying to actuate multiple relays through my VI using a simple program which switchs a relay on and off.
My VI has no problem completing this when I am only trying to actuate one relay but when I try to actuate two relays simultaneously it quick cycles one or both relays.
Any Ideas
Solved! Go to Solution.
12-06-2011 01:59 PM
Hi,
You might want to take a look at the Switch Connect-Mult Chanel.vi in the example finder. You will need to use nc#, no# and com# for the terminals to connect.
/SC1Mod1/nc0->com0,
/SC1Mod1/no1->com1
You could also use the code you started with, right click the Relay Name control on the Front Panel and select I/O Name Filtering. Check the box for Allow Multiple Names. You can now either use the browse window and select multiple relays by holding shift or control, or you can type in multiple relays separated with commas, or a range separated with a colon.
/SC1Mod1/ch3:6
/SC1Mod1/ch1, /SC1Mod1/ch4, /SC1Mod1/ch6
I hope this helps,
Regards,
Luke B.
12-07-2011 12:49 PM
Thanks for the tip but I found another way to solve this issue.
If anyone is interested let me know and I'll post the VI
12-15-2011 11:51 AM
12-18-2011 04:54 PM
Are you seeing this happen with the shipping example, or with a vi you wrote?
You might also want to check if you can close multiple relays using the test panel through MAX.
Regards,
Luke B.
12-19-2011 02:16 PM
Hey Luke,
I have used MAX to actuate relays independently and have not seen this problem.
I have used the shipping example and I encounter the same problem.
The problem is when I close relay from CH0 (using the VI that was shipped with LabVIEW) and then I try to close CH1. WHat actually happens is CH1 transitions to the closed state while CH2 transitions to the open state.
As I mentioned this happens with the VI that was shipped with LabVIEW (I think it was called actuate one relay or something to that effect) and with any VI that I create which requires two relays to be actuated at different times.
12-20-2011 05:38 PM
Hi,
Are you using the DAQmx Switch Set Topology and Reset.vi more than once? Every time you call that vi, all of the relays are going to go back to their default position. Chances are that you only need to call that vi once at the beginning of your program. If that doesn't clear it up, could you either post your current code, or a screenshot?
Regards,
Luke B.
12-21-2011 07:35 AM
Thats exactly what the problem was.
Thanks for your help!