LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Incorporation of Fuzzy Block From Simulink into LabVIEW Through SIT

I am working on a project where I am using Simulation Interface Toolkit. In my applciation, I am using PXI-8176 with a PXI-6070E DAQ card. I generated my model using Simulink in which there is a Fuzzy Logic Control block.

However, when I run my application real time on my PXI 8176 machine,  for some reason, the output of the fuzzy logic block is always constant when
it is supposed to be changing as I change the inputs to the block ( I am able to observe my hardware input). I got in touch with the Mathworks people and confirmed that the DLL file generated by the real-time workshop contains the fuzzy block and everything seems to be working well with that dll file. I was wondering if there is any additional step that I have to follow in order to make the fuzzy block work in real time in my real-time machine. Or is there something that I need to do to be able to observe the fuzzy logic outputs?

The steps that I walked through as folows:

1-)I went to build option and the pick nidll.tlc, as I am targeting a PXI
machine for the real-time application.
2-) I built my appliciation using Real-time workshop.
3-) Then I opened  Labview program to generate a user interface for my
simulink model using (Simulation Interface Toolkit). Then I loaded the dll
file generated by the real-time workshop and deployed the final code into
the PXI Real-time machine. Everything is working just fine except that
when I probe the output of fuzzy logic control block, it always spits out
constant values. However, the output of the fuzzy logic block is always
constant when it is supposed to be changing as I change the inputs to the
block.
 

Thank you so much!

Serdar

 

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

Hi Serdar,

 

Do you have any other outputs that are updating properly?  When you say that the fuzzy logic is outputting constant values, do you mean that the output stays the same no matter what you have the inputs set at?

 

Best Regards,

Bryan H.
0 Kudos
Message 2 of 5
(3,096 Views)

Hi Bryan;

Thank you so much for taking time to respond to my question. Yes. when I say the fuzzy logic is outputting constant values, I mean that the output stays the same no matter what you have the inputs set at.  The inpus to my fuzzy logic is coming from the DAQ card which is reading the outputs of pots.  I am able to observe the pots output ans yes they are updating properly.

Thank you so much.

Serdar

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

Hi Serdar,

 

Have you tried running your model in LabVIEW on your host computer?  Try simulating the hardware with controls and indicators and see if it is running correctly without the hardware.  Also does your model work correctly before using SIT to connect to it.  LabVIEW and SIT only reference the model you created.  

 

Best Regards,

Bryan H.
0 Kudos
Message 4 of 5
(3,038 Views)

I think I solved the problem with the fuzzy logic implementation. My test values were outside the range in which my fuzzy logic block was defined and, as a result, the fuzzy block was outputting constant values. Thank you very much.

Serdar

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