Go to Post Your team has a cave?!?!? OMG, how did you guys get that?!?! Do you have a cave sponsor? We tried talking to cave sponsors but none of them responded. You guys must be an elite team to have a cave. - marshall [more]
Home
Go Back   Chief Delphi > Technical > National Instruments 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 11-01-2009, 22:14
smcmahon's Avatar
smcmahon smcmahon is offline
The Architect
AKA: Sean McMahon
FRC #2656 (QUASICS)
Team Role: Coach
 
Join Date: Jan 2008
Rookie Year: 2008
Location: Pittsburgh, PA
Posts: 197
smcmahon is an unknown quantity at this point
Question LabView dashboard/live telemetry

We've been able to download VI's to our cRIO wirelessly and run them. We've used the "Tank Drive Example" and have been able to move our 2008 chassis around with no issues.

The issue we're having right now is the Dashboard. You know, the screen with all the analog/digital gauges, live camera feed, battery meter, etc? I realize that loads on the PC and runs from the PC. I just don't understand how to run it while LabView any VI's are running on the cRIO. Let me try to explain in steps:

1) Open Tank Drive example and double-click it
2) VI downloads wi-fi to the cRIO and starts to run
3) robot moved as advertised

Now, how do I get the dashboard going? If I close the Tank Drive example, apparently this causes the cRIO to unload the VI and stop running it... thus making the robot unresponsive. If I just go hunt down the Dashboard VI in the folder on the C: drive and run it, LabView maxes out my CPU and crashes altogether.

So, TLDR version: when/how do I start the Dashboard to get the live telemetry WHILE a VI is running/in use on the cRIO?

Thank you all kindly. As it is for most, LabView is new to us and we're doing our best to cope, learn, and understand. Thanks again.
Reply With Quote
  #2   Spotlight this post!  
Unread 11-01-2009, 22:36
Russ Beavis Russ Beavis is offline
Registered User
no team
 
Join Date: Nov 2005
Location: Manchester, NH - DEKA R&D Corp.
Posts: 341
Russ Beavis has a reputation beyond reputeRuss Beavis has a reputation beyond reputeRuss Beavis has a reputation beyond reputeRuss Beavis has a reputation beyond reputeRuss Beavis has a reputation beyond reputeRuss Beavis has a reputation beyond reputeRuss Beavis has a reputation beyond reputeRuss Beavis has a reputation beyond reputeRuss Beavis has a reputation beyond reputeRuss Beavis has a reputation beyond reputeRuss Beavis has a reputation beyond repute
Re: LabView dashboard/live telemetry

I haven't run the dashboard but can't understand why it would max out your CPU. That's obviously not the intention.

I can't think of any reason why you shouldn't be able to simultaneously run a VI on the cRIO AND the Dashboard VI on your PC. There is no limit within LabVIEW on the running of simultaneous apps being run (within reason, of course).

You might want to figure out why your Dashboard is crashing your PC first. After you figure that out, run Basic Robot Main.vi (or whatever cRIO app you're working on), leave it running and than click run on the Dashboard VI. You could also build and deploy your cRIO app and set it to run at startup (which obviously obviates the need for your PC to kickoff the cRIO app).

Russ
Reply With Quote
  #3   Spotlight this post!  
Unread 11-01-2009, 23:20
smcmahon's Avatar
smcmahon smcmahon is offline
The Architect
AKA: Sean McMahon
FRC #2656 (QUASICS)
Team Role: Coach
 
Join Date: Jan 2008
Rookie Year: 2008
Location: Pittsburgh, PA
Posts: 197
smcmahon is an unknown quantity at this point
Re: LabView dashboard/live telemetry

Being so new to LabView, I either forgot or didn't know you could lock in a VI to run at startup like that. I'll have to search out that option.

I would agree that the Dashboard isn't supposed to be maxing the CPU and/or crashing the software. I think that's a side-effect of the way I'm launching it.

I'll try what you said tomorrow when we get back to work. Maybe all I need to do is open them both first. Then deploy the driving VI and start the Dashboard... We'll see.

Thanks!
Reply With Quote
  #4   Spotlight this post!  
Unread 15-01-2009, 09:06
smcmahon's Avatar
smcmahon smcmahon is offline
The Architect
AKA: Sean McMahon
FRC #2656 (QUASICS)
Team Role: Coach
 
Join Date: Jan 2008
Rookie Year: 2008
Location: Pittsburgh, PA
Posts: 197
smcmahon is an unknown quantity at this point
Re: LabView dashboard/live telemetry

Well. We updated LabView and the cRIO firmware. And we finally got our programming laptop in, which has 4x the RAM of the one we were using. So now, when we run it, everything works great. We're getting the live feed from the camera, and can move the robot at the same time. Impressive stuff. Thanks for advice.
Reply With Quote
  #5   Spotlight this post!  
Unread 15-01-2009, 10:04
Chaos in a Can Chaos in a Can is offline
Joel Spadin
FRC #1736 (Robot Casserole)
Team Role: Programmer
 
Join Date: Mar 2007
Rookie Year: 2007
Location: Peoria, IL
Posts: 58
Chaos in a Can is an unknown quantity at this point
Send a message via MSN to Chaos in a Can
Re: LabView dashboard/live telemetry

While getting a more powerful computer is definitely the way to go, if anyone has problems with the dashboard maxing out CPU, you could try placing a wait inside each of the loops.
You won't recieve telemetry as often, but it should reduce the load on the processor.
(Look at the timed loop at the bottom of the basic robot code for an example.)
__________________
2006 Xerox Creativity Award
2007 General Motors Industrial Design Award
2008 Judges' Award
2009 Chrysler Team Spirit Award

Reply With Quote
  #6   Spotlight this post!  
Unread 15-01-2009, 11:17
Russ Beavis Russ Beavis is offline
Registered User
no team
 
Join Date: Nov 2005
Location: Manchester, NH - DEKA R&D Corp.
Posts: 341
Russ Beavis has a reputation beyond reputeRuss Beavis has a reputation beyond reputeRuss Beavis has a reputation beyond reputeRuss Beavis has a reputation beyond reputeRuss Beavis has a reputation beyond reputeRuss Beavis has a reputation beyond reputeRuss Beavis has a reputation beyond reputeRuss Beavis has a reputation beyond reputeRuss Beavis has a reputation beyond reputeRuss Beavis has a reputation beyond reputeRuss Beavis has a reputation beyond repute
Re: LabView dashboard/live telemetry

I should have added the suggestion from Chaos in a Can to my earlier post. That's a VALUABLE lesson in LabVIEW development (and, I'd imagine, any multi-threading application that needs to share time in an OS).

You should always make sure that loops only execute at a reasonable rate. Without adding an intentional delay within a while loop or using a timed loop (which does this for you), the loop will execute at max speed and cause the OS and CPU to max out.

As an example, create a simple while loop with only an increment and display and then run it. You'll find that it will execute at a few MHz and cause your PC to slow down tremendously. Add a 1ms wait in the loop to force it to execute at 1kHz and everything will be fine.

Russ
Reply With Quote
  #7   Spotlight this post!  
Unread 17-01-2009, 22:17
stevethetinker stevethetinker is offline
Registered User
FRC #1288 (RAVEN)
Team Role: Mentor
 
Join Date: Jan 2007
Rookie Year: 2004
Location: St. Charles, MO
Posts: 35
stevethetinker is an unknown quantity at this point
Re: LabView dashboard/live telemetry

I had the dashboard demo (the one in LV in projectwizards) working a couple of weeks ago, and now when I try to build it it says the vi is broken. Has anyone encountered this problem? Is there a fix short of reinstallling LV?
Reply With Quote
  #8   Spotlight this post!  
Unread 18-01-2009, 08:47
Russ Beavis Russ Beavis is offline
Registered User
no team
 
Join Date: Nov 2005
Location: Manchester, NH - DEKA R&D Corp.
Posts: 341
Russ Beavis has a reputation beyond reputeRuss Beavis has a reputation beyond reputeRuss Beavis has a reputation beyond reputeRuss Beavis has a reputation beyond reputeRuss Beavis has a reputation beyond reputeRuss Beavis has a reputation beyond reputeRuss Beavis has a reputation beyond reputeRuss Beavis has a reputation beyond reputeRuss Beavis has a reputation beyond reputeRuss Beavis has a reputation beyond reputeRuss Beavis has a reputation beyond repute
Re: LabView dashboard/live telemetry

Have you installed the latest LVUpdate and reimaged both the cRIO and DS?

http://joule.ni.com/nidu/cds/view/p/lang/en/id/1180

If you have done the installation recently, my understanding is that you'll need to open a new FRC project and "import" your custom VIs. Without going through the "new project" process, you may have some bad links to sub-VIs.

Another option is to press the broken run arrow and let LabVIEW point out where the problem is. It shouldn't be too hard to track down the issue.

Russ
Reply With Quote
  #9   Spotlight this post!  
Unread 19-01-2009, 19:45
stevethetinker stevethetinker is offline
Registered User
FRC #1288 (RAVEN)
Team Role: Mentor
 
Join Date: Jan 2007
Rookie Year: 2004
Location: St. Charles, MO
Posts: 35
stevethetinker is an unknown quantity at this point
Re: LabView dashboard/live telemetry

I have the latest and have reimaged. I did as you suggested about finding the problem and came to a 'well duh' moment. I was trying to build the template. I had forgotten to go to the labview main dialog and create a dashboard project. When I did that it worked.
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
Labview Dashboard Peter Randall NI LabVIEW 3 07-12-2008 10:29
Labview Video Tutorial? Dashboard Chris_Elston National Instruments LabVIEW and Data Acquisition 21 25-01-2008 00:29
Labview Dashboard and updated IFI dashboard spec Joe Ross LabView and Data Acquisition 1 04-04-2006 02:04
LabView Dashboard brummer_13 LabView and Data Acquisition 7 08-02-2006 21:43
LabView Dashboard Problems brummer_13 LabView and Data Acquisition 11 01-02-2006 20:13


All times are GMT -5. The time now is 18: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