LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

control and simulation Module Spring Mass

Solved!
Go to solution

Hi VASCO-1,

 

Sorry for the late reply. With regards to your first question, the Simulation 1 Waveform chart is simply scrolling right at the 10s mark to accomodate more data, thus clearing the chart of the previous 10s worth of data. I'm not sure why this isn't the case for the Simulation 2 chart, as it looks like they should be plotting the same number of data points. A quick and easy way to fix this would be to double-click the last value on the time axis (currently 10) and then change it to a value like 10.01. This will prevent the chart from scrolling. 

 

With regards to your second question, the code is simply cycling the excitation path after every 10 seconds due to the Quotient and Remainder VI you use to feed into the lookup table. Thus, at exactly 10s, the input to the system is restarting from x=0 in your table control. You can see this behaviour if you increase the simulation time - the excitation path will simply repeat after every 10s. If this is a problem, you can specify the last point in the table to be at a value x>10 and set the y terminal of the Quotient and Remainder VI to the same value. Then, if you run the simulation for 10s, the excitation path will not reach the next cycle and you won't see the step at 10s.

 

Sim.png

 

0 Kudos
Message 31 of 59
(2,699 Views)

Hi Jospeh,

 

Thank You for reply - but could You please upload the vi file as LV2010 version, becuase I am not able to open Your LV2011 file.

 

The proposed solution is just "temporary or custom bridge", but since the variable profile or path excitation is very freuquent in engineering field. It would be nice to find it very soon as serial solution in LV2011 or LV2012.

 

Another issue open me a question - multi decision step (if then) in Control and simulation. Do You find proposed solution OK, because I could not implement it with Nonlinear C&S Toolkit's - Relay and Switch.

 

The question and proposed solution for the friction damper - which has nonlinear and 3 area characteristics (v>0, v=0, v<0).

Friction damper.jpg

 

Friction damper -1.jpg

 

The graphs are also very peculiar, since the solution for the C&S model for the friction damper is not adequate ?!

 

Thank You for Your effort!

 

Vasco

0 Kudos
Message 32 of 59
(2,692 Views)

Here is also attached VI.

 

BR, Vasco

0 Kudos
Message 33 of 59
(2,687 Views)

Hi VASCO,

 

Here is the 2010 VI. Did you attach the wrong VI in your last post? It doesn't look like the screenshot you posted most recently.

0 Kudos
Message 34 of 59
(2,678 Views)

Hi!

 

Thaks for the LV2010 file ... now it is OK.

 

In my last post, I have gave You wrong code ... here is he right one. Main issue is, how to achieve in Control and simulation multidecision task icon or subvi with similar property. This software procedure is very useful or elegant in more complex VIs and mechanical simulations (oscilations). Similar results (for dampers) are already available in LVexample file Shock Absorber Report.

 

 Shock-absorber-performance-report.jpg

 

The  resuts shouldbe similar on the graphs from example report e.g. force/displacement. The procedure to import SIMULINK block is at higher level very tedios Smiley Surprised and the resulting LVcode is sometimes very complex. 

 

Thank You!

 

best regards,

 

Vasco

 

P.S. My I ask you for the attention (for someone from NI) about my other forum thread - http://ni.lithium.com/t5/LabVIEW/CWT-time-scale-amplitude/td-p/1911031 .... this question is quite often present in many cases7forums around ... Smiley Sad

 

similar ... http://forums.ni.com/t5/LabWindows-CVI/How-to-show-CWT-in-3D-instead-of-intensity-spectrum/td-p/1766...  ....unanswered ...

 

 

 

 

 

0 Kudos
Message 35 of 59
(2,671 Views)

Hi Barp!

 

I have tried the same code for the valleys instead of peaks, but it is not working ... do You have an idea what it might be a problem ?!

 

Thanks!

 

Best regards,

 

Vasco

0 Kudos
Message 36 of 59
(2,638 Views)

Hey Vasco

 

For the 'valleys', you have to provide a 'threshold' that is above the valleys of the signal. I entered 7 for now, but you could just easily just provide the maximum response of the signal as a reference. Does it makes sense?

 

Vasco_valley.PNG

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

Hi Barp!

 

Thanks ... makes sense ...

 

Best regards,

 

Vasilije

0 Kudos
Message 38 of 59
(2,623 Views)

Hi!

 

Tis time I would like to ask Youfor the conversion issue regarding SIMULINK into the Control and Simulation. Attached are SIMULINK code as well as LabView code and the source Internet page - link.

 

The simULINK code is available on the link - here.

 

I have set the same parameters, but I do not get the same amplitude response - could You tell me where is the mistake ?!

 

Thank You for your help!

 

Vasco

SIMULINK-Conversion-LabView.jpg

SIMULINK-Conversion-LabView-1.jpg

 

 

0 Kudos
Message 39 of 59
(2,604 Views)

Hi!

 

Do You have a code or at least the input parameters for the LabView example case - Ride Analysis and Suspension Control ?!

 

Thank you!

 

Best regards,

 

Vasco

fig2_20110608134654.png

0 Kudos
Message 40 of 59
(2,603 Views)