Go to Post ...okay, maybe I have a xkcd addiction - plnyyanks [more]
Home
Go Back   Chief Delphi > Technical > National Instruments LabVIEW and Data Acquisition > LabView and Data Acquisition
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 29-01-2007, 23:34
Ray Gitchell Ray Gitchell is offline
Registered User
FRC #0525 (SwartDogs)
Team Role: Mentor
 
Join Date: Feb 2006
Rookie Year: 2005
Location: Cedar Falls, Iowa
Posts: 12
Ray Gitchell is an unknown quantity at this point
Open Simulation with Dashboard Provider running

Danny,

I think I followed all the instructions to install LabView, Vista, and the newest user.lib. But, I am having problems following the 2nd tutorial. I start the Dashboard Provider and see that the DataSocket Server is running. But, the tutorial shows opening a simulation environment template vi while Dashboard Provider is running. I can't figure out how to get back to the Labview Getting Started screen while Dashboard Provider is running. If I try to start another instance of Labview, it just pops me back into the Dashboard Provider.

Please Advise, Ray
Reply With Quote
  #2   Spotlight this post!  
Unread 29-01-2007, 23:37
whytheheckme's Avatar
whytheheckme whytheheckme is offline
Registered User
AKA: Jacob Komar
no team
 
Join Date: Feb 2006
Rookie Year: 2005
Location: Providence, RI
Posts: 1,320
whytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond repute
Send a message via ICQ to whytheheckme Send a message via AIM to whytheheckme Send a message via MSN to whytheheckme Send a message via Yahoo to whytheheckme
Re: Open Simulation with Dashboard Provider running

I had problems with LabView and Vista. I just installed XP SP2...

I didn't spend more than 2 hours on it though. May be possible.

Jacob
Reply With Quote
  #3   Spotlight this post!  
Unread 30-01-2007, 12:28
Barry Lazzer Barry Lazzer is offline
Registered User
FRC #2004
Team Role: Teacher
 
Join Date: Nov 2006
Rookie Year: 2006
Location: Tulsa OK
Posts: 5
Barry Lazzer is an unknown quantity at this point
Re: Open Simulation with Dashboard Provider running

From either the Front Panel or the Block Diagram of LabVIEW, click on File, then Open. You should get a standard Windows Open File dialog box from which you can navigate to the Simulation Environment Template.vi.

Barry Lazzer.

Quote:
Originally Posted by Ray Gitchell View Post
Danny,

I think I followed all the instructions to install LabView, Vista, and the newest user.lib. But, I am having problems following the 2nd tutorial. I start the Dashboard Provider and see that the DataSocket Server is running. But, the tutorial shows opening a simulation environment template vi while Dashboard Provider is running. I can't figure out how to get back to the Labview Getting Started screen while Dashboard Provider is running. If I try to start another instance of Labview, it just pops me back into the Dashboard Provider.

Please Advise, Ray
Reply With Quote
  #4   Spotlight this post!  
Unread 30-01-2007, 13:36
Ray Gitchell Ray Gitchell is offline
Registered User
FRC #0525 (SwartDogs)
Team Role: Mentor
 
Join Date: Feb 2006
Rookie Year: 2005
Location: Cedar Falls, Iowa
Posts: 12
Ray Gitchell is an unknown quantity at this point
Re: Open Simulation with Dashboard Provider running

Thanks Barry,

That did it. The server, provider and Simulation Environment are all running at once. (slowly) I guess it just doesn't look like that in the tutorial 2.

We're trying to customize the Dashboard, mainly to rename the data to the same variable names as the code (more readable) and group them into functional groups like driving, camera targeting, and manipulator controls.

If there is a template for the Dashboard, similar to the standard one, that we could just customize, rather than build from scratch, that would be very helpful.

I'm hoping we can make a stand-alone executable when we're done, so we can publish it to multiple (student, mentor, ...) laptops. I really don't want to install all these tool packages on every computer we use.

Thanks, Ray
Reply With Quote
  #5   Spotlight this post!  
Unread 30-01-2007, 20:56
Danny Diaz's Avatar
Danny Diaz Danny Diaz is offline
Smooth Operator
AKA: FrankenMentor
None #0418
Team Role: Alumni
 
Join Date: Apr 2005
Rookie Year: 2003
Location: Manchester, NH
Posts: 545
Danny Diaz has a reputation beyond reputeDanny Diaz has a reputation beyond reputeDanny Diaz has a reputation beyond reputeDanny Diaz has a reputation beyond reputeDanny Diaz has a reputation beyond reputeDanny Diaz has a reputation beyond reputeDanny Diaz has a reputation beyond reputeDanny Diaz has a reputation beyond reputeDanny Diaz has a reputation beyond reputeDanny Diaz has a reputation beyond reputeDanny Diaz has a reputation beyond repute
Send a message via AIM to Danny Diaz
Re: Open Simulation with Dashboard Provider running

Quote:
Originally Posted by Ray Gitchell View Post
Thanks Barry,
If there is a template for the Dashboard, similar to the standard one, that we could just customize, rather than build from scratch, that would be very helpful.
Like what would you like? For my team (418) we have only about 4 things we ever look at from a Dashboard perspective, plus the user bytes. For us starting from a template would take more time because we'd delete 80% of what was on there. Plus you can change the outputs to any number of different kind of indicators (graphs, charts, displays, meters, etc...) so modifying a template would cause you to have to reposition everything to make things fit. If you want a "templatized" dashboard I'm sure we can get you one, but I think you'll be mostly customizing your dashboard anyway.

Quote:
I'm hoping we can make a stand-alone executable when we're done, so we can publish it to multiple (student, mentor, ...) laptops. I really don't want to install all these tool packages on every computer we use.
Unfortunately the Application Builder isn't built into the Full Development System, only the Professional Development System. Believe it or not, even if you did build an executable, you still have to install about 70MB of packages to make everything work (LabVIEW runtime engine, VISA runtime, DataSocket runtime, etc...). Of course at that point you would have "dead code", and would have to then distribute changes back to all the machines. We really do prefer you to have LabVIEW installed on your computer, but depending on what you truly need you can cut down on the installation footprint by only installing the core components (LabVIEW, NI-VISA, etc...).

-Danny
__________________
Danny Diaz
Former Lead Technical Mentor, FRC 418
Reply With Quote
  #6   Spotlight this post!  
Unread 31-01-2007, 20:56
Ray Gitchell Ray Gitchell is offline
Registered User
FRC #0525 (SwartDogs)
Team Role: Mentor
 
Join Date: Feb 2006
Rookie Year: 2005
Location: Cedar Falls, Iowa
Posts: 12
Ray Gitchell is an unknown quantity at this point
Re: Open Simulation with Dashboard Provider running

Danny,

Thanks for the info. We're up and running custom dashboards.

One thing is really great. We "join" user bytes together so we can
display the full resolution of the AtoD channels.

The guages really dress up the drive PWM display.

Separate groupings of the camera tracking and drive data is helpful.

Thanks, Ray
Reply With Quote
  #7   Spotlight this post!  
Unread 31-01-2007, 23:44
Danny Diaz's Avatar
Danny Diaz Danny Diaz is offline
Smooth Operator
AKA: FrankenMentor
None #0418
Team Role: Alumni
 
Join Date: Apr 2005
Rookie Year: 2003
Location: Manchester, NH
Posts: 545
Danny Diaz has a reputation beyond reputeDanny Diaz has a reputation beyond reputeDanny Diaz has a reputation beyond reputeDanny Diaz has a reputation beyond reputeDanny Diaz has a reputation beyond reputeDanny Diaz has a reputation beyond reputeDanny Diaz has a reputation beyond reputeDanny Diaz has a reputation beyond reputeDanny Diaz has a reputation beyond reputeDanny Diaz has a reputation beyond reputeDanny Diaz has a reputation beyond repute
Send a message via AIM to Danny Diaz
Re: Open Simulation with Dashboard Provider running

Oh yeah, we're doing the same thing - we are pulling over 4 10-bit numbers using 5 user bytes, and then using the 6th user byte as a "code" indicator of what values we're pulling over so we can multiplex even more - you send 4 numbers with one code, send 4 more with another code, and so on, and before you know it you have all the information you need updating about 10 times per second! (just be careful, not all user bytes come over at the same rate since some user bytes are included in multiple packets).

The COOLEST thing EVER, that I REALLY wish everyone would look into, is the 3D Picture Control. Team 418 is going to have a 3D picture control on our Dashboard showing us a 3D representation of our robot arm based on the information we get back from the robot, so we can quickly and easily see where the arm is and how it's positioned at any time (even if the robot arm is occluded by the rack and other robots/objects). We'd love to integrate a field model in our 3D picture control so we can even see where we are in relation to the field and the rack and everything, but with only one person doing LabVIEW programming on the team (not me, I don't do anything, I make them do everything) it is waaaaay too much for them to bite off. However, if we had the manpower, it would be an extremely awesome way to get in some more driver practice time if you also simulated the Robot in LabVIEW at the same time... Maybe if I can get a few projects off my back I'll have some time to do a small demo to show everyone the potential of just how useful these tools and LabVIEW really can be!

-Danny
__________________
Danny Diaz
Former Lead Technical Mentor, FRC 418

Last edited by Danny Diaz : 31-01-2007 at 23:47.
Reply With Quote
  #8   Spotlight this post!  
Unread 01-02-2007, 22:53
Ray Gitchell Ray Gitchell is offline
Registered User
FRC #0525 (SwartDogs)
Team Role: Mentor
 
Join Date: Feb 2006
Rookie Year: 2005
Location: Cedar Falls, Iowa
Posts: 12
Ray Gitchell is an unknown quantity at this point
Re: Open Simulation with Dashboard Provider running

Danny,

I hope 418 will post something, maybe a picture of the 3D map.
A demo would be great.

3D would really be a nice addition to the simulation.

525 is using LabView to solve some of our drive and camera problems, but we're still new at it.

Ray
Reply With Quote
  #9   Spotlight this post!  
Unread 02-02-2007, 12:21
Danny Diaz's Avatar
Danny Diaz Danny Diaz is offline
Smooth Operator
AKA: FrankenMentor
None #0418
Team Role: Alumni
 
Join Date: Apr 2005
Rookie Year: 2003
Location: Manchester, NH
Posts: 545
Danny Diaz has a reputation beyond reputeDanny Diaz has a reputation beyond reputeDanny Diaz has a reputation beyond reputeDanny Diaz has a reputation beyond reputeDanny Diaz has a reputation beyond reputeDanny Diaz has a reputation beyond reputeDanny Diaz has a reputation beyond reputeDanny Diaz has a reputation beyond reputeDanny Diaz has a reputation beyond reputeDanny Diaz has a reputation beyond reputeDanny Diaz has a reputation beyond repute
Send a message via AIM to Danny Diaz
Re: Open Simulation with Dashboard Provider running

After analyzing our current state, and the current design of our robot, we've actually decided we can focus our efforts more efficiently by leveraging the 2D robotic arm control example that is already built into LabVIEW that uses the 3D picture control. This is not really a spoiler on our design or anything, but our robot arm is very eerily similar to the 3D Picture Control robotic arm example in LabVIEW (and I would imagine most arms for this year's competition are). So we're going to integrate the robotic arm example into our Dashboard so we can control the arm articulations in the picture control via data from the dashboard (coming from pots on our own robot arm articulations) instead of controls on the screen. Then we're going to modify the model on the screen to more closely resemble our arm and also give a reference point for the ground so we know how close our manipulator is to the ground.

Check it out, the example in the following relative path in LabVIEW 8.2:
National Instruments\LabVIEW 8.2\examples\picture\robot.llb

The top-level VI you want to look at inside the library is robot.vi.



This dashboard control will really only be used during driving when/if the robot arm is occluded from view, but the REAL benefits to having this is are:
  1. Robot Arm Visualization - It shows us where the Robot Controller code thinks the arm is at in a visualization that is quickly understood by anyone on our team. We've had problems in the past where a pot would come loose or something would go wrong, and it would take us way too long to figure out the problem.
  2. Operator driver practice - With the USB-DAQ device, we can give a robot operator practice time with the Dashboard and the simulator toolkit (the drivers can practice with previous year's robots). Unfortunately we don't have the resources to give something to our drivers such that the driver AND the operator can practice together, but some practice is better than no practice if you ask me.
  3. Code development Once we get a good mapping between the pots on our real robot arm and the angles in our visualization, it will allow us to tweak and visualize where presets are for the arm. Obviously you want preset positions for the arm to reach the various heights (floor, lower rack, mid rack, upper rack) so you can one-button press-it-and-forget-it-and-get-it-perfect-every-time kind of operation; we'll pull a trick from the LabVIEW CMUCam2 code and export a .h file that will contain our config information. Once we're done setting our presets, we'll just then compile the code with the header file and bam we don't have any additional code to muck with.
  4. Wow Factor - Obviously we're itching for the control award at Lone Star for the 2nd year in a row...

I'm investigating ways of getting a demo put together of the system - if we can assemble it all before we ship out our robot, if not then after the season is over we'll still put together a demo to show teams how to do it next year - Camtasia allows us to take computer-screen recordings at the same time as webcam recordings so we can have a split-screen of our dashboard and robot at the same time, so I think I will use that.

-Danny
__________________
Danny Diaz
Former Lead Technical Mentor, FRC 418

Last edited by Danny Diaz : 02-02-2007 at 12:29.
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Running Inventor on an eMachines Celeron with integrated graphics sanddrag Inventor 4 25-11-2005 08:42
Running FIRST robots on open road? Billfred Technical Discussion 6 19-10-2005 00:33
Drivetrain up and running with stock wheels Mirza95vx Robot Showcase 0 05-02-2005 10:53
Was anyone else thinking about running off with a segway? Elyse Holguin Dean Kamen's Inventions 5 14-05-2002 22:54
Any Massachusetts teams with open-house arenas yet? Anton Abaya General Forum 0 15-01-2002 15:45


All times are GMT -5. The time now is 07:29.

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