Quantcast
Channel: LabVIEW topics
Viewing all articles
Browse latest Browse all 69346

One data sample written to txt file

$
0
0

I have a program that is monitoring 12 digital input (DI) levels.  A case structure inside a for loop indicates what level (high/low) the 12 DIs should be at.  IF any of the 12 input levels are not what they should be then all the levels are written to a text file with a time stamp and loop count.

 

My issue is with the loop count.  When a DI level is out of sync, reading incorrect level, and the write to file express VI is enabled three iterations and three data points are collected.  It would be prefered to have one iteration per cycle so I could use that as a counter of how many times the event has happened and use this counter to record one data point instead of three to a text file.

 

Attached is my .VI and .txt file for an example of what the data from a sample.


Viewing all articles
Browse latest Browse all 69346

Trending Articles



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