LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Replace read character from file

HI,

 

I have updated my labview 2014 and have a load and save function wich not working on the new version.

It says that the read character from file is not supported any more.

 

How to i fix it to run in labview 2014?

 

 

Download All
0 Kudos
Message 1 of 9
(3,672 Views)

Please do not attach tiny pictures of your VIs (I can't see them clearly).  Instead, attach the VIs, themselves -- this lets us open them in LabVIEW, see if there are any broken arrows, read the error messages, and actually try your code (any test any fix we might suggest).  Help us to help you.

 

Do you know about Snippets?  This is what looks like a .PNG file, but can be dropped in a LabVIEW Block Diagram to become executable code.  Find it on the Edit menu of the Block Diagram.

 

Bob Schor

0 Kudos
Message 2 of 9
(3,663 Views)

Use the Write To Text File and the Read From Text File functions.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 3 of 9
(3,653 Views)

@Bob_Schor wrote:

Please do not attach tiny pictures of your VIs (I can't see them clearly).  Instead, attach the VIs, themselves -- this lets us open them in LabVIEW, see if there are any broken arrows, read the error messages, and actually try your code (any test any fix we might suggest).  Help us to help you.

 

Do you know about Snippets?  This is what looks like a .PNG file, but can be dropped in a LabVIEW Block Diagram to become executable code.  Find it on the Edit menu of the Block Diagram.

 

Bob Schor


HI,

 

OK, I have now attach my VIs.

 

//Ronny

Download All
0 Kudos
Message 4 of 9
(3,615 Views)

@crossrulz wrote:

Use the Write To Text File and the Read From Text File functions.


I have tried the Read from text file and write to textfile but i could not get it to work.

Labview says that i should replace with these, but how?

 

//Ronny

0 Kudos
Message 5 of 9
(3,608 Views)

Ronny_S wrote:

I have tried the Read from text file and write to textfile but i could not get it to work.

Labview says that i should replace with these, but how?


Show use exactly why you have tried.  They are drop in replacements.  What exactly do you mean by "could not get it to work"?  What does not work correctly?


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 6 of 9
(3,578 Views)

@crossrulz wrote:

Ronny_S wrote:

I have tried the Read from text file and write to textfile but i could not get it to work.

Labview says that i should replace with these, but how?


Show use exactly why you have tried.  They are drop in replacements.  What exactly do you mean by "could not get it to work"?  What does not work correctly?


I'm just a newbie in labview and try to get a test program to run on labview 2014.

When i replace it with read from text file (see attached vi) and try to run it,  nothing happens. With orginal vi i have to select a file to load.

 

 

0 Kudos
Message 7 of 9
(3,567 Views)

Well, you need to supply a path.  Why else would you have that input?

 

You could do a check for Not A Path and use the File Dialog if your path is Not A Path.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 8 of 9
(3,562 Views)

Dear Ronny, 

As Crossrulz point out, it is a good idea to implement a check so we acually have  a path. 

I made some additional recommendations in the attached VI.

Regards 


0 Kudos
Message 9 of 9
(3,520 Views)