How to get PWM on digital outputs pins of NI-6052E DAQ card?

17 ビュー (過去 30 日間)
Hassan Saleem
Hassan Saleem 2024 年 11 月 25 日 7:44
編集済み: Walter Roberson 2024 年 11 月 25 日 9:53
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

回答 (1 件)

Walter Roberson
Walter Roberson 2024 年 11 月 25 日 9:49
編集済み: Walter Roberson 2024 年 11 月 25 日 9:53
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.

カテゴリ

Help Center および File ExchangeSwitches and Breakers についてさらに検索

製品


リリース

R2017b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by