Announcement

Collapse
No announcement yet.

LabVIEW Dashboard Autonomous Array problems

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

  • ace4bert
    replied
    Re: LabVIEW Dashboard Autonomous Array problems

    We are not doing any persistent commands.

    The write to array does not work for us on the default dashboard. The same writes do work when the simple dashboard is run with the same program.

    Thank you again for your help.
    Bob Koehl
    MEZ Mentor

    Leave a comment:


  • Kevin O'Connor
    replied
    Re: LabVIEW Dashboard Autonomous Array problems

    Originally posted by ace4bert View Post
    Thank you for the advice. Does that mean the items in the dashboard are read into the roboRIO in addition to being written to the dashboard when begin.vi executes? Certainly doesn't sound like what the instructions seem to intend to do.
    Yes, both Dashboards (LabVIEW and SmartDashboard) across all 3 languages operate using Network Tables with the roboRIO as the server which means that all of the items displayed in the dashboard are also stored on the robot. In general, this isn't an issue as things displayed on the dashboard usually change frequently so you don't often run into issues with the Dashboard syncing it's values back to the roboRIO. In cases where you are changing items that don't change often (like your auto list) the best practice is to close the Dashboard, load the new code, then open the Dashboard.

    If you mean "read into the roboRIO" in a persistent way, then no. The values are not stored in the roboRIO across code restarts or power cycles (unless you set the persistence flag on the SD or Network Tables call).

    However in the process of trying various things I noticed that the simple dashboard would accept relabeling of the items in the Basic tab but the newer dashboard with 2 camera picks would not, even after the reimage. This is not near as frustrating as the initial problem.
    Are you saying that writing to the arrays (such as DB/Button Names) does not change the names in the Dashboard?
    Finally:
    Is CSA training getting ready to start? I've checked the Schoology website and nothing is posted yet.
    Thank you for your help.
    Bob Koehl
    CSA training material will be posted no later than Stop Build Day. No material is currently posted.

    Leave a comment:


  • ace4bert
    replied
    Re: LabVIEW Dashboard Autonomous Array problems

    Thank you for the advice. Does that mean the items in the dashboard are read into the roboRIO in addition to being written to the dashboard when begin.vi executes? Certainly doesn't sound like what the instructions seem to intend to do.
    After trying all of that with no success, I reimaged the roboRIO and the problem disappeared.
    New item:
    However in the process of trying various things I noticed that the simple dashboard would accept relabeling of the items in the Basic tab but the newer dashboard with 2 camera picks would not, even after the reimage. This is not near as frustrating as the initial problem.
    Finally:
    Is CSA training getting ready to start? I've checked the Schoology website and nothing is posted yet.
    Thank you for your help.
    Bob Koehl

    Leave a comment:


  • Kevin O'Connor
    replied
    Re: LabVIEW Dashboard Autonomous Array problems

    Hi Bob,

    I don't believe the LabVIEW dashboard does anything to save this information between runs. You can verify this by opening up the Dashboard with no robot connected and make sure the list is empty.

    What you may have been seeing is an artifact of the bi-directional syncing nature of Network Tables (the protocol underlying the Dashboard). Example:

    1. You run some Robot code for a while that puts an array in Network Tables containing "String1, String2, String3". The Dashboard is connected and shows this array.
    2. Now you change your Robot code to put "String4, String5, String6" in the array.
    3. This code starts up on the robot and puts those values into the table.
    4. The Dashboard connects and syncs it's values ("String1...") to the robot.
    5. The table now has the "old" values in it.

    Best practice when you are trying to remove old keys or values from Network Tables is to close the Dashboard, load the new code, then start the Dashboard.

    Leave a comment:


  • ace4bert
    started a topic LabVIEW Dashboard Autonomous Array problems

    LabVIEW Dashboard Autonomous Array problems

    We used the Dashboard to select Autonomous programs last season. For some reason, last year's entries can not be overwritten by this years entries set up in Begin.vi.
    What do we need to do to get rid of last year's stuff?
    Bob Koehl
    Michigan Engineering Zone
    MEZ Mentor
Working...
X