LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Step signal simulation

Solved!
Go to solution

I need to create a simulation of step signal that is shown in attached image. I have done it via control and simulation loop. But the problem is the signal is not continuously drawing in waveform chart. In control and simulation loop, i have changed the 'Final time' value to 'Inf", but the only the last step value is being written on chart continuously. I have changed  'Final time' to a definite value, but waveform is generated only once. What I need exactly is a same pattern of signal as attached in the image, continuously being written on chart until it is stopped manually. How to do this?

Thanks in advance!

Best Regards,
Dhans 😉
Kudos are welcome 😉
Aspirant Labview Programmer (Labview 14) 😉
0 Kudos
Message 1 of 19
(3,166 Views)

Hi dhans,

 

But the problem is the signal is not continuously drawing in waveform chart.

So the problem is in your VI - but why do you hide this VI?

 

I have done it via control and simulation loop.

Why do you need a simulation loop to generate a signal?

There are a lot of functions in the signal generation functions palette!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 19
(3,158 Views)

Hi GerdW,

        Its just a try. As I already have, control and simulation module, I did a program with it. Thats all. 

Best Regards,
Dhans 😉
Kudos are welcome 😉
Aspirant Labview Programmer (Labview 14) 😉
0 Kudos
Message 3 of 19
(3,134 Views)

Hi Dhans,

 

What I need exactly is a same pattern of signal as attached in the image, continuously being written on chart until it is stopped manually. How to do this?

Use SquareWaveform to generate each of the steps.

Append all the waveforms to build your step sequence.

Output each sample on your chart.

What have you tried so far? (Attach your VI…)

Where are you stuck?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 4 of 19
(3,131 Views)

Ok. I will attach my VI that I have done so for.

Best Regards,
Dhans 😉
Kudos are welcome 😉
Aspirant Labview Programmer (Labview 14) 😉
0 Kudos
Message 5 of 19
(3,128 Views)

Hi Dhans,

 

simple example to have the first two levels of your step sequence:

check.png

Expand as needed. (You may use a loop to concat your waveform parts…)

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 6 of 19
(3,110 Views)

Hi GerdW,

  Thanks for the reply. I will try that. Actually that control simulation loop program working as I need. Here is the next requirement. I need to find the peak value in that step signal. I have tried spectral measurements express vi, but i think it is not a right thing. Is there the other way to measure the peak value of the step signal?

  

Best Regards,
Dhans 😉
Kudos are welcome 😉
Aspirant Labview Programmer (Labview 14) 😉
0 Kudos
Message 7 of 19
(3,105 Views)

Hi Dhans,

 

what about a simple MinMax-function?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 8 of 19
(3,099 Views)

Hi GerdW,

 

   Before every post you posted, I have tried that idea. I have already done it. Thanks for the replay. Let me ask another one. Is there any way to get a value of a single point in a signal. For instance, If i click on a signal at a particular point, amplitude of the point of the signal will be shown. Is there a way?

Best Regards,
Dhans 😉
Kudos are welcome 😉
Aspirant Labview Programmer (Labview 14) 😉
0 Kudos
Message 9 of 19
(3,096 Views)

Hi Dhans,

 

If i click on a signal at a particular point, amplitude of the point of the signal will be shown. Is there a way?

I guess you are talking about graphs showing your signal data: use a cursor…

(When you use charts you need to switch over to graphs as charts don't support cursors.)

Hint: there is also an example VI showing you how to use cursors in graphs.

 

Before every post you posted, I have tried that idea. I have already done it.

Then you need to learn to write better questions. And to attach your current state of the VI too…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 10 of 19
(3,087 Views)