LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

error 7 binary file

Good morning,

I have a problem with the binary writing of a file, this one returns me the error 7 that is to say that the path is not found although the path is well noted... can you help me?

I put here 2-3 screenshots to better understand.
Thank you in advance,

anto.

Download All
0 Kudos
Message 1 of 5
(1,595 Views)

Hi Anto,

 

why do you think your cRIO (or similar RT target) has access to the harddrive of your Windows computer?

 

Suggestions:

  • Go through the cRIO Basics course to learn about the specialties or RT targets.
  • Examine all those example projects coming with LabVIEW-RT: they explain how to transfer data from RT target to Windows host computer!

Other suggestions:

  • Use FormatIntoString to simplify formatting of the filename…
  • I recommend a different timestamp formatting to help with file sorting on Windows, like "%Y%m%d-%H%M%S"!
  • Do you really want to use all those local variables? On a RT target???
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 2 of 5
(1,586 Views)

1. The file itself likely doesn't exist.  You need to use the Open/Replace/Create File node and choose the option to "replace or create" in order to create the file.  Then you can write to it.

 

2. The error looks like you are using a cRIO or some other RT device.  That device cannot write to your PC.  You have to give it a location on the device for it to write.



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
Message 3 of 5
(1,585 Views)

Hello,

 

Oh yes indeed, I managed to create my file on a usb key which is connected to my compactrio but the txt file is in macintosh format (CR) and I would like the file to be readable under windows because it is a binary writing... how can I do the conversion between linux to windows?

 

 

0 Kudos
Message 4 of 5
(1,506 Views)

Hi Anto,

 


@Anto_98 wrote:

I managed to create my file on a usb key which is connected to my compactrio


Fine you could solve your first problem!

 


@Anto_98 wrote:
but the txt file is in macintosh format (CR) and I would like the file to be readable under windows because it is a binary writing... how can I do the conversion between linux to windows?

So you create a "txt file", but you are using "binary writing"? This doesn't fit together…

I guess it would help when you would attach your current VI(s) used to create that "text file"!

 

  • Text files are always readable using Windows - I suggest to use a better text editor like Notepad++ instead of the simple editor coming with Windows.
  • To convert the EOL chars you can use a simple Search&Replace operation. Or you use the "Normalize End of Line" function in LabVIEW…
Best regards,
GerdW


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