08-21-2013 08:08 AM
Hey guys, I'm looking to "capture" a zero reading before I start my data measurement. I have 4 analog channels that are running continuously through a producer/consumer architecture. I want to push the "start" button and hold the most recent value for these 4 channels in order to compute some conditions later on in my code. Is there a way to do this without using local variables?
Solved! Go to Solution.
08-21-2013 08:16 AM
08-21-2013 08:18 AM
Hi Gerd, How do I hold these values if I'm taking continuous data? I want to store them once an event happens.
08-21-2013 08:20 AM
08-21-2013 08:33 AM
so, something...(big something) like this?
08-21-2013 08:35 AM
08-21-2013 08:58 AM
Old values are coming from the right side of the shift register..correct? And the most recent are on the left?
08-21-2013 09:06 AM
08-21-2013 09:19 AM
My data is coming from a continuous 1d array. Could I index it into a for loop and use the method you described above? I see that the true selector is a constant/control. I want to read my analog channel (indicator)...and get the most current value passed from the array.
08-21-2013 09:24 AM
Hi glskinner,
what is a "continuous array"?
What means "pass a value from an array"?
Yes, you can index values from an array using IndexArray. (Did I mention online training courses before?)
Yes, you can "read your analog channel". What's the problem here?