Recently, we have tried to program our gyro but LabVIEW seems to find an error that is setting us back. We want to know if we could get some help with this since this is a real headache pls. GyroOpen seems to be the problem but everything is wired up correctly.
Let me clarify what one of our students is trying to explain so everyone has more detail on what we are seeing.The project is setup as a RoboRio project. So far this is the only WPI library we can not get to work. The Gyro Open.vi appears to not be upgraded for some reason. Our motors, joystick, encoders, digital I/O, Solenoids all compiled correctly. Motors and joystick hardware have been tested on the RoboRio with this code minus the Gyro Open.vi As of right now it is not a Gyro hardware issue because the code will not compile with the Gyro Open.vi present in the code.
We are wondering if any other teams are having the same issue?
I also found an anomoly using the LabVIEW vi. The analog gyro open command works fine on ai0 and ai1 but there are no selection inputs for ai2 and 3. Also there is only one controller selectable which does not include the mxp connector. Looks like we need another software upgrade soon from ni.
Greg, there are 4 ain connectors on the front roborio and 4 on the mxp. Surely, ni programmed the FPGA to handle all 8 AIN lines or NI would have said something. I would like to use more than 2 AIN lines.
There are eight AI, but how many accumulators are there? And are they multiplexed to allow for any AI to feed into them?
I believe the raw AI and other analog items like pots let you use the four built-in and four MXP channels.
I couldn’t find definitive documentation, so I’m interpreting someone’s code for intent. I can verify a bit later today, and if I’m wrong, I’ll file the bug report and let you know how to work around the bug in the wrapper. But from what I see, it looks like the wrapper is guiding you to pick from the only channels that make sense due to the underlying implementation.