LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Odd myRIO PWM problem

Hi. I have an odd problem with my PWM duty cycle. At 1 = 100% duty cycle I have no power and full power at 0 = 0% duty cycle. How can that be???

 

Kind regards

Lasse

0 Kudos
Message 1 of 9
(2,975 Views)

Hi Lasse,

 

I guess the problem is within your VI. You just need to find and remove it!

 

Btw. which answer do you expect when providing so little information?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 9
(2,964 Views)

I've already tried the basic PWM express VI. Same thing??? Also on another myRIO. It makes no sense to me??

0 Kudos
Message 3 of 9
(2,947 Views)

Hi Thorfinn,

 

unfortunately I'm stuck at LV2017 right now, so cannot open your VI.

 

At 1 = 100% duty cycle I have no power and full power at 0 = 0% duty cycle.

It makes no sense to me??

Well, it makes sense to me - for a certain kind of DAQ hardware!

 

I'm using PWM generating devices in my testbenches (like this). Those PWM modules use "low-side" switches ("open-collector" outputs, switching to COMMON/GND). Because of that I need to use pull-up resistors and handle an inversion of the output signal: 100%PWM signal leads to 100% switched to GND level leads to 0% power at the connected device…

 

So your observation can make sense - it all depends on the used hardware!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 4 of 9
(2,942 Views)

Hmmm... Makes sense if that's the case. But I'm using the Digilent motor adaptor for NI myRIO and a LEGO DC motor which actually states that the A4973 driver used has been configured for a 1.5A max current at 100% duty cycle. Then again I must be missing something here because your explanation makes perfect sense. Thanks!

 

0 Kudos
Message 5 of 9
(2,935 Views)

What does the signal look like at 25% and 75%.  Does .25 look like 75% power, and .75 look like 25% power?

0 Kudos
Message 6 of 9
(2,931 Views)

Sorry for the late reply.

 

Yes .25 gives a 75% high signal...

0 Kudos
Message 7 of 9
(2,921 Views)

Hi Thorfinn,

 

some DAQmx devices also allow for logical negation of digital output signals - maybe you incidently enabled a similar feature on your myRIO?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 8 of 9
(2,919 Views)

I can't find that option anywhere and I'v also tried on two separate myRIOs. The funny thing is that I didn't had the same problem with Labview 2016 a couple of years ago... For now I'll just negate and add one to correct it. But thanks Smiley Happy  

0 Kudos
Message 9 of 9
(2,916 Views)