LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

1d array to numeric indicator

Solved!
Go to solution

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

0 Kudos
Message 1 of 10
(4,031 Views)

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?

0 Kudos
Message 2 of 10
(4,022 Views)

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

0 Kudos
Message 3 of 10
(4,012 Views)

It would be better if you posted what is broken, that way we can tell you in what way things went wrong.

0 Kudos
Message 4 of 10
(4,010 Views)

This is what I have done so far. The arrays are going to be voltages that output to an oscilloscope.

0 Kudos
Message 5 of 10
(3,996 Views)

See attached if this helps!!

*************************************************
CLD
*************************************************
0 Kudos
Message 6 of 10
(3,985 Views)

This dosen't seem to work either. The numerical indicators do not change. Were you able to get it working?

 

Thanks

Craig

0 Kudos
Message 7 of 10
(3,981 Views)
Solution
Accepted by Craig1988

Just change the while loop to a for loop and move the arrays outside.

0 Kudos
Message 8 of 10
(3,972 Views)

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.

 

 

0 Kudos
Message 9 of 10
(3,970 Views)

Thanks Alot!

 

Craig McMillan

0 Kudos
Message 10 of 10
(3,957 Views)