LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Error 7 occured at Open/Create/REeplace File in NI_Fuzzy_Logic_API.lvlib

I keep getting this error all the time, It seems like the Labview is not able to locake my fuzzy logic system file the so called .fis file. I have tried several ways to create a path to the location where my file is, but it always gives me this error. Its incredibly irritating.It just dosent make sense. 

Also what is irritating is that National Instruments explains several places how to do certain things, and when you do them exactly to the point it doesn't work and you get errors.

Does anybody have any clue on how to make this path correctly????Error7.jpg

0 Kudos
Message 1 of 5
(3,578 Views)

Hi adis,

 

Does anybody have any clue on how to make this path correctly????

Well, start by using standard delimiter chars as expected by Windows! You used a forward slash when Windows expects a backslash!

 

To avoid/minimize problems like this you should use path constants instead of strings: they come with path checking already built in!

Best regards,
GerdW


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

I figured out the problem. I removed the blocks Build Path and Current VIs Path and used only File Path control directly into the FL Load Fuzzy System block and baaam it worked. The NI FRuzzy Logic Guide was misleading a bit.

 

0 Kudos
Message 3 of 5
(3,514 Views)

Hi adis,

 

I … used only File Path control directly

So you used a correct path (as expected by Windows) and your VI is working!?

How is this related to the PID/Fuzzy toolkit and its help?

 

(Hint: use AutoCleanup before uploading images of the VI block diagram…)

Best regards,
GerdW


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

Hi GerdW, and thanks for the response. I am relatively new to Labview so some of my questions must probably appear very obvious to many peeps here. Apologize for that.

I was using the recipe from the LABVIEW-PID and Fuzzy Logic Toolkit User Manual that I found online on how to make Fuzzy logic controllers. That is why I used this approach from examples from the manual with Current VIs Path block and  Build Path blocks etc which didn't work.

Fuzzy.jpg

Anyways my project is actually monitoring and watering of a potted houseplant where I need to implement a fuzzy logic controller to control when the watering of the plant shall be done. The watering of the plant is mainly done when the soil moisture drops below certain amount of %. Now the controller with the defined membership functions is done, and the output from it is actually the watering dosage time, basically the pump work time.How ever since my pump and the rest of the system is wired up to an Ardunio UNO I dont know how to start the pump from Labview, so this is the next obstacle.

0 Kudos
Message 5 of 5
(3,492 Views)