How to get PWM on digital outputs pins of NI-6052E DAQ card?
13 次查看(过去 30 天)
显示 更早的评论
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 个评论
回答(1 个)
Walter Roberson
about 18 hours 前
编辑:Walter Roberson
about 18 hours 前
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 个评论
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!