LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Local variable fail when using SIT

Dear all,

I am using SIT (Simulink Interface Toolkit) to obtain data generated by the model of  Simulink.  I need to use the local variable of the indicator to get the data out.

 

The interface with the mappings seems to work fine. The problemn is that the local variable of the waveform (this waveform is an indicater which mapped to the output signal of simulink and it can displays the signal from simulink)didn't work. I cann't obtain any data from the local variable, but the waveform which the local variable belonges to seems to work fine.

 

I also found an interesting thing that, when I hightlighting the execution process, the local variable  seems like didn't work at all, because there is no data flows from it.

 

The software version is Matlab simulink R2011b, Labview 2011.

 

Below is a simple test model in simulink. It is a sine signal.

Simulink.JPG  

 

Below is the local variable from the waveform which mapped to the signal of simulink. To check there is any data in the local variable, I put a waveform to check.

back plane.JPG

 front.JPG

0 Kudos
Message 1 of 5
(4,096 Views)

Dataflow.

 

The local variable of the waveform is going to be empty to start.  The writing of the local variable called Waveform to the indicator called Local Variable is going to happen right away.  Only later does the waveform get any data.  But by then the first part has already exectued never to be run again.

 

I would recommend looking at the online LabVIEW tutorials
LabVIEW Introduction Course - Three Hours
LabVIEW Introduction Course - Six Hours

Message 2 of 5
(4,091 Views)

Thanks for your reply. I will try to check the coures. 

If anybody had experience about this problemn, pls share your suggestion, thank you !

0 Kudos
Message 3 of 5
(4,000 Views)

He just told you exactly why it isn't working.

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
Message 4 of 5
(3,985 Views)

Check this out, you will learn a lot from it:

http://www.ni.com/newsletter/51735/en/ 

Specially the part: "Misusing Local Variables".

When you work with LabVIEW, the best is to forget about your text programming language background. Think of dataflow and parallel!

Message 5 of 5
(3,962 Views)