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

Well Gerd, I splitted the files when I'm writing it, but now I don't know how to read the splitted files, I only can read the first one. 

 

Sorry for the block diagram, but this program wasn't made by me.. and I'm a rookie at LabVIEW sorry for that =/

 

I really don't know how to do that, Could you help me?

 

with an example, or telling me what I have to change?

0 Kudos
Message 21 of 40
(1,366 Views)

Hi EduU,

 

hit the original coder of that VI with big wooden club Smiley Wink

 

You have to include the same logic as for splitting the data when writing:

On EOF error close the current file and open the next one. Use our examples as guideline...

Best regards,
GerdW


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

Here is the Writing VI after the modify I did

 

Now it is spliting the file after each 10 seconds (only a test)

 

so Now in the Read VI i have to use the same logic, but how?

 

In this VI I open a file and can pass the image each second can back to the last second

can pass 5 seconds and back 5 seconds.. I can watch what i have wrote.

 

I will upload it here, and maybe you can help me more after you take a look on it!

 

Thanks

0 Kudos
Message 23 of 40
(1,360 Views)

Hi EduU,

 

I already told you how:

if EOF error then open next file!

Include some proper error checking!

Best regards,
GerdW


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

I already told you how:

if EOF error then open next file!

Include some proper error checking!

 

Well, you told me but I didn't understand

what is EOF ? and how can I open the next file??

 

Thanks for helping!

0 Kudos
Message 25 of 40
(1,333 Views)

Hi EduU,

 

EOF = End Of File, you get an error message with exactly this status...

 

"how to open next file?"

Exactly the same way you open the first file Smiley Wink

It works like the "saving" example: close the current file and open the next one...

Best regards,
GerdW


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

Well, but in the saving example I was using a time of 18000 seconds =  5 hours

so I close the file and open another one...

 

and for read, how can I make the program knows, when it will have to open the next file?

0 Kudos
Message 27 of 40
(1,323 Views)

Hi EduU,

 

you have to open the next file when the current is EOF...

Best regards,
GerdW


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

Yes, I understand that

but could you make a simple vi with an example?

 

so I can see what you are talking about

and adjust it to my program!

 

please! thanks

0 Kudos
Message 29 of 40
(1,314 Views)

Hi EduU,

 

as I always said: open new file on EOF error:

newfileonEOF.png

It's a LV2009 snippet, but you can re-create it in LV7.1 Smiley Wink

 

And yes, the "new filename" wire is missing in the example - you want to learn LV, don't you?

Message Edited by GerdW on 12-14-2009 01:05 PM
Best regards,
GerdW


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