Go to Post ...isn't that part of the point? For high schoolers to do things they "could not have" by themselves? - AdamHeard [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: 4 votes, 5.00 average. Display Modes
  #1   Spotlight this post!  
Unread 21-04-2008, 15:58
JillianM JillianM is offline
Registered User
FRC #2081
 
Join Date: Jan 2008
Rookie Year: 2007
Location: Illinois
Posts: 2
JillianM is an unknown quantity at this point
Using LabView to Simulate the Robot without the DAQ

My team does not have the DAQ but we are still interested in testing our software using LabView as a simulator. Is this possible? It looks like the VIs provided all require the dashboard, and the tutorials talk about using the actual joysticks. This is trouble for us because the electrical team has all the sensors and joysticks, etc as they prototype and design the electrical system. This leaves the software team with only a laptop to write software and a copy of LabView.
Reply With Quote
  #2   Spotlight this post!  
Unread 21-04-2008, 20:54
programMORT11
 
Posts: n/a
Re: Using LabView to Simulate the Robot without the DAQ

What do you mean by simulation? If you want to test out your values, just make a variable, p1_y_test or whatever and equate that to the output from your math.
Reply With Quote
  #3   Spotlight this post!  
Unread 22-04-2008, 09:53
JillianM JillianM is offline
Registered User
FRC #2081
 
Join Date: Jan 2008
Rookie Year: 2007
Location: Illinois
Posts: 2
JillianM is an unknown quantity at this point
Re: Using LabView to Simulate the Robot without the DAQ

We'd like to run our code (say the autonomous portion) and check for run-time errors. Is it stepping through the code as expected? Are values being reset or set as expected? Will it run at all? We can worry about the proper values (like the distance to the end of the straightaway, or how far to turn) when we test on the actual robot. Since our time on the robot is limited though, we'd like to do all the preliminary bug finding in LabView.

The VIs provided seem to be dependant on the DAQ and dashboard. Am I wrong about this? The description talks about hardware-in-the-loop testing. If I don't have the hardware (since another part of our team is using it), then I need another way to test the software. One of the NI spokesmen in Atlanta said I should be able to do this, but he didn't know how. Has anyone ever tried?
Reply With Quote
  #4   Spotlight this post!  
Unread 22-04-2008, 10:54
JesseK's Avatar
JesseK JesseK is offline
Expert Flybot Crasher
FRC #1885 (ILITE)
Team Role: Mentor
 
Join Date: Mar 2007
Rookie Year: 2005
Location: Reston, VA
Posts: 3,624
JesseK has a reputation beyond reputeJesseK has a reputation beyond reputeJesseK has a reputation beyond reputeJesseK has a reputation beyond reputeJesseK has a reputation beyond reputeJesseK has a reputation beyond reputeJesseK has a reputation beyond reputeJesseK has a reputation beyond reputeJesseK has a reputation beyond reputeJesseK has a reputation beyond reputeJesseK has a reputation beyond repute
Re: Using LabView to Simulate the Robot without the DAQ

To simulate the hardware (e.g. a Gyro) you could have a knob or slider that represents the sensor input. When you hit run in Labview, at the appropriate times you can manually move the knob to simulate the robot's feedback (e.g. move the knob to the gyro's equivilant value of -90 degrees to simulate a left turn). I would then recommend setting up a few graphical outputs that show what the motor outputs are.

It will be hard to fine-tune any PID control with this method, but it should at least be able to expose any errors. I'm going to play with Labview tonight for the first time in a few years, so I'll see if I can give you more details then.
__________________

Drive Coach, 1885 (2007-present)
CAD Library Updated 5/1/16 - 2016 Curie/Carver Industrial Design Winner
GitHub
Reply With Quote
  #5   Spotlight this post!  
Unread 22-04-2008, 11:23
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: Using LabView to Simulate the Robot without the DAQ

Quote:
Originally Posted by JillianM View Post
The VIs provided seem to be dependant on the DAQ and dashboard. Am I wrong about this? The description talks about hardware-in-the-loop testing. If I don't have the hardware (since another part of our team is using it), then I need another way to test the software. One of the NI spokesmen in Atlanta said I should be able to do this, but he didn't know how. Has anyone ever tried?
I'm the one who initially designed the LabVIEW simulation toolkit for the IFI system, so maybe I can be of some help here.

The whole business with needing the DAQ and the Dashboard and all the bells and whistles that came with it was because we didn't have any kind of access to the software running on the PIC on the IFI system. We were forced to treat the IFI system as a "black box," with the exception of having the dashboard for SOME semblance of being able to peek at what was going on in there. We couldn't "fake" data being used on the IFI controller via any natural mechanism, so I was forced to use the USB-DAQ device to generate the "fake" data with LabVIEW to provide to the IFI system. That way we could test code running on the IFI system and provide the necessary "stimulus" that the software/hardware expected, and then we used the Dashboard to give us an idea about what the "result" of the "stimulus" was.

Using the cRIO with LabVIEW (or the C/C++ interface for that matter) is going to be much simpler since we actually have access to the code on the cRIO device. We have the ability to throw breakpoints on the code. We have the ability to single-step through code. And, if you want to, you can easily rig up a simulation "platform" for your code and run your FRC code on your laptop - as long as you provide the necessary inputs/data via front-panel objects (dials, sliders, numeric inputs, boolean buttons, etc...). We're working with top institutions to provide the best tutorials and documentation we can for this system, targeted to this audience. I think you'll be pleased.

-Danny
__________________
Danny Diaz
Former Lead Technical Mentor, FRC 418
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 the robot without a tether Hiromi Technical Discussion 3 05-10-2007 08:37
Using the Robot Simulation Toolkit to simulate OI Controls JimGRobot LabView and Data Acquisition 1 17-03-2007 04:14
Office Hours for LabVIEW and DAQ support Danny Diaz LabView and Data Acquisition 4 18-01-2007 15:45
Using the Example LabVIEW Apps Amin National Instruments LabVIEW and Data Acquisition 1 24-01-2006 08:51
Ideas for using the NI USB-6009 DAQ device Andrew Schuetze National Instruments LabVIEW and Data Acquisition 0 05-01-2006 22:55


All times are GMT -5. The time now is 18:34.

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