LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Error 7 occurred at Open File+.vi:open path

Solved!
Go to solution

Hello Everyone, 

 

I am facing this error and unable to counter it even going through many treads people posted in the past. I am attaching my code and supported files for LabVIEW master's to suggest how to get rid of this error. I think I am giving right paths to the folders but code still gives this error. Interestingly I am getting partially right output. 

Download All
0 Kudos
Message 1 of 4
(2,165 Views)

Hi Hassan,

 


@HassanIqbal wrote:

I am facing this error and unable to counter it even going through many treads people posted in the past.


Did you try to debug your VI?

There are not so many places where an "Error 7 at OpenFile" could happen!

 

I did that for you and found the problem: you are trying to access a non-existing file with your VI. When trying to open a non-existing file you will get error 7 ("file not found" as it says in the error description!)…

(Hint: the error only occurs with your test.tfd, which defines a Suprasil "environment".)

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 4
(2,157 Views)

Hi GerdW, 

 

Thanks for your reply. Yea I could see the error 7 is originating in the case structure. 

 

I would like to know little bit more than hint. 

 

Regards,

Hassan

0 Kudos
Message 3 of 4
(2,143 Views)
Solution
Accepted by topic author HassanIqbal

Hi Hassan,

 


@HassanIqbal wrote:

I would like to know little bit more than hint. 


Use a probe to check the filepath used to call that OpenFile function! (That's called "debugging"…)

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 4 of 4
(2,137 Views)