LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Loading an INI file to cRio and reading/writing

Solved!
Go to solution

I did not notice this, but how can this be, because these are labview tools?
How to fix it?

0 Kudos
Message 21 of 32
(1,599 Views)

Hi AndryG,

 

but how can this be, because these are labview tools? How to fix it?

As you only show the error message, but NOT the inputs of your VI I don't know the exact reason.

All I can "see" is: you are working with invalid file paths…

 

Suggestion: use correct file paths!

Best regards,
GerdW


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

You have vi, you can see it for yourself! Everything works as long as I do not transfer the exe file to another location, I already wrote, and here the path is set automatically by labview, but when the vi labview root directory changes does not want to create a new file, I'm here and ask why?

0 Kudos
Message 23 of 32
(1,584 Views)

Hi AndryG,

 

no, I cannot test by myself!

I don't know

- which parameter you provide to your subVI

- which location the EXE is placed

 

as long as I do not transfer the exe file to another location,

Why do you do this?

Do you use an installer when you place the EXE on a different computer?

(Even more we don't know as you didn't provide enough information!)

Best regards,
GerdW


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

I do exe on my computer, and then I use it on another, that's when the problem arises, the path is selected automatically. See the picture, the path is always the same, the directory where exe is, only the file name changes!

0 Kudos
Message 25 of 32
(1,574 Views)

Hi Andry,

 

so again I have to ask: what is the "Name dir" parameter? It was empty in your VI…

What is the exact path you put the EXE in?

 

When we should evaluate your VI you need to provide the information needed to replicate your problem!!!

Best regards,
GerdW


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

Name dir is the name of the file and the key of the ini file, and the path to the photo in the error is specified.

0 Kudos
Message 27 of 32
(1,566 Views)

Here is a draft, you can make an exe out of it and test it!

0 Kudos
Message 28 of 32
(1,554 Views)

Hi AndryG,

 

Here is a draft, you can make an exe out of it and test it!

No, I still can't!

- The LVProj file is just an XML file describing project properties. It does not include any VIs, so the "RW.vi" is missing!

- Even when I use the RedWrite.vi you posted earlier I still miss some information: I have asked several times by now for the "Name Dir" parameter which is empty in that older VI!

 

Please try this snippet to debug your problem:

check.png

Please do string handling with string functions and path handling with path functions, but DON'T mix them in between!

Best regards,
GerdW


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

In dir can write any name, the project I will prepare and will send you with all vi, thanks.

0 Kudos
Message 30 of 32
(1,548 Views)