Go to Post The FIRST community will always step up in times of need. - nikeairmancurry [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 31-01-2015, 16:07
jSoft jSoft is offline
GG Hirez
AKA: J.R.
FRC #4918 (The Roboctopi)
Team Role: Programmer
 
Join Date: Feb 2014
Rookie Year: 2013
Location: Port Townsend, Washington
Posts: 14
jSoft is on a distinguished road
Unhappy Dashboard output in Labview 2015

Hi everybody, I'm having issues getting limit switches to show up on my dashboard.

Here is the code for the dashboard:
http://gyazo.com/a29bbc6d6b4c5edeba50801bc4a0fb1e

And here is the code in our labview project:
http://gyazo.com/b5a6dee995f634358914a80a857bc770

Can anybody find any issues in this code? Thanks!
Reply With Quote
  #2   Spotlight this post!  
Unread 31-01-2015, 16:42
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,112
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: Dashboard output in Labview 2015

Is the Dashboard's SD Read in a loop? If it's outside the main While loop, it will only run once as the Dashboard starts.

You actually don't have to put an SD Read in the Dashboard program. If your indicator has the same name as the SD Variable, and if it's in the Custom (or Basic) tab, it will reflect the value of the variable automatically.
Reply With Quote
  #3   Spotlight this post!  
Unread 31-01-2015, 16:45
jSoft jSoft is offline
GG Hirez
AKA: J.R.
FRC #4918 (The Roboctopi)
Team Role: Programmer
 
Join Date: Feb 2014
Rookie Year: 2013
Location: Port Townsend, Washington
Posts: 14
jSoft is on a distinguished road
Re: Dashboard output in Labview 2015

Yes my dashboard code is in a loop. It is in loop 1 in the dashboard code. Is that correct?
Reply With Quote
  #4   Spotlight this post!  
Unread 01-02-2015, 10:03
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,748
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: Dashboard output in Labview 2015

You may want to use the dashboard's variable tab to see whether the variable is being set on the robot, and you are having issues with the DB, or whether the robot is having issues setting the variable the way you expect.

To summarize what I'd check in your code. Verify that the limit switch code is setting the SD variable when you expect. Make sure it is in teleOp or a loop and is executing repeatedly. Then I'd probably just place the LED in the Custom tab and delete the diagram read code that updates the LED.

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 08:28.

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