Go to Post If Amanda is 'old', I am beginning to feel like a fossil.... - Chris Fultz [more]
Home
Go Back   Chief Delphi > Technical > Programming > NI LabVIEW
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 09-05-2013, 08:23
tdbroun tdbroun is offline
Registered User
AKA: Tim Brounscheidel
FRC #1507 (Warlocks)
Team Role: Mentor
 
Join Date: May 2013
Rookie Year: 2013
Location: Lockport NY
Posts: 16
tdbroun is an unknown quantity at this point
Smart dashboard writing values to the robot

Our team is trying to use the smart dashboard to process vision on the laptop and send motor values to the robot to aim at the target. We have the vision processing working. We lock on to targets and can set a motor value in the dashboard project vi.
We use the SD write dbl vi to send the value to the robot, and our trouble begins. When we run the code, we get an error in "handle dirty elements.vi" on the client/server selector, all the way to the left of the vi. The isclient boolean seems to be the cause.
If we pop open the panel for "handle dirty elements.vi" and set it to true, we can run and pass data to and from the robot from the smart dashboard.
Is there some initialization that we need to do to get this to work without intervention? What vi calls handle dirty elements?
Is there a smart dashboard white paper that might explain this?
Reply With Quote
  #2   Spotlight this post!  
Unread 09-05-2013, 12:27
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,579
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Re: Smart dashboard writing values to the robot

I've seen something similar when there was a variable of one type already in the table, and I tried to write a variable of the same name but with a different type.

You might also want to try the Network Tables patch. https://decibel.ni.com/content/docs/DOC-29228
Reply With Quote
  #3   Spotlight this post!  
Unread 09-05-2013, 20:52
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,752
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: Smart dashboard writing values to the robot

As you noticed, the original release of the LV network tables could create variables believing it was the server and then it suddenly becomes the client. This race condition would cause issues with a few of the variables. As mentioned, the patch was released to address this and a few other issues.

Greg McKaskle
Reply With Quote
  #4   Spotlight this post!  
Unread 09-05-2013, 22:01
Doc Wu's Avatar
Doc Wu Doc Wu is offline
Registered User
AKA: Al Gritzmacher
FRC #1507 (Warlocks)
Team Role: Mentor
 
Join Date: Jan 2004
Rookie Year: 2003
Location: Lockport NY
Posts: 207
Doc Wu has a brilliant futureDoc Wu has a brilliant futureDoc Wu has a brilliant futureDoc Wu has a brilliant futureDoc Wu has a brilliant futureDoc Wu has a brilliant futureDoc Wu has a brilliant futureDoc Wu has a brilliant futureDoc Wu has a brilliant futureDoc Wu has a brilliant futureDoc Wu has a brilliant future
Re: Smart dashboard writing values to the robot

I am another Mentor on the same team trying to resolve this mystery.

We will apply the patch suggested next time we work on the robot.

One thing that has puzzled us is the lack of information provided about why the program wouldn't run. Rather than the usual "broken run arrow" and the errors dialog that normally guides you to the problem, in this case an unknown VI, Handle Dirty Elements.vi always popped open with a VI icon blinking in negative. None of us really knows what that means. No information was given that might steer us to where the problem was and since Handle Dirty Elements.vi is something provided in the libraries, we weren't familiar with it's function or even what other VI used it.


IsClient.jpg.html

We also wondered what was going on in this same VI where it also showed the flashing negative box on a invert VI that is outlined in red. It is unterminated and appears to be doing nothing. The true case is empty.

not-nothing.jpg

I hope the patch fixes all this, but for our curiosity and future reference, I'd like to know these things.
__________________
-= Mentor Lockport Warlocks -=- Team 1507 =-
Amateur Radio Callsign: AE2T

2016 Robot Inspector - Fingerlakes, Pittsburgh
2015 Robot Inspector - Pittsburgh, Champs. Judge Observer - Champs
2014 Robot Inspector - Tech Valley, Fingerlakes, Buckeye, Championship
2013 Robot Inspector - Fingerlakes, Buckeye, Championship
2012 Robot Inspector - Fingerlakes, Buckeye, Championship - Website Evaluator - Fingerlakes, Buckeye, Championship
2011 Robot Inspector - Fingerlakes 2011 Safety Advisor - Fingerlakes

Reply With Quote
  #5   Spotlight this post!  
Unread 10-05-2013, 08:04
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,752
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: Smart dashboard writing values to the robot

What happened there was that I left a breakpoint in the code. The red outlined node is just the trigger code for when the Validate operation declares that the table is no longer good. This was left in during the beta program and I don't recall it ever being reported. It should have been removed or replaced with a better error code or dialog box.

Once the VI is at a breakpoint, the editor blinks the next node that will execute, and that happens to be the ?: operation that was blinking.

Greg McKaskle
Reply With Quote
  #6   Spotlight this post!  
Unread 10-05-2013, 10:14
Doc Wu's Avatar
Doc Wu Doc Wu is offline
Registered User
AKA: Al Gritzmacher
FRC #1507 (Warlocks)
Team Role: Mentor
 
Join Date: Jan 2004
Rookie Year: 2003
Location: Lockport NY
Posts: 207
Doc Wu has a brilliant futureDoc Wu has a brilliant futureDoc Wu has a brilliant futureDoc Wu has a brilliant futureDoc Wu has a brilliant futureDoc Wu has a brilliant futureDoc Wu has a brilliant futureDoc Wu has a brilliant futureDoc Wu has a brilliant futureDoc Wu has a brilliant futureDoc Wu has a brilliant future
Re: Smart dashboard writing values to the robot

Quote:
Originally Posted by Greg McKaskle View Post
What happened there was that I left a breakpoint in the code. The red outlined node is just the trigger code for when the Validate operation declares that the table is no longer good. This was left in during the beta program and I don't recall it ever being reported. It should have been removed or replaced with a better error code or dialog box.

Once the VI is at a breakpoint, the editor blinks the next node that will execute, and that happens to be the ?: operation that was blinking.

Greg McKaskle
Thanks Greg, that makes sense now. It never occurred to us that there was a breakpoint running and we didn't recognize it. But it fits with what happened when we continued to run the code and it began to work.

I notice the trigger code is in a disable structure in the patched version.

Thanks again for your help. We're crossing our fingers for next week when we can get back to it.

- Al
__________________
-= Mentor Lockport Warlocks -=- Team 1507 =-
Amateur Radio Callsign: AE2T

2016 Robot Inspector - Fingerlakes, Pittsburgh
2015 Robot Inspector - Pittsburgh, Champs. Judge Observer - Champs
2014 Robot Inspector - Tech Valley, Fingerlakes, Buckeye, Championship
2013 Robot Inspector - Fingerlakes, Buckeye, Championship
2012 Robot Inspector - Fingerlakes, Buckeye, Championship - Website Evaluator - Fingerlakes, Buckeye, Championship
2011 Robot Inspector - Fingerlakes 2011 Safety Advisor - Fingerlakes

Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 20:53.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi