LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How put i text in an array so i can use this later?

Hi

I'm looking in Labview for a field where I can save (and later load)  things in like: text, numbers, booleans.  Ik have several things tried but it doesn't work. Do I have to use an array? Can someone mabe post an example so I can see how this work?

Regeards,





0 Kudos
Message 1 of 3
(2,577 Views)
Could you please be a little more specific?  Is your application running in a loop?  Do you want to save values when you shut down so that they are present when you reopen the app later?  Are you planning on building an EXE with this?  Is this a sub-vi that you want to load some values in that if not wired, uses the last value?  If you have a piece of the base code as an example, we could be more helpful to your specific needs.

Paul
0 Kudos
Message 2 of 3
(2,572 Views)
Typically, you want to keep data types consistent. Text in a text control or indicator, boolean in a boolean, and numbers in a numeric. If you want the same container for everything, you need to cast your data to a string or variant and convert it back to the right data type later.
 
Of course you could use a plain string for everything, by e.g. writing text directly,  your numbers as decimal formatted strings, and your booleans as "TRUE" of "FALSE" strings, for example.
 
It is not entirely clear what you want. What do you mean by "it does not work"? What is "it"?
 
Maybe you should explain what you want to do in more general terms.
0 Kudos
Message 3 of 3
(2,557 Views)