LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Detecting end of text file

Hello,

 

I am reading a .txt file in a while loop. I read the .txt files in sections.

 

How do I detect othe end of the .txt file and exit out of the while loop?

 

Nevica

0 Kudos
Message 1 of 7
(2,709 Views)

Take a look at this file/example. If you change it. Remember to save it in your project folder.

C:\Program Files\National Instruments\LabVIEW 2010\vi.lib\Utility\file.llb\Read File+ (string).vi



Besides which, my opinion is that Express VIs Carthage must be destroyed deleted
(Sorry no Labview "brag list" so far)
0 Kudos
Message 2 of 7
(2,702 Views)

I'm sorry. Is this an example file. Could you please send me the .vi if you have it?

 

Thanks,

 

Nevica

0 Kudos
Message 3 of 7
(2,700 Views)

Hi Coq Roque,

 

How do I unlock the .vi. At the moment I cannot move wires around open items on he block diagram. It seems to be locked!

 

Nevica

0 Kudos
Message 4 of 7
(2,698 Views)

@nevica wrote:

I'm sorry. Is this an example file. Could you please send me the .vi if you have it?

 

Thanks,

 

Nevica


You will have it for sure. And it is best to use your local one. The folder may vary depending on which Labview version you use. But it will be in the

"......\Labview install folder\vi.lib\Utility\file.llb\ " folder. Just search for the file "file.llb" Do not just sit on your thumb, dare to be an explorer 😉



Besides which, my opinion is that Express VIs Carthage must be destroyed deleted
(Sorry no Labview "brag list" so far)
0 Kudos
Message 5 of 7
(2,695 Views)

It's an NI locked file. Cannot get to it from example finder so its of no use.

 

Nevica

0 Kudos
Message 6 of 7
(2,689 Views)

Not easy to know for Labview beginner. in the toolbar slelect operate->change to edit mode (Ctrl+m). You can also drop it in your block diagram as is.



Besides which, my opinion is that Express VIs Carthage must be destroyed deleted
(Sorry no Labview "brag list" so far)
0 Kudos
Message 7 of 7
(2,688 Views)