Go to Post Anything is capable of happening in FIRST. - Dorienne [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 Rating: Thread Rating: 11 votes, 5.00 average. Display Modes
  #16   Spotlight this post!  
Unread 16-01-2008, 15:58
Abrakadabra Abrakadabra is offline
Here We Go !!!
AKA: Scott Kukshtel, Mr. K
FRC #3467 (The Windham Windup!)
Team Role: Mentor
 
Join Date: Jan 2007
Rookie Year: 2002
Location: Windham, New Hampshire
Posts: 160
Abrakadabra has a brilliant futureAbrakadabra has a brilliant futureAbrakadabra has a brilliant futureAbrakadabra has a brilliant futureAbrakadabra has a brilliant futureAbrakadabra has a brilliant futureAbrakadabra has a brilliant futureAbrakadabra has a brilliant futureAbrakadabra has a brilliant futureAbrakadabra has a brilliant futureAbrakadabra has a brilliant future
Re: Labview Video Tutorial? Dashboard

Resurrecting an oldie but goodie...

Danny - Is there a new place to get your Dashboard Tutorial Flash videos that you mentioned in the post up above? The LASA Robotics site seems to have switched to Joomla, and the Forum no longer seems to be there. My team is really hot to use the Labview Dashboard this year, and as I remember, those videos were very useful to my understanding of the whole process when I first checked it out.

Thanks!
Reply With Quote
  #17   Spotlight this post!  
Unread 17-01-2008, 14:42
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: Labview Video Tutorial? Dashboard

Ewww, you don't want to use that.

What you want to use is the Simulation Toolkit, it has a much better and easier to use dashboard mechanism built into it. If you use the default VI as your template for your dashboard program, everything you need is right there. Can you give me the weekend to install my presentation-generation software into my new laptop and create a quick video to show you how to do it? I promise it will be WELL worth the wait...

-Danny
__________________
Danny Diaz
Former Lead Technical Mentor, FRC 418
Reply With Quote
  #18   Spotlight this post!  
Unread 17-01-2008, 14:50
Abrakadabra Abrakadabra is offline
Here We Go !!!
AKA: Scott Kukshtel, Mr. K
FRC #3467 (The Windham Windup!)
Team Role: Mentor
 
Join Date: Jan 2007
Rookie Year: 2002
Location: Windham, New Hampshire
Posts: 160
Abrakadabra has a brilliant futureAbrakadabra has a brilliant futureAbrakadabra has a brilliant futureAbrakadabra has a brilliant futureAbrakadabra has a brilliant futureAbrakadabra has a brilliant futureAbrakadabra has a brilliant futureAbrakadabra has a brilliant futureAbrakadabra has a brilliant futureAbrakadabra has a brilliant futureAbrakadabra has a brilliant future
Re: Labview Video Tutorial? Dashboard

Sure - bring it on!

(it's too late for the Golden Globes, but maybe there could be an Oscar waiting in the wings? )

In the meantime, I'l grab the Simulation toolkit...
Reply With Quote
  #19   Spotlight this post!  
Unread 21-01-2008, 03:05
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: Labview Video Tutorial? Dashboard

I'd recommend grabbing it again, I needed to update some of the error handling code - Team 418's test platform with a 2004 RC/OI is starting to get flaky, and some bytes are getting corrupt every so often. I needed to update the toolkit to better handle getting corrupt data so that you either get good data or nothing at all.

But, anyway, I promised a new tutorial and I'm here to make good on it. I didn't add any voice to this tutorial, but I think it's going to be very easy to follow and understand. What I did was showed you how to use the components from the FRC Robot Modeling toolkit to create a really basic Dashboard, but it's very easy to expand to add much, much more capabilities, especially if you're sending back data via the user bytes. I went through the actual build phase pretty quick, and made a few "uh oh"s that I did correct, but you'll see. I did the whole thing in under 5 minutes, and should be easily reproducible by anyone on your LV programming team. Remember it's assumed that you've installed the FRC Modeling Toolkit.

As always, if you have any questions, feel free to ask.

To download the tutorial, download the ZIP file and open the HTML page to view the FLASH video.

http://downloads.lasarobotics.org/FIRST_Tutorials/

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

Last edited by Danny Diaz : 21-01-2008 at 03:17.
Reply With Quote
  #20   Spotlight this post!  
Unread 21-01-2008, 10:59
Kingofl337's Avatar
Kingofl337 Kingofl337 is offline
You didn't see anything....
AKA: Adam
FRC #0501 (Power Knights)
Team Role: Mentor
 
Join Date: Feb 2005
Rookie Year: 1998
Location: Manchester, NH
Posts: 861
Kingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond repute
Send a message via Yahoo to Kingofl337
Re: Labview Video Tutorial? Dashboard

Here is a sample on how to write user bytes in easyC.
Attached Files
File Type: zip user_bytes.zip (15.6 KB, 108 views)
__________________
FIRST Team 501 PowerKnights - Mentor
FIRST Team 40 Checkmate - Mentor Alum
FIRST Team 146 Blue Lightning - Alumni

Last edited by Kingofl337 : 21-01-2008 at 14:16.
Reply With Quote
  #21   Spotlight this post!  
Unread 24-01-2008, 23:12
Abrakadabra Abrakadabra is offline
Here We Go !!!
AKA: Scott Kukshtel, Mr. K
FRC #3467 (The Windham Windup!)
Team Role: Mentor
 
Join Date: Jan 2007
Rookie Year: 2002
Location: Windham, New Hampshire
Posts: 160
Abrakadabra has a brilliant futureAbrakadabra has a brilliant futureAbrakadabra has a brilliant futureAbrakadabra has a brilliant futureAbrakadabra has a brilliant futureAbrakadabra has a brilliant futureAbrakadabra has a brilliant futureAbrakadabra has a brilliant futureAbrakadabra has a brilliant futureAbrakadabra has a brilliant futureAbrakadabra has a brilliant future
Re: Labview Video Tutorial? Dashboard

Hi Danny -

Thanks for the tutorial. It went a little fast in places so we had to watch it a few times, but we finally got a finished product that looks almost exactly like yours. However, when we run, we get a few seconds of data transmission and then an error:

Error -1073807252 occurred at VISA read
in PacketReader.vi -> DashboardProvider.vi
Possible Reasons
An overrun error occurred during the transfer.
A character was not read from the hardware
before the next character.

At this point the DashboardProvider is halted, but the Dashboard itself is still going.

We are using the USB<->Serial converter cable sold by IFI for the VEX system. Could that be the issue? Has anyone else had any luck with this adapter?

(It's getting real hard to find a decent but inexpensive laptop with a real serial port!)

Thanks for any guidance you can provide!
Reply With Quote
  #22   Spotlight this post!  
Unread 25-01-2008, 00:29
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: Labview Video Tutorial? Dashboard

Okay, I'm going to shoot from the hip here since I cannot test it right now - the only thing I can think is happening is that I forgot to put a wait in the while loop. The program runs fine on my dual core laptop, but I haven't checked to see if one cores is pegged out. See, when you create a while loop you're supposed to put some kind of wait or blocking call in it so that the while loop doesn't just spin and eat all the processor (that way the thread running the loop yields for other threads in the system to be able to run). Open the Dashboard Provider VI and you'll see what I mean, the while loops there have a "wait for millisecond multiple" and usually it has 10 wired into it (that means the processing within the loop will be suspended until the next 10 ms multiple). I had thought the "Dashboard Read" VI would take some time to read the datasocket variable (actually I thought it was a blocking call), but I could be incorrect - if this is the case then the thread reading the datasocket variable in your while loop is using a significant amount of the processor and it is starving the serial port read; that's why the overrun is probably happening (you can verify this by watching your CPU utilization while you're running the VI). On a dual core target if you're lucky and the serial read happens to be running on one processor and the datasocket read hogs the second processor, everything will run fine. However, if you're on a single core target then you're in for some serious trouble, which is probably what's happening to you (or you're unlucky and both threads got scheduled on the same processor).

I won't be able to get my hands on the testing platform again until Saturday, so if this is the case I'll update the video then with this new code. Until then, please accept this new VI (attached) and let me know if this solves your problem.

-Danny
Attached Files
File Type: vi SampleDashboard.vi (26.7 KB, 118 views)
__________________
Danny Diaz
Former Lead Technical Mentor, FRC 418

Last edited by Danny Diaz : 25-01-2008 at 00:32.
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
Example LabVIEW Apps - Dashboard, CMUcam2 and Motors DanDon LabView and Data Acquisition 3 29-01-2009 22:13
Example LabVIEW Apps - Dashboard, CMUcam2 and Motors Russ Beavis National Instruments LabVIEW and Data Acquisition 9 21-01-2007 17:19
LabView Dashboard Problems brummer_13 LabView and Data Acquisition 11 01-02-2006 20:13
National Instruments LabVIEW and Data Acquisition Forum Danny Diaz National Instruments LabVIEW and Data Acquisition 1 16-01-2006 13:20
Custom Dashboard code for LabVIEW ready for download. archiver 2001 3 24-06-2002 00:49


All times are GMT -5. The time now is 16:09.

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