How to get PWM on digital outputs pins of NI-6052E DAQ card?
조회 수: 17 (최근 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
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.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Switches and Breakers에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!