LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Read values on text file

Highlighted

Hello I would like to read the values from the treatment of a first VI in a second. The data was saved from the text file I can not do it, I try the process in vi I send it to you.
Here is the capture of the text file and the data I want to read.
Thank youCaptureM.PNG

 

0 Kudos
Message 1 of 7
(153 Views)
  1. Read the entire text file into an array using "Read Delimited Spreadsheet.vi" 
  2. Using the Array functions index the data you need out of the array
  3. Using the String to number function convert the string numbers to numeric data types
-------------------------------------------------------------------
Unfortunately, most readers of this Forum, including some real Experts, have not mastered the skill of being able to read the code that Posters fail to post. If we cannot see "what you did wrong", we are unable to tell you how to fix it. (Bob Schor 28 August 2018)
Message 2 of 7
(130 Views)

I would like to save the values in a TDMS file in a first vi and read the values back into a second, but the Vi me always generates errors. Can I have an example that I could use to realize my function ..?
Thank you

0 Kudos
Message 3 of 7
(107 Views)

Hi Ernest,

 

but the Vi me always generates errors.

Just attach your VI(s) so we can tell you why that error occurs!

Best regards,
GerdW
CLAD expired, using 2009SP1 + LV2011SP1 + LV2017 (+LV2018 sometimes) on Win7+cRIO
Kudos are welcome Smiley Wink

0 Kudos
Message 4 of 7
(105 Views)


Hello thanks for your help, the vi does not generate an error but does not read the value at the line and and the chosen column. I inserted the two codes on a same vi of tests to observe the operation.
But I do not get anything results.
I need help or need a code that can perform my task.
Thank you

0 Kudos
Message 5 of 7
(91 Views)

@Ernest97 wrote:


Hello thanks for your help, the vi does not generate an error but does not read the value at the line and and the chosen column. I inserted the two codes on a same vi of tests to observe the operation.
But I do not get anything results.
I need help or need a code that can perform my task.
Thank you


Perhaps the file is empty the first time?

Also, why update the values on events that seem totally unrelated?

 

The code doesn't reflect the problem you described. Either the code is way to complex, or you didn't tell us properly what you want to do.

0 Kudos
Message 6 of 7
(82 Views)


In fact I could have some code vi but I can not read. Do you have a vi that can solve my problem?
A vi that reads the values saved in a text file according to the desired rows and columns.
Thank you

0 Kudos
Message 7 of 7
(72 Views)