LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

reading data

Iam having a VI with upeer limit and lower limit.Iam reading data from DAQ card,if the data which iam is above or below the upper limit,them alarm set is indicated otherwise alarm clear is indicated.The alaram set and alarm clear is stored in a file along with date and time,when ever I run the VI.My problem is,if the value which iam reading is out of range then alaram set shold be shown in the file only once.but in my VI it is showing alarm set or alaram clear continuously until the other thing happens.How to over come this problem.

my exact question is ,in the saved file alarm set or alarm clear should be displayed only once but not for each and evry value which iam reading.here iam attaching my vi.
0 Kudos
Message 1 of 4
(2,853 Views)
sorry this is correct vi
0 Kudos
Message 2 of 4
(2,850 Views)
One way to do it is to write the current alarm value to a shift register. Then, with each iteration, compare the current alarm condition to the previous. If they are equal, write an empty string. I've attached a modified version of your VI.

Message Edited by Dennis Knutson on 03-14-2005 09:14 AM

Message 3 of 4
(2,839 Views)
Thankyou very much hunston,it heöped me.
0 Kudos
Message 4 of 4
(2,824 Views)