03-09-2009 09:40 PM
Hi,
I am attempting to send and read some data across the serial port. I am sending separate strings that are stored in an array and the serial port reads a value that is returned from my instrument for each string that is sent to it. The array is indexed by the "i" in the while loop. My problem is, the while loop will run until it reaches the maximum array index + 1, then stop. I would like to have the index restart to zero once it reaches the maximum "i"-value so it will resend the values from my array again; it is essentially a monitor program for an instrument and I need to continually update the monitor variables. I am new to Labview but it is definitely cool! If someone would be so kind to help, I would really appreciate it.
Thanks,
Mike
Solved! Go to Solution.
03-09-2009 09:48 PM
How about using another loop
Nested loop.........
03-09-2009 09:55 PM - edited 03-09-2009 09:56 PM
Anil Reddy wrote:How about using another loop
Nested loop.........
Please don't do this.
A Quotient and Remainder function is all that you need. The y input is equal to the array size.
03-09-2009 10:06 PM
Dennis Knutson wrote:
Anil Reddy wrote:How about using another loop
Nested loop.........
Please don't do this.
A Quotient and Remainder function is all that you need. The y input is equal to the array size.
Message Edited by Dennis Knutson on 03-09-2009 08:56 PM
Thanks a bunch, that worked!
Mike