LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

error 4 at write file +{I16} at labview 7.1

Solved!
Go to solution

I make something like these in 8.6.1

 

save file.JPG

 

but in Labview 7.1 I cant make it x(

could any1 upload a vi that change the name of the file and continuos writing the file for each 5 hours??

Thanks

0 Kudos
Message 11 of 40
(1,464 Views)

Hi EduU,

 

here's an example based on my last message... I only made the general structure, you have to fill in missing parts Smiley Wink

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 12 of 40
(1,462 Views)
Solution
Accepted by topic author EduU

Attached a 7.1 example which writes to a file every 5 hours.

 

 

Christian

0 Kudos
Message 13 of 40
(1,454 Views)

Hey Christian

Thanks for the example

but I'm having some problems here

I'm using the write [I16] file 

and when the time have passed, like 5 hours

the program close the file

and when will start the other one

i receive an error:

 

Error1 : Occurred at Write File +[I16]: Write file

 

Possible reason: An input parameter is invalid

 

I make equal yours, i will upload the VI so if you can

take a look and see what I'm doing wrong! =/

 

I put the value to compare as 10 only to make the test faster.

 

Thanks

0 Kudos
Message 14 of 40
(1,450 Views)

You will need to change the loop tunnels of the file reference to shift registers.

 

 

Christian

0 Kudos
Message 15 of 40
(1,448 Views)

ohh really thanks Chris!

Now it works!

Message Edited by EduU on 12-11-2009 09:09 AM
0 Kudos
Message 16 of 40
(1,444 Views)

Hey Christian, Now i have one problem when I'm trying to read the files I splited.

The first file, I can read it perfect, but the second and the others I receive the same error as I was receiving at write, but at Read File +[I16]

 

I tryed to change the loop tunel to shift register, but still don't work.

 

Any other clue to give me?

 

Thanks

 

0 Kudos
Message 17 of 40
(1,429 Views)

Hi EduU,

 

how are you reading your files? How can there be an EOF error on start of reading?

Clue: Select the correct file for reading Smiley Wink

 

Show your vi!

Message Edited by GerdW on 12-11-2009 05:17 PM
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 18 of 40
(1,425 Views)

well I'm uploading the VI

and I'm selecting the correct file for reading

always when I execute this program I have to select which file will be read!

 

Thanks

0 Kudos
Message 19 of 40
(1,421 Views)

Hi EduU,

 

apart from that horrible block diagram:

You only open one file and read from it continuously. I thought you had splitted your data into several files and now you read from one file only?

 

Please cleanup your VIs before posting...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 20 of 40
(1,418 Views)