LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

false 1 time, and true everytime


hi, i have this problem...
initially, i want my program to run the ClusterArrayIndex + 1 = ClusterArrayIndex,
then I only want to use that same function ClusterArrayIndex + 1 = ClusterArrayIndex ONLY WHEN ROW = 64.
with the current program, i am getting all the reading except the first one...

my question is..

is there any better program way to do this?
how do i set up an intial condition that is only FALSE FOR THE FIRST TIME AND TRUE EVERY OTHER TIME..




Message Edited by krispiekream on 03-05-2008 12:52 PM
Best regards,
Krispiekream
0 Kudos
Message 1 of 5
(2,851 Views)
Here you go...
 
Notes are in the VI for you.
 
Best of luck.
Message 2 of 5
(2,844 Views)
sorry, i have labview 8.0
do you think you can have it save for versiion 8.0?
thanks
that was really really fast

Best regards,
Krispiekream
0 Kudos
Message 3 of 5
(2,839 Views)
Just do a logical ["first call?" OR "row=64"].
 
 
 
(In the picture you attached,  both cases have the same code, thus you could safely delete the case structure and nothing will change 🐵
 
 
You are also making the mistake of abusing local variables like classic variables in text based programs. This just breaks dataflow, may cause race conditions, and causes additional data copies in memory. Typically you would just keep the value in a shift register. Now you often don't even need an associated control or indicator. (see image above)


Message Edited by altenbach on 03-05-2008 11:23 AM
Message 4 of 5
(2,823 Views)
thank you Proven Zealous Veteran altenbach

this works like a charm!!!
this solution help me solve this problem and most problems i been having.




Message Edited by krispiekream on 03-05-2008 01:43 PM
Best regards,
Krispiekream
0 Kudos
Message 5 of 5
(2,815 Views)