Real-Time Measurement and Control

cancel
Showing results for 
Search instead for 
Did you mean: 

To switch on relay one by one automatically

 

We are  having cRIO 9022 in which we are using NI 9472 DO module to which 4 relays are connected. we need to switch the relay one by one with time interval gap of 1 minute. What is the best method to implement the same. Whether Elapsed time express Vi will solve the purpose. How? 

 

Thanks

 

 

0 Kudos
Message 1 of 2
(3,812 Views)

Hi there,

 

I am assuming you are wanting to do this on the RealTime target not an FPGA?

 

A simple way to do this would be to use a timed loop with a a dt value of 60 000 (1kHz clock).

 

Within this you would have a case structure with a shift register wired to the case selector terminal. This shift register would be incremented on each loop iteration, a simple wrap around could also be implemented.

 

Each case would activate a channel on the DO module.

Nick
0 Kudos
Message 2 of 2
(3,798 Views)