LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Array to number conversion

Hi,
I have data acquired from a machine and I would like to display the data in real time. The data is stored in an array and I would like to see its contents in a digital display or slide (with digital display). Since I cannot connect an array to one of this numeric controls, I tried to convert the array to numbers and then display these numbers.
I tried something but it did not work, I cannot see anything in the controls. I did the following:
1- Array to Spreadsheet String (conversion decimal - %d)
2- I connected the string to From Decimal (under the string menu) and this is connected to the slide or the digital dysplay. (BTW, does anyone know if Labview has a large digital display?)

Could anyone tell me how to make t
his conversion in another way?
Thank you very much for your help,
Javier
0 Kudos
Message 1 of 8
(4,099 Views)
What part of your array do you want to display? What you've done I believe, is to display just the first element and in a rather round about way. There is no way for a digital indicator to display an array of numbers. You'll have to use a graph, table, or array indicator for a display.
0 Kudos
Message 2 of 8
(4,099 Views)
I hope this short note will clarify a bit my question:

I would like to display the entire array of numbers. I already have a graph that plots these numbers directly from the array, but I would like to see each number in a digital display. Since digital controlers are not compatible with arrays, does anyone know how to fix this problem?
Thanks,
Javier
0 Kudos
Message 3 of 8
(4,099 Views)
I'm still not too sure of exactly what you want to accomplish, you can only display one number at a time in a digital control. You can, however, put an array indicator on your front panel and stretch it to show all the entries in the array. If you want to show each element of the array one at a time in a digital indicator then use a loop to index the array.

If this do not help you, then could you post an example of what you are trying to do?

Brian
0 Kudos
Message 4 of 8
(4,099 Views)
You just need to create an array indicator. The easiest way to do that is to right click the wire where the array is and select "Create Indicator".

Modify the amounts of elements that can be shown at a time by resizing the array indicator using "Position/Size/Select" pointer.

In the event the number is too high it doesn't fit the indicator, you can also resize it using the same pointer. All the elements indicators in the array will be resized as well.

If for some reason this do not answer your question, feel free to reply this message.

Best regards;
EJV
www.vartortech.com
0 Kudos
Message 5 of 8
(4,099 Views)
Enrique,
could you please take a look to the example that I have posted?. Maybe you could give me advice about what to do. Please let me know if the example is not clear.
Thank you,
Javier
0 Kudos
Message 7 of 8
(4,099 Views)
On Mon, 23 Jul 2001 09:15:46 -0700 (PDT), madrid2002 wrote:
> Enrique,
> could you please take a look to the example that I have posted?. Maybe
> you could give me advice about what to do. Please let me know if the
> example is not clear.
> Thank you,
> Javier

Javier,

If I'm correct understanding, you need cursor and digital indicator like in attached vi.
If not, describe again, please.

Sergey
0 Kudos
Message 8 of 8
(4,099 Views)
Hi,
I have attached an example that I hope will clarify my question. If you run the example you will see that the meter and its digital indicator go to zero after each numerical value is shown, however the other numerical indicator (which shows offset values) does not do this. Do you know how to fix this problem?
Another question: does anyone know how to make the digital indicator larger and change its color...?
Thanks a lot.
Javier
P.S: if the example is not clear plese reply to this message.
0 Kudos
Message 6 of 8
(4,099 Views)