Programming a limelight with labview

Hey guys,
I’m attempting to program our robot this year with a limelight 1 for vision tracking. I have a program made right now in my periodic tasks but it’s not doing anything. here is the code I have right now


Is this built correctly?

I think the first step I would suggest is checking the cluster that is coming out with the values that are being read from the Network Tables Tags. Are they the same numbers you see in the Limelight’s Web Interface?

2019-01-24%2018_26_27-Clipboard

Make sure your team number is set in the settings page of your Limelight! Also make sure it matches the team numbers set in your driverstation, dashboard, RIO, and radio.

So I set it up like you showed if I run the periodic tasks like that in LabVIEW is it suppose to show the values in the program if it is it’s not for me.


Or do I need to have that section of code somewhere else in my project?

Yes it is and I also set a static ip for the limelight as well.

So, we know two things:

  1. The code is not receiving anything from the network tables, so I presume that those tags are non-existent or set to zero in them.
  2. That the Limelight seems to have your team number and static IP.

Now, what can you check:

  1. How are you connecting to both the roboRIO and the Limelight? Is it through the Radio by WiFi? By USB to the roboRIO?
  2. Can you open the Limelight’s web dashboard and see the image and settings there, at the same time you’re connected to your robot?
  3. How about in your Dashboard? Do you see the Limelight’s network tables in the Variables tab of the LabVIEW Dashboard?
  1. I’m connecting to the robot through the wifi and the roborio and the limelight is connected to the
    radio.
  2. I can see the dashboard by connecting to the radio via wifi and the robot at the same time.
  3. Yes, I can see it here’s a screenshot.

Seems that the variables should be there to read them correctly… I wonder, are you running Robot Main.vi to test, or just Periodic Tasks.vi? If is the latter, I recommend trying with Robot Main.vi to make sure the Network tables server is running…

I think your right @oscarfonloz based on the symbol of the run arrow.

I was running just the Periodic Tasks.vi
We left for the day so I’ll try running the robot main.vi on the next day we meet up which is on Saturday.

So I was able to run from the Robot main and I am getting values now.
How would I pull the values now to control the robot?

I’m sure there’s lots of ways that could be done. Try searching CD for LabVIEW code releases from 2017. The vision challenge that year was quite similar to this year’s.

I got it to work now which is awesome!!!
Thank you guys so much for the help I greatly appreciate it!

2 Likes