How to get PWM on digital outputs pins of NI-6052E DAQ card?
14 views (last 30 days)
Show older comments
I am using Simulink for realtime control of radial electromagnets. i need to control 4-poles of electromagnet using NI-6052E daq card with BNC-2090 connection box using 4 pwm signals. the problem is the daq card has two frequency counters only that could be used to generate only two pwm signals. hence i need to use the digital pins of daq card to generate the other two PWMs. please guide me through how may i setup my problem that my PID output may be converted to pwm through digital pins of daq card. thanks
0 Comments
Answers (1)
Walter Roberson
ungefär 20 timmar ago
Edited: Walter Roberson
ungefär 20 timmar ago
Use a single Digital Output (Single Scan) block https://www.mathworks.com/help/daq/digitaloutputsinglesample.html
Configure it for four input ports. Have each port be a pre-calculated PWM https://www.mathworks.com/help/simulink/slref/pwm.html
This assumes that your magnets can be successfully controlled by a series of narrow (digital) pulses that overall mimic being on for a longer time. If that is not the case, if your magnets need the digital signal to be on constantly for the duty period, then you cannot achieve your goals with that particular equipment.
0 Comments
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!