LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Applying Pulse (Voltage)

Hi,

 

I'm pretty new to Labview, and I have been struggling to get it to work.

I was wondering if could get any help.

 

So I want to set up pulse to do as the attached graph

graph.JPG

Just simply apply a voltage for sometime, then turn off, then apply voltage again, and repeat

 

Any help will be appreciated! 

0 Kudos
Message 1 of 6
(4,410 Views)
What hardware are you using?
Paul Falkenstein
Coleman Technologies Inc.
CLA, CPI, AIA-Vision
Labview 4.0- 2013, RT, Vision, FPGA
0 Kudos
Message 2 of 6
(4,386 Views)

I'm using a hardware that's labeled "PCI-4461"

but I actually got the computer as the whole set, so I am not sure.

 

I actually was thinking, if it is easier, put square wave voltage and offset it so it goes from "0 to 2" rather than "-1 to 1"

If there is any good examples or any other possible solutions, I would appreciate it a lot.

 

Thank you! 

0 Kudos
Message 3 of 6
(4,358 Views)

The PCI-4461 has two analog output lines.  Use one of them.  Find examples of DAQmx analog output (Help menu - Find Examples).  You can use the square wave generator function found in Waveform - Analog Waveform - Generation - Square Waveform.vi.  This will generate a waveform data type which you can feed into the DAQmx write function.  To create a square wave from 0 to 2v, set the amplitude to 1 and the offset to 1.  Amplitude is not peak to peak, it is really the positive peak value (I wish NI would change this to be peak to peak).  By setting the offset to 1, the signal will go from 1 to 2, then to 0, then to 2, and so on.

 

Here is some partial code showing the square wave function and the analog write.

 

AO.png

 

- tbob

Inventor of the WORM Global
0 Kudos
Message 4 of 6
(4,345 Views)

Oh I see...

Thank you very much!

I will attempt to integrate this.

 

Thank you!

0 Kudos
Message 5 of 6
(4,327 Views)

Hi Paaul,

 

The PCI-4461 is a part of our DSA (dynamic signal acquisition) family most often used for sound and vibration applications.  DSA products use delta-sigma ADCs which utilize oversampling and averaging to obtain signal characteristics important in these applications but may have less absolute accuracy  when compared to a multifunction DAQ device.  There are also minimum data rates associated with DSA to account for the oversampling.  Typically the AO on a DSA board is used to generate a stimulus such as for a frequency response test.  Can you provide more information about your application to ensure all of your needs are addressed?  

Regards,


h_baker
National Instruments
Applications Engineer
0 Kudos
Message 6 of 6
(4,295 Views)