LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

usefulness of read from measurement file express vi

Solved!
Go to solution

Hi,

 

I found the read from measurement file express vi in LV7.1 does not read from beginning of the file when you excute it the second time. Instead, it resume from where it stopped last time. Usually, user would read the whole measurement file every time. So when you try to read it the second time, it will pop up an error window saying that it reached the end of the file (because it read the whole file the first time).

 

I wonder how useful is it to resume from the last stop point? Is there a way to start from the beginning every time the VI excute it?

0 Kudos
Message 1 of 3
(3,512 Views)
Solution
Accepted by topic author bo200008

I am 90% sure that is the way the Read from Measurement File functions. Every time it is called in a single run of the application, it will start off from where it left off. You will need to work with the low-level VIs to get what you want to do.

 

This Express VI operates similarly to the following VIs and functions:
Open/Create/Replace File
Read from Text File
Read from Binary File
Read From Spreadsheet File
File Dialog
Scan From File

 

And, you can always use the Set File Position node to set the position at the beginning of the file.

Adnan Zafar
Certified LabVIEW Architect
Coleman Technologies
0 Kudos
Message 2 of 3
(3,498 Views)

Thanks.

 

I ended up with using Read from spreadsheet vi. It is work fine now.

 

By the way, the set file position function is not presented in labview 7.1 but it has a seek file which seems to have a similiar functionality.

 

 

0 Kudos
Message 3 of 3
(3,494 Views)