12-08-2006 04:46 PM
12-09-2006 09:12 PM
12-11-2006 02:18 PM
Thanks JD
I've attached my sample code. Inside my case structure I have two constants. These can be anything that will read and hold the value at my bit depth indicator at the instant the analog signal goes from true to false. The true case is the only time the bit depth will change. During the false case the encoder will travel up and receive another piece of pipe. Once the pipe is attached the case will go true and this new piece of pipe will be added to the first piece of pipe for a running total. I'm not sure how to use a shift register to hold only the last value before the case goes from true to false.
Regards
Geoguy
12-11-2006 02:20 PM
Sorry
Attached the wrong code.
12-12-2006 09:57 AM
12-12-2006 01:45 PM
Thanks Cheten
A shift register would work fine if each length that was added would be the same but it won't be. I need to read and store the value(1) triggered by the analog signal, the encoder will then travel to a new position and the analog will trgger again. This new measurement as the enoder travels needs to be added to the value (1).
Regards
Geoguy
12-13-2006 10:06 AM - edited 12-13-2006 10:06 AM
Hello Geoguy
Hmm...I still believe that Shift-Register is the answer to your issue. Please look at the attached VI.
Notice how the new value of the slider is added to the old value when the boolean button is pressed.
Regards,
Chetan K
Message Edited by CKap on 12-13-2006 10:07 AM