Go to Post Being rude is easy. Being a compassionate human being takes work. - Joe Johnson [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 05-02-2006, 15:38
brummer_13 brummer_13 is offline
Registered User
FRC #1501 (Thrust)
 
Join Date: Jan 2006
Rookie Year: 2006
Location: Indiana
Posts: 11
brummer_13 is an unknown quantity at this point
LabView Dashboard

I was worndering if anyone has gotten the dashboard in LabView to work
Reply With Quote
  #2   Spotlight this post!  
Unread 06-02-2006, 00:12
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 Dashboard

Quote:
Originally Posted by brummer_13
I was worndering if anyone has gotten the dashboard in LabView to work
I wish you wouldn't make such statements, there have been many teams who have gotten the LabVIEW Dashboard to work. The problem you're facing is that you either (1) haven't read the documentation or (2) haven't taken the time to learn how to use it. If you have specific questions maybe I can help - I must admit I don't support EasyC quite yet, it's been on my list of things to do but have not been able to get around to it (darn day job!).

Have you been able to get the Dashboard to receive packets? Have you been able to get the Dashboard to display simple PWM_1 information? Have you been able to get the Dashboard to show you joystick information?

-Danny
__________________
Danny Diaz
Former Lead Technical Mentor, FRC 418
Reply With Quote
  #3   Spotlight this post!  
Unread 06-02-2006, 01:24
Chris_Elston's Avatar
Chris_Elston Chris_Elston is offline
Controls Engineer
AKA: chakorules
FRC #1501 (Team THRUST)
Team Role: Engineer
 
Join Date: Feb 2004
Rookie Year: 2001
Location: Huntington, Indiana
Posts: 747
Chris_Elston has a reputation beyond reputeChris_Elston has a reputation beyond reputeChris_Elston has a reputation beyond reputeChris_Elston has a reputation beyond reputeChris_Elston has a reputation beyond reputeChris_Elston has a reputation beyond reputeChris_Elston has a reputation beyond reputeChris_Elston has a reputation beyond reputeChris_Elston has a reputation beyond reputeChris_Elston has a reputation beyond reputeChris_Elston has a reputation beyond repute
Re: LabView Dashboard

Danny,

Go easy on the little freshman fellow....he is new....

I tried to assist brummer13 yesterday. We loaded MPLAB and downloaded the default code from IFIrobotics. We assumed that all code and bytes would be supported by Labview Dashboard with this configuration. We still can't get Labview to work with the default code downloaded from IFI.

Here is what we know.

1. Labview CMUCam works great.
2. NI-VISA is installed (it works fine with CMUCam Labview
3. IFI Robotics Dashboard works fine, this proves our cable, serial port work just fine on the computer.
4. We installed default IFIRobotics code with MPLAB and C18 2.4 complier. We assumed that this version of software would support all the user byte calls that Labview dashboard is looking for instead of using EasyC, where we have to write our own user bytes to Labview Dashboard.
5. We did write a small EasyC application for the OI LEDs, the OI LEDs work just fine, but Labview doesn't seem to be picking it up.
6. We have read the documentation, the PDF that came in the zip file for the dashboard application, doesn't really say anything about it "not" working. No troubleshooting steps etc..

What we have noticed:
1. Labview dashboard seems to be running continuously, and monitoring the block diagram in the background, we can see I guess what you would call a program "pulse" or bulge in the piping coming in simulation data flow, it arrives in the bigger frame on the right, then changes the top left and right arrow selectors to say "False". Common sense to me means the data came in, but didn't find a matching packet or "String" in that block and then went false.

Being that we tried the default code, which we thought was sending user byte data, I am kind-of lost too.

I do appreciate your other post, I am reviewing the Labview training links you have posted for the sake of our freshman team trying to design an HMI for the robot this year.

Thanks for your patients in the matter. I am glad that other teams have gotten this to work, apparently for whatever reason, we aren't one of them, and I am trying to lead them in such a way that decifers good troubleshooting skills. We are generally a seasoned programming team with good technical skills. We helped find a bug in the EasyC camera function not long ago that was a concern to our team, but so far none of us have grasped the Labview Dashboard application. Apparently we aren't trying hard enough.

Also I believe bummer13 was just asking a general question if anyone had gotten it to work or maybe wanted to hear from a team that got it up and running. Maybe you can direct us to such a team that has it running since their are so many of them. Thank you for you time.





Quote:
Originally Posted by Danny Diaz
I wish you wouldn't make such statements, there have been many teams who have gotten the LabVIEW Dashboard to work. The problem you're facing is that you either (1) haven't read the documentation or (2) haven't taken the time to learn how to use it. If you have specific questions maybe I can help - I must admit I don't support EasyC quite yet, it's been on my list of things to do but have not been able to get around to it (darn day job!).

Have you been able to get the Dashboard to receive packets? Have you been able to get the Dashboard to display simple PWM_1 information? Have you been able to get the Dashboard to show you joystick information?

-Danny
__________________
Team T.H.R.U.S.T. 1501
Download all of our past robot's source code here:Repository

Favorite CD quote:
"That can't be their 'bot. not nearly enough (if any) rivets to be a 1501 machine." ~RogerR: Team #1369

Last edited by Chris_Elston : 06-02-2006 at 01:29.
Reply With Quote
  #4   Spotlight this post!  
Unread 07-02-2006, 00:09
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 Dashboard

Quote:
Originally Posted by chakorules
Go easy on the little freshman fellow...
I understand he is probably frustrated, let's see if we can shed some light on why you're not getting the correct packets.
Quote:
Originally Posted by chakorules
Being that we tried the default code, which we thought was sending user byte data, I am kind-of lost too.
Just getting basic functionality working shouldn't be too difficult, so that concerns me that you're having so many problems. What any of the Dashboard programs do is parse a specific datastream provided by the OI - the OI has special hardware that snoops the data communications between the OI and the RC and provides a copy of the data stream to the Dashboard, and should provide the same information regardless of the language used to program the RC. The 2 components of the LabVIEW Dashboard work together to parse this datastream and display the data.

Without entirely repeating what is in the documentation, the Dashboard is comprised of 2 programs that must be open and running at all times. The first is the "Dashboard Read.VI", and it is this program that allows you to read packets from the Dashboard port on the Operator Interface (OI). To start and configure the "Dashboard Read.VI" program, do the following,
  1. Open the "Dashboard Read.VI" application.
  2. Press CTRL-R (or the LabVIEW "run" button)
  3. Make sure the "Read from Serial" radio box is selected in "Program Control"
  4. Make sure the correct COM port is selected under "Read from Serial Input"
  5. Press the blue "START PROGRAM" button (once you do this, the blue button should become disabled and the red "STOP PROGRAM" button should become selectable)
Once you've gotten this far, if you're processing packets you should see the "Number of Packets Published" indicator begin incrementing. You will also probably see the "Number of Buffers in Waiting List" indicator also incrementing since the "Dashboard Display.VI" isn't running. DO NOT close this running VI. If you do not see these two indicators incrementing (realize the "Number of Buffers in Waiting List" will eventually max out) then you either haven't selected the correct COM port or your serial cable isn't plugged into the OI "Dashboard" port (or your OI/RC aren't powered).

Now open the "Dashboard Display.VI" application (while leaving the "Dashboard Read.VI" open and running). All you should have to do here is press CTRL-R or the LabVIEW "run" button. Across the top of the VI are some very useful indicators:
  • Packet Processing Delay - This slider controls how fast LabVIEW attempts to poll the queue being filled by the "Dashboard Read.VI" application. Setting this to Zero is probably wasteful, as it will send processor utilization through the roof and slow down everything else in the system. A good value is 10-20, or whatever it takes to keep "# elements in queue" from running away.
  • Packet Number - This shows you the packet number as reported in the "Packet Number" byte in each of the frames received from the Dashboard. This number should be steadily increasing until it reaches 255 at which point it will reset to 0 or 1 (don't remember). Having this value constantly updating is a firm indicator that you're receiving packets.
  • # elements in queue - This indicator shows you how many packets are "queued up" waiting to be processed. The rate at which this number increments is a factor of how high you set your "Packet Processing Delay" and what processing you're doing to a given frame. If you set your "Packet Processing Delay" fairly low (10) you should be able to drop this value down to 1 and keep it there (for the most part). If the number maxes out (I forget the max-out value, maybe 512) then frames are being lost and thrown away by the "Dashboard Read.VI" and that is never good.
  • Team Number - This indicator shows the team number as reported by the OI. Displaying this piece of information was kinda tricky, so I demonstrated how to do this.
  • Frame Type - This is indicative of the types of frames being received by the OI. Realize that in order to get RC or OI Data Frames, you need to set the jumper on the OI to the necessary setting.

Let me know if this allows you to at least process general information. I am going to steal back my "test controller" from team 418 so I can do a short video tutorial on how to modify the dashboard for your own customization.

Quote:
Originally Posted by chakorules
What we have noticed:
1. Labview dashboard seems to be running continuously, and monitoring the block diagram in the background, we can see I guess what you would call a program "pulse" or bulge in the piping coming in simulation data flow, it arrives in the bigger frame on the right, then changes the top left and right arrow selectors to say "False". Common sense to me means the data came in, but didn't find a matching packet or "String" in that block and then went false.
Nope, what it means is that we're constantly polling the data queue that should be filling up with data frames from the serial port. The "boolean" conditional block is asking, "Is there valid data?" It will produce "true" when there is data to process, and "false" when there is none. My guess is that you forgot to start the Dashboard Read.VI program completely.

Please let me know if this helps to get you up and running.

-Danny
__________________
Danny Diaz
Former Lead Technical Mentor, FRC 418
Reply With Quote
  #5   Spotlight this post!  
Unread 07-02-2006, 14:53
kaszeta's Avatar
kaszeta kaszeta is offline
Registered User
FRC #0095 (Grasshoppers)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2002
Location: Lebanon, NH
Posts: 334
kaszeta is a glorious beacon of lightkaszeta is a glorious beacon of lightkaszeta is a glorious beacon of lightkaszeta is a glorious beacon of lightkaszeta is a glorious beacon of light
Re: LabView Dashboard

Our team started fiddling around with the LabView Dashboard under OS X, and while it's in general working well, we're finding that the execution is quite slow, and the number of buffers in the waiting list in Dashboard Read.vi keeps swiftly increasing, and as a result the Dashboard Display.vi starts to lag. Increasing Packet Processing Delay (I started with 5) just makes it worse.

This is on an OS X 10.4.4 1 GHz G4 laptop that's basically idle except for Labview.

Any ideas on speeding this up? The dashboard really isn't producing all that much data to be processed.
Reply With Quote
  #6   Spotlight this post!  
Unread 07-02-2006, 16:22
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 Dashboard

Quote:
Originally Posted by kaszeta
Any ideas on speeding this up?
I've made some performance improvements in the update I provided here, give it a shot if you haven't already. Turns out that in LabVIEW 8.0 if you have any "while" loops that could go on forever in your code that LabVIEW thread can potentially run out of control and can send processor utilization through the roof (i.e. there are no "blocking" calls that forces the loop to wait for "something to happen"). I noticed this on team 418's laptop that it was dreadfully slow because the while loops were eating so much of the processor - oddly enough I didn't have this problem on a comperable desktop, but then again you never see any problems when you're developing software just when it gets out into the public . I added "wait for millisecond multiple" VI's in each loop which caused the thread to block (or yield to other processes/threads) and this greatly enhanced performance on the machine (and thusly I submitted the update). I debated on whether or not to have the packet processing delay automatically start at 10 by having a "10 + packetprocessingdelay" in the code but that would honestly be arbitrary and might or might not be right on a given machine. Sure, the 100ms multiple I added was also arbitrary, but sometimes you have to just make a decision and live with it.

Let me know if the update helps. I can gain access to a Mac OS X 10.4.4 desktop here at NI for a bit (through the careful use of bribery) so if this doesn't seem to do the trick I can potentially see what else might need a little TLC.

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

Last edited by Danny Diaz : 07-02-2006 at 16:25.
Reply With Quote
  #7   Spotlight this post!  
Unread 07-02-2006, 16:41
kaszeta's Avatar
kaszeta kaszeta is offline
Registered User
FRC #0095 (Grasshoppers)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2002
Location: Lebanon, NH
Posts: 334
kaszeta is a glorious beacon of lightkaszeta is a glorious beacon of lightkaszeta is a glorious beacon of lightkaszeta is a glorious beacon of lightkaszeta is a glorious beacon of light
Re: LabView Dashboard

Quote:
Originally Posted by Danny Diaz
I've made some performance improvements in the update I provided here, give it a shot if you haven't already.
That's the version we're using.

Quote:
Originally Posted by Danny Diaz
Turns out that in LabVIEW 8.0 if you have any "while" loops that could go on forever in your code that LabVIEW thread can potentially run out of control and can send processor utilization through the roof (i.e. there are no "blocking" calls that forces the loop to wait for "something to happen").
I'll check the Activity Monitor tonight when I run it to see what's going on. I'll also probe around and see if I can find anything else that's going on, although my labview skills aren't what they used to be...
Reply With Quote
  #8   Spotlight this post!  
Unread 08-02-2006, 21:43
joshR515's Avatar
joshR515 joshR515 is offline
Josh's page
AKA: Josh Ritzman
FRC #0093 (NEW Apple Corp. )
Team Role: Electrical
 
Join Date: Jan 2006
Rookie Year: 2006
Location: appleton
Posts: 9
joshR515 is an unknown quantity at this point
Send a message via AIM to joshR515 Send a message via Yahoo to joshR515
Re: LabView Dashboard

Quote:
Originally Posted by brummer_13
I was worndering if anyone has gotten the dashboard in LabView to work
You should read the manual first and make sure you understand what it says. It gets easier as you go, I am a freshman and I got it to work on my own with no help from a mentor. All I did was read the manual a few times.
__________________
sleep is for the weak
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
Labview Video Tutorial? Dashboard Chris_Elston National Instruments LabVIEW and Data Acquisition 21 25-01-2008 00:29
Example LabVIEW Apps - Dashboard, CMUcam2 and Motors Russ Beavis National Instruments LabVIEW and Data Acquisition 9 21-01-2007 17:19
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 07:32.

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