Quantcast
Channel: Digital I/O topics
Viewing all articles
Browse latest Browse all 2167

How to prevent a value in shift register being updated?

$
0
0

Hi Fellow NI Users,

 

I'm new to LabView graphical programming and Hardware Acquisition. After reading through the basics of loops, data strcutures and data flow I'm still at lost of what I'm trying to achieve. 

 

I am using a DAQ to acquire digital signal from set of relays. When the relays turns on, it generates a 1, and when it turns off it genereates a 0.  I also have a counter to keep the edges of the relay flipping. The relays are flipping on and off every 4 mins. 

 

However, over the course of the night a relay may misfire and the count would not match up. I want to write a LabView program that would stop the test when the relay cont mismatches. 

 

This is what I have gotten so far. 

Relay_Count_Comp_01.JPG

 

The concent is easy, take the current 1-D array and compare with the previous array, if one of the element in current 1-D array is the same as the previous element, then I know there is a relay misfire. 

 

Problem is, the array from previous shift register is constantly being updated since the DAQ is continuously acquiring signals. 

 

How can I take the 1-D array of the counter from the previous read without being overwritten? 

 

Cheers,

Leon


Viewing all articles
Browse latest Browse all 2167

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>