Go to Post [Hints] usually come out right before Christmas. Be patient, and go do something else with your life while you still have time! - Libby K [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 17-02-2013, 00:50
Mattpenguin Mattpenguin is offline
Registered User
AKA: Matthew Roberts
FRC #4265 (Secret City Wildbots)
Team Role: Programmer
 
Join Date: Feb 2013
Rookie Year: 2012
Location: Oak Ridge, TN
Posts: 4
Mattpenguin is an unknown quantity at this point
LabVIEW Not Writing Numbers to SD

We are currently using LabVIEW to build our own dashboard for the driver station. Our robot is in Java however. The problem we are having is that we have a few sliders on the dashboard whose data is being converted to a double then written to SmartDashboard. Our problem is that if we check SmartDashboard, these values do not appear and therefore are not able to be read from it in Java. However, it only appears to be a problem with writing values because we are reading numbers and booleans fine through it. If anyone could help it would be greatly appreciated or if you need more information just let me know.
Reply With Quote
  #2   Spotlight this post!  
Unread 17-02-2013, 02:36
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: LabVIEW Not Writing Numbers to SD

Is the conversion and SD Write being done inside a loop in the Dashboard program, or is it outside all loops? Unless you put it in a loop, it will only be executed once.
Reply With Quote
  #3   Spotlight this post!  
Unread 17-02-2013, 08:33
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: LabVIEW Not Writing Numbers to SD

Also read the comments on the diagram, the large green boxes. If you place the slider in the Operation tab, like the Slider 1, and name it with your variable, you are done. The writes are done for you.

If you want more control or more interaction, you do need to consider when the code is run, and typically you want it in a loop.

Greg McKaskle
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 22:58.

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