06-02-2015 09:09 AM
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?
06-02-2015 09:18 AM
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
06-02-2015 09:28 AM
Use the Write To Text File and the Read From Text File functions.
06-03-2015 12:34 AM
@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
06-03-2015 12:38 AM
@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
06-03-2015 06:45 AM
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?
06-03-2015 07:20 AM
@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.
06-03-2015 07:28 AM
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.
06-05-2015 07:20 AM
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