Why don't you try out this example. It is based off of the shipping example "Cont Gen Voltage Wfm-Int Clk-Non Regeneration." It continuously generates an analog waveform without regenration. That means that it requests new data from LabVIEW instead of recycling the onboard buffer. You can change the duty cycle of the output on the fly.
I am also interested in your PWM VI. I am using a 6025E DAQ card. I have attached a sheet regarding the 50 PINS. Does the output comes out in ANALOG form? If so which pin is suitable? Do I need to connect to the ground pin?
I would not recommend using a buffered output for your PWM output. This will introduce a delay in your control loop and cause you more headaches than you care to think about. Use one of your general purpose counter-timers as a PWM output. The duty cycle can be changed on the fly without restarting the pulse train. Your delay will be one pulse cycle, at most. Check the NI-DAQ examples for how to do this. If the TTL level is not sufficient, buffer it externally.
This account is no longer active. Contact ShadesOfGray for current posts and information.
Are you recommending me to use a digital output terminal? I have decided to use the digital output rather than the analog output. By the way can you give me a very basic simple PWM.VI? I cannot seem to locate a simple PWM.VI that I can easily understand. I intend to use the PWM.VI to control an external circuit intended to supply a higher power to my dc motor. Obviously the digital output nor the analog output would be sufficient to power the dc motor.
I just searched ni.com for "PWM". One of the hits led to this example.
CAUTION! New LabVIEW adopters -- it's too late for me, but you *can* save yourself. The new subscription policy for LabVIEW puts NI's hand in your wallet for the rest of your working life. Are you sure you're *that* dedicated to LabVIEW? (Summary of my reasons in this post, part of a voluminous thread of mostly complaints starting here).
I need to generate a digital PWM to control an external voltage source. I intend to control the external voltage from 0 to 20 volts with 0 to 2 amps of current. The IC i intend to use is TIP 41. Is that possible?
Hello it looks like you have some more experience than I do. I guess my problem is similar to yours hence my question: How can I synchronize two output pulstrains that are generated on two counter outputs? I can synchronize them at the beginning but the frequency and duty circle has to be variable. It is controlled by a control loop. When I change the frequency of the two output signals they are not synchronized anymore. Thanks if you have any idea. Best regards