From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Using myRIO Analog Pins as Digital Out Pins?

Hi Community,
I was just wondering, can we use the analog pins of myRIO as digital output pins? I need 48 independent PWMs for an application and there are 40 digital pins of myRIO. I'm short of 8 digital pins. So, I was thinking that is it possible to use analog pins of myRIO as digital output pins? I would really appreciate any kind of help. Thanks in anticipation.

Ahmad

0 Kudos
Message 1 of 2
(2,419 Views)

Probably, you could...

 

It will all be in the details. Whatever you wire the digital output to, won't be able to tell the difference. A voltage is a voltage, in theory...

 

However, there are probably practical differences. My biggest concerns would be IO speed, and current. The output needs to be able to provide enough current to drive the hardware. I'd say (I'm no HW expert,) analog outputs can't supply as much current as digital outputs. You should at least check it, or the outputs will get fried.

 

Other solutions will be initially more difficult, but might be better from a technical PoV. Maybe I2C PWM chips would help? That would give you a lot of PWM channels.

Message 2 of 2
(2,377 Views)