LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Read" and Write from text file" functions indicates that these functions do not work in a LLB.

"Read and Write from text file" functions indicates that these functions do not work in a LLB.

 

That's exactly what I want to do that however?

 

First .. Is not working from a LLB true about the simple "Write to a text file" and "Read from a text file" functions?

 

Second- is there any way around this?

 

(I see the other functions within File I/O group- however they seem a little complicated at this point for me?)

Is there a simple Read and Write to text file that is compatible with LLB?

 

I'm using full development 2018

0 Kudos
Message 1 of 7
(1,297 Views)

Hi chrlum,

 


@chrlum47 wrote:

First .. Is not working from a LLB true about the simple "Write to a text file" and "Read from a text file" functions?

Second- is there any way around this?


1. Yes, it's true. You cannot access (or create) text files inside LLB files using these functions.

2. No. Why do you need it anyway?

 

General comment: Using LLBs is not recommend - since several a lot of years…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 7
(1,293 Views)

well,

 

I want to record data into a text file as my program progresses through its measurement cycle.

 

And I really want a very simple treatment of this so what would I use?

0 Kudos
Message 3 of 7
(1,282 Views)

Hi chrlum,

 


@chrlum47 wrote:

I want to record data into a text file as my program progresses through its measurement cycle.

And I really want a very simple treatment of this so what would I use?


Then just use Read/WriteTextFile.

 

Why do you even care about "LLB files"?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 4 of 7
(1,277 Views)

oh pull my main VI out of the LLB and then use the rewrite file functions?

0 Kudos
Message 5 of 7
(1,268 Views)

Hi chrlum,

 


@chrlum47 wrote:

oh pull my main VI out of the LLB and then use the rewrite file functions?


Now I guess I understand your concerns…

The WriteToTextfile function can be called from a VI saved inside a LLB file, but the text file created needs to be located in an "ordinary" folder (not inside a LLB file)!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 6 of 7
(1,259 Views)

okay thanks I'll give it a try I'll let you know how it turns out

0 Kudos
Message 7 of 7
(1,255 Views)