LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Generating Exponential Function

Hello, 

 

I’m trying to generate an exponential function 

u(t) = 6 exp^(t-2) 

for a real time from 0 to 2 seconds

 

Can anyone help me 

0 Kudos
Message 1 of 7
(889 Views)

It's built in:

Palette -> Functions -> Mathematics -> Elementary -> Exponential -> exp

 

0 Kudos
Message 2 of 7
(855 Views)

I'm sure you are also knowledgeable about For Loop (which "count" for you) and arithmetic functions which can turn the "index" (the little box with "i" in the lower left of the Loop) into a time as finely-divided as you choose.  Do you also know that if you have a series of LabVIEW functions (such as an exponential times a constant + another constant) and bring the wire from the final output of the computation to the right-hand edge of a For Loop, it will form an "indexing tunnel" (a square with the tiny symbol [] inside it, suggesting an Array) and give you, on the outside of the For Loop (when it exits) an array of whatever you were computing inside the loop.

 

Wire this up to a Waveform chart to see if it looks exponential ...

 

Bob Schor

0 Kudos
Message 3 of 7
(825 Views)

try Chat GPT 

LVNinja_0-1689790901219.png

 

0 Kudos
Message 4 of 7
(820 Views)

Create a linear ramp of x values start=-2, end=0, and the desired number of points using "ramp pattern", feed it through the exponential function and multiply by 6. No loop needed.

0 Kudos
Message 5 of 7
(814 Views)

@altenbach wrote:

Create a linear ramp of x values start=-2, end=0, and the desired number of points using "ramp pattern", feed it through the exponential function and multiply by 6. No loop needed.


And it will fit on a postage stamp!

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 6 of 7
(804 Views)

@billko wrote:

@altenbach wrote:

Create a linear ramp of x values start=-2, end=0, and the desired number of points using "ramp pattern", feed it through the exponential function and multiply by 6. No loop needed.


And it will fit on a postage stamp!


 

Maybe two postage stamps if we use nice labels and don't cramp the code too much. 😄

 

altenbach_0-1689799551391.png

 

0 Kudos
Message 7 of 7
(785 Views)