02-25-2013 12:52 PM
Hi to all: I have this VI and its respective invocked .txt files. You select one of these files and it spreads an array with a number sequence, the second part takes value by value of that array to show each one as a integer number for 1.5s.
I have two questions:
1. What can I do to to repeat that number sequence in the integer number (called "valor" in the VI) form for a given time (40 or 45 min for example)??
2. How can I get every value of "valor" out of the for loop in real time?? (to show "valor" out of the for loop in real time)
Thank you!
02-25-2013 12:53 PM
these are the files:
02-25-2013 01:14 PM
I apologize, this is the VI
02-25-2013 03:01 PM - edited 02-25-2013 03:13 PM
it is hard to make any sense about what you are saying? according to your block diagram...you are getting your array value and converting it to a U32 then convertin again to a string, then again to a dbl and a I32...very confusing.
you can do this with a simple while loop, shift regs. and timer...i try and stay away from flat sequence programming as you cannot transition as well as a state machine architecture.
02-25-2013 03:46 PM - edited 02-25-2013 03:51 PM
try not to use the wait(ms) function for your programming timer (CLD requirement). Elapsed Time Vi can be your friend...
02-25-2013 06:17 PM
I was reading about auto indexing propiety and I found to do it easier than the first one (without DBL or I32 converters), but it is still the same problem... How to repeat all the sequence in an easy way with this?
02-26-2013 10:25 AM
the problem is that the "for loop" will run dependent on the Ncount or array size, which ever is smaller. Use of a "while loop" is repeatable...
a different take using Quotient & Remainder...