02-28-2010 09:49 AM
I am learning state machine technique to develop code for data acquisitoin and logging. I think I have written the correct code for this purpose but I couldn't get the following done:
All warning values(>0) should be displayed on 1d array on front panel. The code is writing only the first value.
All values should be logged using write to spreadsheet pallete and be written on excel sheet. Code is only writing first value.
I wonder what's the mistake. The code I've created is attached, I'd appreciate if anyone correct the code and post in reply.
Many thanks in advance for help
Cheers
Solved! Go to Solution.
02-28-2010 01:23 PM
Hi kwaris,
"what's the mistake": Well, you use a lot of unneccessary conversions. Really a lot of...
Why do you convert a scalar to dynamic, then convert to array, then index an element of the array? Why do you convert to dynamic when all you needis a simple "build array" node?
Ok, I included a shift register to store your array. It's only a simple "how to", but not the best solution for all cases. But it should give you a hint...