FIRST Robotics Competition Discussions

cancel
Showing results for 
Search instead for 
Did you mean: 

Dashboard not seeing Analog Input.

I have wired a pot to the cRio in Slot 1, AI2.  I ran through the Analog Input Example vi and it worked great.

I changed the controls to constants, added AIDeviceRef to the periodic tasks, added Open AI channel in Begin.vi and added the code (minus displays) to the PeriodicTasks vi. (I created two Global Variables for the output).

Should I be able to see the Dashboard values change on the Analog Inputs, or do I need to do some data manipulation for them to display.

I hooked up the gyro according to the guides, and it shows the data correctly.

A second question I have is, how do I handle multiple Analog Input channels (multiple pots).  I am thinking that I have to add Multiple AIDeviceRef to the PeriodicTasks.ctl and select the one that I want to use, as opposed to coding an array of AIDeviceRef's.

Any help would be appreciated.

0 Kudos
Message 1 of 3
(6,476 Views)

Do you have the last part of the IP address of your computer set to .6? This is required for the dashboard. Do you have LabVIEW update #2? It contains many updates to the dashboard, which you will want before you start doing too much with the Dashboard.

You do not need to do any manipulation to get the values to show up on the dashboard (other then verifying that the dashboard enables are set to true, which they should be by default).

You can either add mutiple device references to the cluster, or do an array. Personally, I think it's cleaner to add each one seperately, since you can give them names and don't have to reference the array every time, but either would work.

0 Kudos
Message 2 of 3
(2,820 Views)

I have update 2 loaded.

I can see information on Analog 1 for the gyro (raw data), just not for Analog 2 or on the second bank Analog 1.  I have probed the value being generated and it is loading into my global variable fine, just not showing on the dashboard.

I like your idea of loading each reference seperately, it will make the code easier to maintain.

Thanks... M

0 Kudos
Message 3 of 3
(2,820 Views)