LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

SIT abs brake model error 14103

Hi everybody,
 
I installed the SIT to communicate between LabVIEW and Matlab simulink. I tried the example with the abs brakes which is given on the NI-homepage because I'm new with this stuff. First there appeared the error 14103. So I went to Tools->Options->Front Panel and unchecked the "Use localized decimal point". Then it seemed to be ok, there was no error anymore. But the program doesn't run. When I start it and change the slider there is no change in the vehicle speed or wheel speed e.g.. They are at 0.
Does anybody know why? Does the simulink model has to be open or closed? Or could there be another error? Do I have to synchronize LabVIEW and Matlab???
 
Thanks for your help.
Steffi
0 Kudos
Message 1 of 8
(3,421 Views)
Steffi,

did you press the "green arrow" (run simulation) before changing the slider value?
Essentially, it is enough to have Matlab started, the SIT-Host VI (LabVIEW) lauchnes the linke Simulink model automatically.

By pressing the run/pause/stop button you take directly influence on the execution state of the Simulink model.


If the above mentioned stuff does not help, please come by with some more information on what you do.
Thanks,
Thomas
0 Kudos
Message 2 of 8
(3,391 Views)
Hi Thomas,

thank you! I think I solved the problem, but got another one: )
First some more information on what I do...
I created a PID conrtroller in LabVIEW, which should control the set parameter in the simulink model depending on the output of the simulink model. Do you know what I mean? I simulated a human lung with simulink, input is the desired oxygen (from LabVIEW) and output is the oxygen concentration in the lung.
The problem is that the simulink program runs much more faster than the LabVIEW program, which leads to mistakes in controlling.
Do you know how to synchronize LabVIEW and simulink? I have a timer in the LabVIEW program, is there any comparative option in simulink (I have a continuous model)? (I know you're from NI, but maybe you know anyway. Or do you have any other hint for me where I can search for my answer (despite the mathworks-homepage)?

Thanks in advance!
Steffi

0 Kudos
Message 3 of 8
(3,381 Views)

Steffi,

what you gonna try to implement isn't that easy with your approach.

Simulink and LabVIEW are running independent from each other. Furthermore, Simulink is generally a simulation environment,  to combine it with other targets (HW or SW) you need to use the Real-Time Workshop (RTW) from Matlab to create a DLL of your Simulink model. Afterwards you can implement this DLL in LabVIEW by using the SIT. In case of using the Simulink DLL, the structure of two independent running frameworks changes in the following way: Just imagine that LabVIEW is the only framework and in this framework you call the Simulink model again and again and again... (the model is compiled with a fixed steped solver, therefore, the calling framework (LabVIEW in our case) is the time base for the model)

If you don't have the RTW, I recommend to go one of the following ways:
Use either the LabVIEW Simulation module to translate the Simulink model into LabVIEW code or use LabVIEW for controlling (Kp,Ki, etc.) and/or monitoring (specific signals) only.

Another possible - but really hard way - would be to synchronize Simulink by using a timer obj in combination with a triggered subsystem.


I hardly recommend to use the RTW.

Thanks,
Thomas

 
Message 4 of 8
(3,377 Views)
Thank you very much for your help, Thomas.

I tried it with the RTW, but the result is an error as the RTW doesn't support algebraic loops which I have in my simulink model.
Do you know if it's still possible to convert the model via LabVIEW Simulation Module to a LabVIEW code (does the LabVIEW simulation module support algebraic loops?)?
I'm working as a student in an institute, does the institute has to buy the software (LabVIEW simulation module) or where can I get the software?

Thx a lot!
Steffi
0 Kudos
Message 5 of 8
(3,350 Views)
When you are talking on algebraic loops, I guess, you mean direct feedthrough operations right?
Essentially, this should be neither a problem for the RTW nor for LabVIEW Simulation.
Is it possible that you post the file?
Alternatively you can send it by email (thomas.sandrisserXni.com)

Thanks
0 Kudos
Message 6 of 8
(3,348 Views)
Hi Thomas,

thank you very much for that offer. I had to ask my academic advisor as I don't know if I'm allowed to publish the model. He said that he has to talk with his employer to check whether we can publish it or not. So I will come back to you; )

Thanks a lot!
Steffi
0 Kudos
Message 7 of 8
(3,307 Views)
Steffi,

if we run into a problem concerning the protected knowledge, we can sign an NDA.

ThSa
0 Kudos
Message 8 of 8
(3,299 Views)