02-08-2011 12:15 PM
I have read another post on this forum but i can't seem to get it to work as I would like. I have a 1-D array constant in the block diagram, which I would like to output to a numeric indicator on the front panel. The thing is I was wanting it display the first element of the array for a time then automatically update to the second element and so on. I assume this will involve loops and such like i have been trying but mostly it has yet to work appropriately.
Cheers
Craig McMillan
Solved! Go to Solution.
02-08-2011 12:28 PM
What have you tried that doesn't work? From what you're describing it sounds like you just need a while loop to index out the next element of the array, and put a delay in the loop. What else is the program doing?
02-08-2011 01:01 PM
That is what I have been trying to do. It seems simple but the wires usually break. Could you post a Vi of this if at all possible.
Cheers
02-08-2011 01:03 PM
It would be better if you posted what is broken, that way we can tell you in what way things went wrong.
02-08-2011 01:41 PM
This is what I have done so far. The arrays are going to be voltages that output to an oscilloscope.
02-08-2011 02:19 PM
See attached if this helps!!
02-08-2011 02:29 PM
This dosen't seem to work either. The numerical indicators do not change. Were you able to get it working?
Thanks
Craig
02-08-2011 03:05 PM
Just change the while loop to a for loop and move the arrays outside.
02-08-2011 03:08 PM
I don't think a slider is very intuitive for this. I feel a standard numeric control suits it better. I put a delay in there so you can actually see the indicators change. If it goes too fast, although the program is writing everything, you never see it because the front panel doesn't update as fast as the code is executing. Also, it wouldn't make much sense to send a new value to the o-scope as fast as your computer can. See attached and modify as needed.
02-08-2011 03:19 PM
Thanks Alot!
Craig McMillan