04-17-2013 09:50 PM
I have successfully downloaded and executed the sample program shown here:
http://www.ni.com/white-paper/2991/en
and see the pulse train generate in my oscilloscope. When measuring the value of a pulse high, the oscilloscope says 5V.
How do I change it to 3?
Looking at the DAQ Create Channel node I don't see any inputs for amplitude, only frequency and duty cycle.
Where is the amplitude of 5volts being set and how can I change it to 3V?
Solved! Go to Solution.
04-18-2013 09:31 AM
Counter outputs are typically TTL level (~0-5V) and cannot be changed programatically.
You could use a resistive divider to scale it down to 3V.
-AK2DM
04-18-2013 06:18 PM
Are you suggesting I feed the counter output into a breadboard and then use two resistors in a voltage divider circuit to get my 3V?
Also, is there any other way to do this besides using counters? Is it possible to use Analog Output? If so, is there an example?
04-19-2013 10:05 AM - edited 04-19-2013 10:06 AM
I modified one of Analog Output the shipping examples, adding a duty cycle and offset control.
-AK2DM (applies well here!)
04-19-2013 10:08 AM - edited 04-19-2013 10:10 AM
Did not attach, trying again.
Cant attach 😞
Search examples for: Cont Gen Voltage Wfm-Int Clk-Non Regeneration.vi and add controls for duty cycle and offset and adjust as needed to get your desired waveform.
-AK2DM
04-19-2013 12:16 PM
Hi AK2DM -
Are you talking about this:
https://decibel.ni.com/content/docs/DOC-3545
I will certainly try this out when I get to my lab and make another posting.
This may be a stupid question, but does this function get generated in hardware or software? I prefer hardware because it's supposed to be more exact.
04-19-2013 02:14 PM
Very similar. On the icons above the step 5 text box, you have to right click on the appropriate terminals to add controls for Offset and Duty Cycle.
Timing/generation is done via hardware in this case.
-AK2DM
04-19-2013 02:16 PM
Still can't attach, egh, probably my outdated browser, never had this issue before.
-AK2DM