Go to Post Mind you... if your ball kicker has as much energy stored up as a trackball launcher, you ought to be able to kick balls up into the stands. - dtengineering [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 01-02-2014, 16:14
William Kunkel William Kunkel is offline
Programming Lead
AKA: Kunkel
FRC #0422 (Mech Tech Dragons)
Team Role: Programmer
 
Join Date: Jan 2013
Rookie Year: 2011
Location: Richmond, VA
Posts: 94
William Kunkel is an unknown quantity at this point
Error in NT Client.vi

I've written some vision code that will run on the driver station computer and communicate with the robot via Network Tables. Whenever I start the VI, I get this error:

Quote:
Error 1 occurred at Wait on Notification in NT Client.vi->target-detection.vi

Possible reason(s):

LabVIEW: An input parameter is invalid. For example if the input is a path, the path might contain a character not allowed by the OS such as ? or @.
If I select "Continue", the program behaves as expected and communication works fine, but I'd like to know if I can stop this error from occurring. The only inputs I've given to NT Client.vi are Server IP Address (10.4.22.2), Automatic Restart (T), and Update Time (20). The error seems to be related to the "Cancel Ref" input, but I don't know what that does, and I can't find any documentation.
Reply With Quote
  #2   Spotlight this post!  
Unread 02-02-2014, 10:09
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: Error in NT Client.vi

Hmm. It looks like this is caused by the reference to the cancel notifier. The wires for error I/O are unwired.

If you open the Bind icon, you'll see that this is given a notifier which is fired whenever we start or stop the playback feature. If you ignore the error, it will not be cancelable, and that should be fine.

Greg McKaskle
Reply With Quote
  #3   Spotlight this post!  
Unread 02-02-2014, 12:45
William Kunkel William Kunkel is offline
Programming Lead
AKA: Kunkel
FRC #0422 (Mech Tech Dragons)
Team Role: Programmer
 
Join Date: Jan 2013
Rookie Year: 2011
Location: Richmond, VA
Posts: 94
William Kunkel is an unknown quantity at this point
Re: Error in NT Client.vi

Is there any way to suppress the error?
Reply With Quote
  #4   Spotlight this post!  
Unread 02-02-2014, 18:53
William Kunkel William Kunkel is offline
Programming Lead
AKA: Kunkel
FRC #0422 (Mech Tech Dragons)
Team Role: Programmer
 
Join Date: Jan 2013
Rookie Year: 2011
Location: Richmond, VA
Posts: 94
William Kunkel is an unknown quantity at this point
Re: Error in NT Client.vi

I've got something that I think works. If I wire a "false" constant into the element data type of Obtain Notifier, and then wire the notifier out into Cancel Ref, that stops the problem. Does that have any other consequences I'm not seeing?
Reply With Quote
  #5   Spotlight this post!  
Unread 03-02-2014, 02:02
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: Error in NT Client.vi

The client code has been pushed down and the dashboard is using Bind. You could use bind instead, or you can pass in the notifier ref into it like Bind does.

You could also fix the bug in the Client VI. Wire the error out from Notifier Wait into the Notifier Send and wire that output into a Clear Errors function.

See attachment.

Greg McKaskle
Attached Thumbnails
Click image for larger version

Name:	From Clipboard1.png
Views:	44
Size:	72.4 KB
ID:	16078  
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 21:04.

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