01-12-2019 02:47 PM
Hey guys, when I deploy the project to the roboRIO and attempt to teleoperate it, the driver station keeps kicking out these errors:
ERROR -44035 FRC: The PWM channel index is invalid. WPI_PWMChannelCache.vi
ERROR -63195 Read/Write Control in FPGA_DIOWritePWMValue.vi->WPI_DigitalModuleSetPWM.vi->WPI_MotorControlSetOutput.vi->Teleop.vi->Robot Main.viThe handle for device communication is invalid or has been closed. Restart the application.
This is my first year programming on labVIEW and I would really appreciate some help. Thank you
01-12-2019 04:38 PM
Hello theschmolo3,
I believe that means that one or more PWM motors are not being found by your code. I would recommend checking the Begin.vi in your code and making sure you have written the correct IDs:
I would then make sure the name is the same when you set and get your references in Teleop.vi:
I hope that helps!
01-13-2019 10:49 AM
Hey Oscar, I tried your solution, and it still puts out the errors. I made sure they were talon SR speed controllers also. Any other reason?
01-13-2019 01:54 PM
theschmolo3,
From the errors you send, I presume it has something to do with the reference you are using to connect to your motors, but I could be wrong:
ERROR -44035 FRC: The PWM channel index is invalid. WPI_PWMChannelCache.vi
ERROR -63195 Read/Write Control in FPGA_DIOWritePWMValue.vi->WPI_DigitalModuleSetPWM.vi->WPI_MotorControlSetOutput.vi->Teleop.vi->Robot Main.vi The handle for device communication is invalid or has been closed. Restart the application.
Can you share us your Begin.vi and Teleop.vi (either as screenshots/snippets or attaching them), as well as the PWM channels in the roboRIO to which you are connecting your Talon SRs? It would be useful to see the block diagram to have a better understanding on what is happening in the code.
Thanks,
01-13-2019 06:57 PM