From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I get arbitrary trapezoidal waveform?

I am engaging on a project,need a trapezoidal waveform as standard signal,but there is no this kind of function or example in labview, can any one  help me?
 
thanks in advance!
 
 
Best  regards.
Simon
0 Kudos
Message 1 of 9
(5,768 Views)

Hi,

I Had done it once by using ramps.

For my application, i first plotted/generated a rising ramp, next kept a constant output voltage = high of rising ramp, then after an interval, i generated a falling ramp from that high to a specified low.

can u specify the exact shape of the trapezoid you want to generate? we can suggest better

Regards

Dev

 

 

 

 

 

 

0 Kudos
Message 2 of 9
(5,766 Views)
HI Dev,
Thanks for your kindly attention!
   Please refer to the attached picture which is standard output pluses train from original spedification of encoder sensor, we have to compare it with actual output signal  which is from our PCBA with the encoder sensor, check output signals difference between them. So  I want to make a standard trapezoidal waveform according to the origianl specification of encoder sensor.
 
Best regards,
Simon 
0 Kudos
Message 3 of 9
(5,759 Views)
Yes my requirement was a similiar waveform
 
I have a program which will generate a similiar waveform on an Analog output channel of a DAQ card.
 
Before i send it, can u tell Which hardware are you using??
 
 

Message Edited by devchander on 02-13-2006 10:23 PM

0 Kudos
Message 4 of 9
(5,755 Views)
Hi Dev,
 
The hareware is NI PCI 6132  DAQ card,
could you please show me your program, It will be great help for me.
 
Thanks in advance.
 
Simon
0 Kudos
Message 5 of 9
(5,744 Views)

Hi Simon,

This particular S series card that you are using, does not have analog output channels.

Like i said  before, I used an analog Output channel to generate Trapezoid wave

I am afraid, you cannot generate a Trapezoid wave using any of the DIO's or counters/timers availible on this card

Sorry could not be of more help

regards

Dev

 

 

 

0 Kudos
Message 6 of 9
(5,728 Views)
Hi Devchander, I'm also trying to generate a trapezoidal waveform, and I'm using an NI 6009 card, which has two analog outputs. Could I possibly take a look at your code?

Thanks a bunch
0 Kudos
Message 7 of 9
(5,692 Views)

Hi,

The original VI was for traditional DAQ.

I have modified the VI to work for DAQmx

but right now, i do not have a suitable DAQ card to test it Smiley Sad

So, run it and let me know how it works

Regards

Dev

Message 8 of 9
(5,677 Views)

devchander,

  Thanks for this bit of code, saved me a some time. Greatly appreciated.

-Wil

0 Kudos
Message 9 of 9
(4,858 Views)