LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

display

Hi everybody
 
I have a file in txt format.
I want read this file and present all datas in numeric indicator or string indicator.
I got display like array but as I told before I want to display in numeric or string indicator.
Any suggestion? I have tried use scan from file but failed.
 
Tks
 
Fernando
0 Kudos
Message 1 of 14
(3,808 Views)
Hi Fernando,
you can read your data as an array and use the index array function to get the single data which you want to show in an indicator.
Mike
0 Kudos
Message 2 of 14
(3,802 Views)
You can wire the array to the Array to Spreadsheet String function and show the data in a single string.
0 Kudos
Message 3 of 14
(3,799 Views)
The problem still remain.
In my txt file I have 10000   8895.
I got displya both number in a string indicator.
I want display 10000 in a string or numeric indicator and the number 8895 in another string or numeric indicator
 
tks
 
 
0 Kudos
Message 4 of 14
(3,789 Views)
That's a bit different than saying you want to display a 2D array in a string indicator. You want 2 elements in the array displayed in two different indicators. Just use what MikeS81 suggested.
0 Kudos
Message 5 of 14
(3,784 Views)

I tried  to do what MikeS81  suggest. But it failed.

Here is what I tried to do. Where is my mistake?

Tks

 

0 Kudos
Message 6 of 14
(3,737 Views)
Hi muganga,
why do you use the property node? If you connect the index you need to the first index function you use, you get exactly the value you want.
Mike
0 Kudos
Message 7 of 14
(3,735 Views)
Correct MIke
 
Here is what you suggest to do.
Now it is working perfectly.
Just one more question.
Do you know ho to do a listbox?
 
Many tks
0 Kudos
Message 8 of 14
(3,731 Views)
Hi muganga,
do you mean something like this? If you only need string you can read your file as string instead of double.
Hope it helps.
Mike
0 Kudos
Message 9 of 14
(3,728 Views)

MikeS81

What I need to do is list all filenames in a lisbox. After that select a filename in the listbox and this filename will be the file where I gonna read using READ FILES

Many tks again

0 Kudos
Message 10 of 14
(3,726 Views)