LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

load data from txt file

Hi all :
 
i want to Load data from txt file to labview ,, as you see its kind of data report ,, that i want to convert it to labview in nice look
 
can any one help me with this
 
thanks
 
0 Kudos
Message 1 of 4
(4,227 Views)
Hi!
  Of course, you have String parsing functions, in LabView, whith which you can scan values from file (specially using  "match pattern", "search string", and so on).
 
   But this is going to be quite complicate.... can't you get your file in another format (for example, as an .ini file) for which you can find built-in get/set value functions?
 
   Hope it helps...
 
graziano
0 Kudos
Message 2 of 4
(4,223 Views)
Hi elyan,

I propose a slightly different approach: nearly each line in your text has a separator sign (":" or "=").
- So search for this sign, strip the text before the sign and wire this (stripped) text to a case structure selector! Create a case for each relevant "command" type to strip the value following the separator.
- For lines without the separator strip the first word and wire it to the case structure. In the case you may strip one or more of the following words to get interesting parts.
- Collect all values in a big cluster. In each case you can add/replace an element of the cluster by using the "bundle by name" node.



Message Edited by GerdW on 03-04-2008 03:13 PM
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 3 of 4
(4,207 Views)
In addition to the previous two suggestions, I can think of other ways to do this. But, it would help if you made it more clear what it is that you're trying to extract, and what you're trying to put it into. In other words, what to you mean by "convert it to labview in nice look"?
0 Kudos
Message 4 of 4
(4,199 Views)