Showing results for 
Search instead for 
Did you mean: 

how to fuzzy logic vi in starter kit 2.0(sbRIO )

when we are working on Fuzzy logic project we have faced a problem,

our problem we have writtern the fuzzy logic with help of fuzzy designer toolkit  and we have fixed to the starter kit 2.0 using case statement in these way we designed the design it is error free code, but while dumping the code in sbRIO we are getting out the program. We are unable complete the task.

So if any body have solution so please convey to us.

                                          Thank you 



0 Kudos
Message 1 of 6

The problem most likely is that, when you target the sbRIO, the program can't find the fuzzy logic file that you created with the editor. To fix that, you have to download the file to the target to a location that you know that you can't find when running the program. See here for more information:



Barp - Control, Simulation, RTT and HIL - National Instruments
0 Kudos
Message 2 of 6

no information your send link no use 

my problem is fuzzy logic path file is not taken the sbRIO (stater kit 2.0) 

plase any solve this problem give me 

0 Kudos
Message 3 of 6

First, you must understand a bit better how to work with RT targets and accessing the files in that system. The link I sent you was to teach you a bit more how this works.


Then, the other options is demonstrated in the shipping example:

C:\Program Files (x86)\National Instruments\LabVIEW 2015\examples\control\fuzzy\Car Parking\FuzzyEx Car Backward


Here is the snapshot of it:



In here, although the options says TARGET_TYPE== DSP, this is also applied to RT targets too. To do that, you can change the taget to:



In doing this, you have to do the following to load your fuzzy logic system into the local variables. To do that, you need to do the following:

a) First, you need to load those local variables with your fuzzy logic definition. To do that, the easiest way is to just run your application on Windows (setup as the example above), which it will populate the locals variables "fuzzy system forward" and "fuzzy system backward". Then, you need to find those controls and, at the border, right-click to the control and use 'Data Operations >> Make current values". This will make the data permanent to the local variable.

b) Target the VI to RT. This will enable the code above and it will now use the local variables to load the code to it. This should be enough to make it possible to run this code.


Now, the second option that told you before was to download the ".fs" file to Real-time (this is the link I sent you before) and, then, you MUST change the location of where you are reading the file on the target. Imagine that you are running the VI on another computer and you need to know where the file is supposed to be placed. You MUST know this before running the VI successfully on RT.


Hopefully this should give you enough information on how to complete this operation.

Barp - Control, Simulation, RTT and HIL - National Instruments
0 Kudos
Message 4 of 6

my problem is stater kit 2.0 not taken the path file .fs file fuzzy logic 

see the screen short below





0 Kudos
Message 5 of 6

You are running exactly what I said before: the deployed VI can't find the file because the file is not on the target. Then, if you want to go this direction, here are the instructions in how you can 'FTP' your file to the C drive of the target:


Then, all you have to do is to use enter that path when you are targetting RT.

Barp - Control, Simulation, RTT and HIL - National Instruments
0 Kudos
Message 6 of 6