07-27-2005 12:53 PM
07-27-2005 01:11 PM
If this is occuring in a while loop in LabVIEW you can put a shift register on the border of the while loop and feed the value into it. Then you can have a case statement inside the while loop, with one case just passing the value through to the shift register if the value hasn't changed (OldValue = NewValue), and the other case triggered on a value change (OldValue /= NewValue).
P.M.

07-28-2005 12:01 PM
Hello LV_Pro,
I'm not using a while loop. I'm using a matlab script block...in this block I've imported a m-file from matlab that contains the sequence if. But when I run this block, labview pass trough this sequence a lot of times (like a while but it's not a while). What can i do eith matlab script block to pass trough this sequence once the input value changes.
Thank you
08-01-2005 03:15 PM
What is surrounding the matlab script block? LabVIEW should be modifying the matlab code, it should be connecting with matlab and matlab executes its code, returning the results to LabVIEW. Can you do a screen capture of the part of the code that contains the matlab stuff? If yes make sure that it is saved as a .jpg (not .bmp!) for size reasons. If not, if you can send the part of your code that includes the matlab stuff that would help.
P.M.
