LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to output sequence of analog signals in LabView

Solved!
Go to solution
Hello, I want to output a series of analog signals in sequence using LabView to my USB-6281. For example Id liek to output a sine wave for 10 seconds, then a square wave for 20 seconds, then a triangle wave for 10 seconds. I want this to be done automatically so i dont have to put on a sine wave, wait 10 secodns and manually change it. I tried using a straight sequence structure and using time delays in the loops but this didn't work. Im relatively new to LabView so im kind of stuck here. any help would be greatly appreciated.
0 Kudos
Message 1 of 18
(4,644 Views)
here is the VI. if you look into the Non uniform rain case, the idea will be there. Iv been hearing about state machines as a better choice but im not sure why or who to do that.
0 Kudos
Message 2 of 18
(4,631 Views)

You were close with the state machine, but not quite.

Please look at the attached VI.

I modified your VI to act as a state machine.


I do not have the appropriate hardware to run this VI, so I cannot test it. 

Cory K
0 Kudos
Message 3 of 18
(4,617 Views)
hey cory sorry forgot to mention im using labview 8.2.1 and that file is ifrom 8.6 and is incompatible. could you convert it to the older file format and repost? even a screenshot would be very helpful
0 Kudos
Message 4 of 18
(4,606 Views)

OK no problem.

Here is the VI again, in 8.2 this time. 

Cory K
0 Kudos
Message 5 of 18
(4,602 Views)
hm this time it said the VI is from 8.5 and still doesnt work
0 Kudos
Message 6 of 18
(4,597 Views)

F11Raven wrote:
hm this time it said the VI is from 8.5 and still doesnt work
Smiley Surprised Oops, sorry. Thats what happens when you click without looking. 

 

Cory K
0 Kudos
Message 7 of 18
(4,594 Views)
from what i see you thnik i meant switch from each case but what i want to do is within the "non uniform rain" case. inside it there is a sequence of different waveforms i would like to output. when attenuatioin pattern non uniform rain is chosen, the VI will output a sine wave for X secodns, square wave X secodns triangle wave for X seconds and repeat periodically.
0 Kudos
Message 8 of 18
(4,590 Views)

Oh okay, I misunderstood you.

Try this. 

Cory K
0 Kudos
Message 9 of 18
(4,572 Views)
Thats in 8.6 haha sorry could you save it in 8.2?
0 Kudos
Message 10 of 18
(4,567 Views)