LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

sweel

 How to make this example in LabVIEW , anyone , to help?


Swell   Model

X(t)=A ( 1+α ( u(t-t1)-u(t-t2))) sin(wt)

t1<t2,  u(t) = { 1, t>= 0  ; 0, t<0    

parameters

0.1=< α=< 0.8

T =< t2-t1=< 9T

0 Kudos
Message 1 of 18
(2,992 Views)

What do you mean you want to "make" that model?

Do you want to graph it? Solve it?

What do you have done so far?

Cory K
0 Kudos
Message 2 of 18
(2,978 Views)

Hi goce,

 

here's a bigger part of your homework:

check.png

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 3 of 18
(2,975 Views)

I want to show it in a graph, a tried to , but but didn't succed, this is what i get in a graph.

0 Kudos
Message 4 of 18
(2,973 Views)

Thanks 

0 Kudos
Message 5 of 18
(2,970 Views)

Hi Goce,

 

it's a snippet ready to use... Smiley Wink

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 6 of 18
(2,956 Views)

Thanks GerdW , but I can't find the way to edit the snippet, can you please give me the .vi , beceause I want to show the signal in a graph

0 Kudos
Message 7 of 18
(2,949 Views)

It's a LV2010 snippet; Goce's using 8.5.  A Code Capture Tool snippet can automatically save to older versions and GetSnippet (JKI RCF required) can extract them in pre-2009 LabVIEW.  I made this LV 8.2 snippet in LV2010.

 

Example_VI_BD.png

Jim
You're entirely bonkers. But I'll tell you a secret. All the best people are. ~ Alice
For he does not know what will happen; So who can tell him when it will occur? Eccl. 8:7

Message 8 of 18
(2,947 Views)

Thanks, but there is still a problem, I can't see the graph, which I think that it must to be something like this in the atach.

 

Regards

0 Kudos
Message 9 of 18
(2,933 Views)

Gerd's snippet will not give you a graph because it calculates a single number.

All of the variables are set to controls, so the user would set each one of those numbers, then his code will calculate the result.

 

If you want to graph one variable vs the result, you can use his code as a subVI, then pass an array of values in, and hold the other variables constant.

Cory K
Message 10 of 18
(2,929 Views)