LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

control and simulation Module Spring Mass

Solved!
Go to solution

Similar question is  also here ... :smileyhappy:

 

I have a question about the SIMULINK import and Control & Simulation result ... I have done the importing, but the resulting graph is not the same .... Could you give me a hint, what might be wrong ?!

 

Here is the description .... source homepage is link and the SImulink code - link.

 

simulink_model_step-1.jpg

LV-import-Simulink.jpg

 

 

Best regards,

 

Vasco

0 Kudos
Message 41 of 59
(2,306 Views)

For your question about the model not having the same amplitude in LabVIEW.  Since you have the exact same response just a different amplitude check to make sure your Gain settings are all the same as your other model. 

 

For your question about the Ride Analysis and Suspension Control article please refer to this line at the bottom of the page.  "Please contact andy.chang@ni.com to request more information about this article."  

 

For your question about your imported code.  How did you import the code in?  Did you actually run your original model you have the code for?


Regards,

Eric L.
Applications Engineering Specialist
National Instruments
0 Kudos
Message 42 of 59
(2,285 Views)

VASCO

 

The converter works better if you run it on the same machine you have your toolchain from the The Mathworks, Inc installed. If you just have the .mdl files, then you need to be careful with the numbers and values that you get in LabVIEW. In addition, notice that sometimes, when converting, the signal is a 'vector' instead of 'scalar' . This happens because the converter could not verify the correct size. You can open the loop and wire a 'scalar' to it and, after it does propagate the values, you can wire it back. This could help you to correct convert the model.

 

Also, double-check the values again. If it is not matching it is most likely the default values. Please let me know if you have further questions.

Barp - Control, Simulation, RTT and HIL - National Instruments
0 Kudos
Message 43 of 59
(2,275 Views)

One more thing: which solver is it using it? It is very possible that you need to 'adjust' the solvers to mimic the results.

Barp - Control, Simulation, RTT and HIL - National Instruments
0 Kudos
Message 44 of 59
(2,270 Views)

Hi Barp,

 

I  have made the conversion SIMULINK into the LabView with the procedure described on the page - link (comment by the Andy Chang - 06-01-201008:23 PM).

 

The paramters have to be adjusted

 simulation-parameters.jpg

 

The results are quite the same Abasi-impulse.jpg

 

thank you anywy for the hint ... Smiley Very Happy

 

Best regards,

 

Vasco

0 Kudos
Message 45 of 59
(2,265 Views)

Hi !

 

Regarding the Ride Analysis and Suspension Control - the results are quite OK!

ride analysis-0.jpg

 

What would happen, if we changed excitation -on upper body  ?!

The results are not giving me promising results as it should Smiley Mad

 

Step-ride-analysis.jpg

 

The simuation parameters are the same as in upper case.

 

Do You have any idea ?!

 

Best regards,

Vasco

0 Kudos
Message 46 of 59
(2,263 Views)

VASCO-1

 

The problem is on the second feedback loop. If you notice Z2 and Z2_dot on (http://www.ni.com/white-paper/13019/en) have a negative feedback against the disturbance or road profile. Since in your case it is zero, it is fine to wire directly as you had, however, you have to negate the feedback otherwise you will have an unstable system. See the picture below to know what to do. This should fix the issue.

 

 

Vasco_valley.PNG

Barp - Control, Simulation, RTT and HIL - National Instruments
0 Kudos
Message 47 of 59
(2,251 Views)

Hi Barp!

 

thanks again ... the solution is OK ... here are some results with the modified LV code ... 

response - impulse.jpg

 

OK ... I have another chllenge, which is present in the Simulation loop ... "conditional switch" .... could you please propose me some alternative in SIMULINK ....

Friction-1.jpg

 

Could it be done maybe with the Mathscript code ?!

 

The LV code is also present on 4th page on this Forum ...

 

Best regards,

Vasco

0 Kudos
Message 48 of 59
(2,234 Views)

How can I get a copy of the original Ride Analysis and Suspension Control vi dicussed in the tutorial?  I am looking for the base excitation.  Not excitation on the mass.

0 Kudos
Message 49 of 59
(2,184 Views)

Hello ME_guy, 

 

Which tutorial are you referrring to? For more information on the Ride Analysis and Suspension Control.vi, I would contact VASCO-1

Maggie
National Instruments
Applications Engineer
ni.com/support
0 Kudos
Message 50 of 59
(2,165 Views)