Real-Time Measurement and Control

cancel
Showing results for 
Search instead for 
Did you mean: 

myRIO C development PWM on Connector C

I am using the latest C Development tools for the myRIO 1900 with the default FPGA personality. I'm able to write a basic PWM-generating script based on the myRIO PWM example, and it works for Connector A. However, it does throw the following errors

```

ERROR: -52010
Could not read from the PWM configure registers!ERROR: -52010
Could not write to the PWM clock select register!ERROR: -52010
Could not write to the PWM maximum register!ERROR: -52010
Could not write to the PWM maximum register!ERROR: -52010
Could not read from the register for the PWM!ERROR: -52010

```

Despite the errors, it does produce the proper PWM signal on Connector A. However, if I change to Connector C (changing the register and configuration struct), I get the same errors but no PWM output. I have attached my Eclipse project, archived. The program's pretty short. I did write an auxiliary `pwm_set` function that seems to work fine (I checked without the function and got the same result).

 

Thanks for any help!

0 Kudos
Message 1 of 2
(692 Views)

I would still appreciate any input on this issue!

0 Kudos
Message 2 of 2
(622 Views)