PXI

cancel
Showing results for 
Search instead for 
Did you mean: 

PXI 1161

Solved!
Go to solution

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

Tim
0 Kudos
Message 1 of 8
(4,507 Views)

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.

0 Kudos
Message 2 of 8
(4,495 Views)

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

Tim
0 Kudos
Message 3 of 8
(4,487 Views)
I found this post from over 8 years agao and this seems to be exactley what I am experiencing but I have v 8.9.5 installed.
 
Anyone else experience this?
 
 
My application will use several SCXI-1166 and SCXI-1161 modules. The SCXI-1166 modules are good, but I couldn't control the SCXI-1161 module to keep over 2 relays in connecting state.For example, when I connect the second relay of SCXI-1161,the first connected relay will always shut off automatically! I know this problem can be solved when using with Traditional NI-DAQ driver,but the SCXI-1166 can only used with DAQmx.
How can I do ?
Tim
0 Kudos
Message 4 of 8
(4,456 Views)

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.

0 Kudos
Message 5 of 8
(4,444 Views)
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.

 

Tim
0 Kudos
Message 6 of 8
(4,439 Views)
Solution
Accepted by topic author smoothdurban

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.

0 Kudos
Message 7 of 8
(4,431 Views)

Thats exactly what the problem was.

 

Thanks for your help!

Tim
0 Kudos
Message 8 of 8
(4,426 Views)