LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Changing Total time and amplitude in simulate arbitory signal

I am mixing a number of signals and trying to produce step function using the simulat arbitory signal. What I would really like to do is be able to vary the total duration of the signal and the amplitude. Does anyone have any idea how this can be done?? AN example of what I am trying to do is included (although the simulate arbitory signal doesn't work properly
 
cheers

Message Edited by mr_nice on 10-11-2005 08:59 AM

0 Kudos
Message 1 of 4
(3,028 Views)

Hy mr_nice,

at first the SubVI is missing in your example. Try to save with options..

To the problem. Why have you put the controls outside the while-loop. The values will only be read at initializing the loop. If you put them inside, every cycle the values from the controls will be updated. I have modifiied your example and I hope that it was what you want.

Ciao TPoint

0 Kudos
Message 2 of 4
(3,019 Views)

Thanks for your reply TPoint

 

I only want to set them at the beginning (more importantly I don't want them changed during).

I have tried to include both vi's now.

My real question is how I change the duration and the amplitude of the arbitory signal

Message Edited by mr_nice on 10-11-2005 09:47 AM

Message Edited by mr_nice on 10-11-2005 09:48 AM

Download All
0 Kudos
Message 3 of 4
(3,016 Views)
I modified your VI to use the Sine Waveform.vi rather than the Express VIs. Using these VIs allows explicit control of the number of samples to be generated, which was part of the problem, I think. This does not really do Offset or step exctly as you may have wanted. It simply sums a square wave. It should give you some ideas about how to proceed. Also, I changed the time axis format on the charts.

Lynn
0 Kudos
Message 4 of 4
(3,004 Views)