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

17 visualizaciones (últimos 30 días)
Hassan Saleem
Hassan Saleem el 25 de Nov. de 2024 a las 7:44
Editada: Walter Roberson el 25 de Nov. de 2024 a las 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

Respuestas (1)

Walter Roberson
Walter Roberson el 25 de Nov. de 2024 a las 9:49
Editada: Walter Roberson el 25 de Nov. de 2024 a las 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.

Etiquetas

Productos


Versión

R2017b

Community Treasure Hunt

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

Start Hunting!

Translated by