LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Global Variable from Control and simulation

Solved!
Go to solution

The graph in your screenshot is what is called a piecewise function. Roughly, it would be something like this:

 

tmod = tsim modulo 6000

 

if tmod <= 1000

    y = tmod * 2 / 1000

if 1000 < tmod <= 2000

    y = 0

if 2000 < tmod <= 3000

    y = 2

ect...

 

where tsim is the simulation time and y is your output.

 

This is admittedly not as ideal as the periodic block you mentioned, but should be easy to implement none the less.

0 Kudos
Message 11 of 13
(671 Views)

I changed your programming, it is working. please see it.

0 Kudos
Message 12 of 13
(645 Views)

You replied to a post which is about 4 years old...

0 Kudos
Message 13 of 13
(641 Views)