Go to Post It's amazing what you'll find in the FIRST Manual :) - dcarr [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 12-02-2012, 01:43
CodeMonkey's Avatar
CodeMonkey CodeMonkey is offline
Self Proclaimed Ruler of Universe
AKA: Omar Issa Attar
FRC #0599 (Robodox)
Team Role: Programmer
 
Join Date: Feb 2010
Rookie Year: 2009
Location: Los Angeles, CA
Posts: 20
CodeMonkey is an unknown quantity at this point
Switch on operator interface to control dashboard

So I have modified my dashboard for the driver station to have two tabs to allow feed from two cameras. I was wondering of it was possible to have a switch on the operator interface to switch between the the two tabs so that the drivers don't have to use the mouse to do so. I am using WindRiver C++ to code and I used Labview to modify my dashboard. I'm not sure if I have to write some code in C++ to allow a switch or modify the dashboard code some more. I modified my dashboard using the guide in this thread: http://www.chiefdelphi.com/forums/sh...hlight=Cameras.
__________________
  #2   Spotlight this post!  
Unread 12-02-2012, 14:50
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: Switch on operator interface to control dashboard

To select which tab is visible using software, do this:

First, find the tab control itself on the block diagram. If you don't see it, you can double-click on the tab control on the front panel to switch to block diagram view with the control highlighted.

Then create a property node that will let you set the value of the tab control. Right-click on the tab control and choose Create>Property Node>Value from the popup menu. Click on a handy spot in the block diagram to place the node. Right-click the newly placed property node and choose Change To Write.

Now you can right-click on the terminal at the left side of the Value and Create>Constant to give you an enumerated constant that will set the tab to whatever value you wish.

You'll probably need to add something to the dashboard data stream so the robot software can select which tab you want. Use a LabVIEW Case structure to turn your selection into the appropriate value to feed to the tab control's Value property.
Closed Thread


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 01:33.

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