Announcement

Collapse
No announcement yet.

Dashboard / C++ - DO THEY MIX?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Dashboard / C++ - DO THEY MIX?

    Our team is using C++ to run our robot. At this time, we will not be using LabView for our running of the robot as we are not in positon to do so.

    However, our controls folks would like to use the LabView Dashboard example code to see various outputs of the cRIO modules.

    I vaguely remember that if we are doing C++ programming, that we downloaded 'something' to the cRIO. If we were to use LabView, a differnet 'something' was to be downloaded to the cRIO. I'll update this thread once I clear up that ambiguity.

    When we use the dashboard, though our computer is 10.x.y.6, we are not seeing any outputs/inputs occuring on the dashboard

    QUESTION: Is there some magic to getting the dashboard running where we can see results of the digital or analog modules values changing? Is it possible that the cRIO has to be set to the 'LabView' way of things?

    -Ted, 1111 mentor

  • #2
    Re: Dashboard / C++ - DO THEY MIX?

    Clearing up my ambiguity from before - In the control system manuals - section 5.1.2 UPDATE FIRMWARE ON CRIO, there is a choice of "LabView" or "Wind River Workbench (C/C++)" for development environment.

    QUESTION (refined): In order to have the Dashboard sample working, does the cRIO development environment need to be set to "LabView"?

    It would make sense to have it so - but would like confirmation.

    -Ted Mentor for 1111

    Comment


    • #3
      Re: Dashboard / C++ - DO THEY MIX?

      You only need to tell the cRIO Image tool "LabVIEW" if you'll be running LabVIEW applications on the cRIO. The Dashboard project runs on your PC.

      Comment


      • #4
        Re: Dashboard / C++ - DO THEY MIX?

        The Dashboard doesn't care about whether the cRIO is programmed with C++ or LabVIEW. Both development environments are configured to provide the same bidirectional data flow over Ethernet. The Dashboard should work just fine either way.

        Russ

        Comment


        • #5
          Re: Dashboard / C++ - DO THEY MIX?

          Originally posted by Ted Dressel View Post
          QUESTION: Is there some magic to getting the dashboard running where we can see results of the digital or analog modules values changing? Is it possible that the cRIO has to be set to the 'LabView' way of things?
          The only magic thing you have to do is add code to your C++ application to actually send the data to the dashboard. Have a look at the "DashboardDataExample" to show you how to send data to the default LabVIEW Dashboard application.

          Comment


          • #6
            Re: Dashboard / C++ - DO THEY MIX?

            Originally posted by Joe Hershberger View Post
            The only magic thing you have to do is add code to your C++ application to actually send the data to the dashboard. Have a look at the "DashboardDataExample" to show you how to send data to the default LabVIEW Dashboard application.
            could you tell us how to look up the "DashboardDataExample"?

            team 1765

            Comment


            • #7
              Re: Dashboard / C++ - DO THEY MIX?

              In Workbench, go to File >> New >> Example >> VxWorks Downloadable Kernel Module Sample Project >> FRC Dashboard Data Example.

              Please read the section "Creating a robot project" on page 18 of the C:\WindRiver\docs\extensions\FRC\C Programming Guide for FRC.pdf document.

              Comment

              Working...
              X