Go to Post Engineering is so much easier when you give all the components personalities. Then you just watch the drama unfold and try to fix it. - EricVanWyk [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 04-03-2011, 05:58
java4first java4first is offline
(Java) Programming Mentor
AKA: Stu
FRC #0501 (Power Knights)
Team Role: Mentor
 
Join Date: Nov 2010
Rookie Year: 2011
Location: Goffstown, NH
Posts: 56
java4first is an unknown quantity at this point
LabView DriverStation & Dashboard w/ Driver Account

A quick (panicked) question ... we got a different laptop to use this year instead of the Classmate (because of larger screen real estate more than anything else), and spent time getting a wonderful (to us ;-) custom dashboard built in LabView that takes up the whole screen, with space for the standard DriverStation to overlay it sitting in the middle at the bottom. So far, so good. It is running Windows 7 as delivered by HP if this makes a difference.

Then, at the practice day at the regionals yesterday, we ran into the problem with having to run as "Driver" (and, thanks to Windows notion of user accounts, just renaming an existing one to be "Driver" of course doesn't work). After getting that fixed, we had the following unfortunate situation occur:

As soon as you run as Driver account, when you launch the DriverStation, it comes up pegged to the lower left corner of the display, and no longer has the window mananger title bar and ability to reposition it.

Worse - the custom Dashboard we built comes up also tied to the lower left corner of the display, although tiled above the DriverStation (it also has no window manager title bar) ... and is clipped in the horizontal and vertical direction at what appears to be the size of a Classmate display.

So, my question is - is there some feature of the two applications that looks at which account is running the code, and when it sees "Driver" it says - oh, you are running on a Classmate and we need to fix / hardcode how it displays.

Assuming this is true, is there someway to fix it (at least for the custom dashboard ... like a registry setting or something in the code that gets generated by the example dashboard project that we started with in order to get all of our additional stuff added to)? Or tell me what we are othewise doing wrong here? Or does one need to write a custom dashboard in something else (like Java and Swing) in order to be able to use / take advantage of the larger screen real estate?

Thanks in advance!
Stu
Reply With Quote
  #2   Spotlight this post!  
Unread 04-03-2011, 06:40
Vikesrock's Avatar
Vikesrock Vikesrock is offline
Team 2175 Founder
AKA: Kevin O'Connor
no team
Team Role: Engineer
 
Join Date: Mar 2006
Rookie Year: 2007
Location: Manchester, NH
Posts: 3,305
Vikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond repute
Send a message via AIM to Vikesrock Send a message via MSN to Vikesrock Send a message via Yahoo to Vikesrock
Re: LabView DriverStation & Dashboard w/ Driver Account

There is a case structure at the bottom of the default dashboard code that handles it's sizing and placement when it sees it is in the drive account. It sounds like this code may have been left in your custom dashboard.
__________________


2007 Wisconsin Regional Highest Rookie Seed & Regional Finalists (Thanks 930 & 2039)
2008 MN Regional Semifinalists (Thanks 2472 & 1756)
2009 Northstar Regional Semifinalists (Thanks 171 & 525)
Reply With Quote
  #3   Spotlight this post!  
Unread 04-03-2011, 06:43
java4first java4first is offline
(Java) Programming Mentor
AKA: Stu
FRC #0501 (Power Knights)
Team Role: Mentor
 
Join Date: Nov 2010
Rookie Year: 2011
Location: Goffstown, NH
Posts: 56
java4first is an unknown quantity at this point
Re: LabView DriverStation & Dashboard w/ Driver Account

Thank you very much for such a prompt reply. We'll have to see if we can figure it out (I'm a Java programmer, and we've struggled with the graphical nature of the LabView programming for the dashboard ... but I think we should be able to find it based on what you said). Thank you again!
Reply With Quote
  #4   Spotlight this post!  
Unread 04-03-2011, 06:54
Vikesrock's Avatar
Vikesrock Vikesrock is offline
Team 2175 Founder
AKA: Kevin O'Connor
no team
Team Role: Engineer
 
Join Date: Mar 2006
Rookie Year: 2007
Location: Manchester, NH
Posts: 3,305
Vikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond repute
Send a message via AIM to Vikesrock Send a message via MSN to Vikesrock Send a message via Yahoo to Vikesrock
Re: LabView DriverStation & Dashboard w/ Driver Account

Quote:
Originally Posted by java4first View Post
Thank you very much for such a prompt reply. We'll have to see if we can figure it out (I'm a Java programmer, and we've struggled with the graphical nature of the LabView programming for the dashboard ... but I think we should be able to find it based on what you said). Thank you again!
I have attached a picture of what you are looking for.

If you still want the dashboard stuck to the bottom left, but just want to change the displayed size, you can do so using the numbers inside the case structure. The '200' is to leave space for the Driver Station, you should probably leave that alone. The 600 is the height of the top of the dashboard from the bottom of the screen (meaning your dashboard height is that number - 200). If you want your dashboard to take up all available vertical space, you should be able to remove the subtraction and wire the second parameter from the left cluster straight across to the second right, just like the first one is done. The 1024 is the width of the dashboard.

If you want to unstick it and allow for moving and resizing I believe removing that whole chunk of code will do that, but I'm not positive on that.
Attached Thumbnails
Click image for larger version

Name:	Resize.jpg
Views:	24
Size:	57.7 KB
ID:	10330  
__________________


2007 Wisconsin Regional Highest Rookie Seed & Regional Finalists (Thanks 930 & 2039)
2008 MN Regional Semifinalists (Thanks 2472 & 1756)
2009 Northstar Regional Semifinalists (Thanks 171 & 525)

Last edited by Vikesrock : 04-03-2011 at 07:02. Reason: helps if I add the picture
Reply With Quote
  #5   Spotlight this post!  
Unread 06-03-2011, 21:02
gnunes gnunes is offline
Registered User
FRC #1391 (Metal Moose)
Team Role: Mentor
 
Join Date: Jan 2011
Rookie Year: 2011
Location: Westtown School
Posts: 57
gnunes has a spectacular aura aboutgnunes has a spectacular aura aboutgnunes has a spectacular aura about
Re: LabView DriverStation & Dashboard w/ Driver Account

The picture Vikesrock sent has all the crucial info. In the case structure, they are setting the bounds of the Dashboard panel. The upper left corner of the screen is (0,0) and you can work it out from there.

Below that is a Property Node for the Dashboard VI. You can see that the closeable, minimizable, and "has title bars" properties have all been set to false. You can change that, and then the running program will have a title bar and be possible to re-position. If you click on one of these properties with the hand (operate tool), you will get a pop-up list of all the properties of the VI. There are lots. You could, for example, allow scroll bars, which it doesn't have by default. Not useful in competition, but I put information "off screen" for debugging that I could scroll to. Grab the handle on the bottom of the Property Node to stretch it down and add more connections. You can then set each connection to be the property you want. (By default, it will be the next property in the list after the one above it already showing.)

The Driver Station you cannot change. We don't have access to the source code, so we can't move it or change it's size. It will always take up the bottom 200 pixels of your screen and always only be 1024 pixels wide.
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 09:24.

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