|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||
|
|||
|
Question about using labView in FRC
In order to simulate my robot in labView, am I supposed to somehow connect my robot controller to the computer?
I mean, do I have to have the USB 6009 DAQ (it's not included in the kit of parts for FRC from what I understand). Last edited by itsme : 13-01-2007 at 14:58. |
|
#2
|
||||
|
||||
|
Re: Question about using labView in FRC
Hello,
I have the same question, but I'd like to expand a bit. In the FRC Software overview manual, it says this about the toolkit: This robot modeling and simulation toolkit allows teams to prototype, develop, and test robot code on the FRC Robot Controller without the need of a robot. Unfortunately, the only place that the same manual says to go for info is the NI LabVIEW FRC robot modeler thread in the Chief Delphi forums. At that thread, all replies are closed. The thread had several nice links, but none of the links give any indication about how to use LabVIEW as a standalone simulator. The tutorials have track A, B, and C and track B is supposed to be for simulation. However, it indicates that NI-DAQ needs to be installed and that does not come with the trial software that can be downloaded from NI (the one that is linked to from the LabVIEW thread here at Chief Delphi). The LabVIEW thread does say to download and install NI-VISA, but it doesn't say how that helps or what to do with it. If you install and run LabVIEW, there is no indication on how to pull up the FRC simulation kit. If you use browse, you have to dig around quite a bit in order to find the stuff from the Zip file. Once you find it, the installation test with no dashboard does load- thank God. However, the Simulation Envirnonment - no dashboard won't load because it can't find a missing DLL. Also, I'm still trying to figure out how LabVIEW is supposed to simulate the cmucam2. I've downloaded stuff from NI, from kevin.org/frc, from the Chief Delphi forums and it's still not obvious to me where the cmucam2_demo.llb should be placed or what to do to pull up the camera simulation from within LabVIEW. I'm not trying to rant here, I'm just looking for help and want you to know that it's not for lack of effort on my part. Any advice would be appreciated. Last edited by michael714 : 14-01-2007 at 16:03. |
|
#3
|
||||
|
||||
|
Re: Question about using labView in FRC
Ok, just answered my own question about the cmucam2_demo.llb file. Found it at NI and also by searching through Chief Delphi. At NI, you can find it here:
ftp://ftp.ni.com/pub/devzone/epd/lab...pp_1-15-06.zip There's a file with a newer date somewhere here at Chief Delphi, but I can't remember how to find it. Once I downloaded it and extracted it from the Zip, I could tell that it was associated with LabVIEW, so I just double clicked on it and all the cmucam2 .vi files became available to LabVIEW. I'm still not sure what to do with them, but at least I can now simulate the camera in LabVIEW. Cool! Again, what I'd like to do is simulate the camera in LabVIEW. The .vi files seem to be setup to allow me to pull data from the real cmucam2. Is there a way to simulate the camera and simulate the target lights? mw |
|
#4
|
||||||||
|
||||||||
|
Re: Question about using labView in FRC
I would like to respond to this thread in pieces, hopefully this will be okay...
Quote:
Quote:
What the tutorial doesn't really go through in detail is how the toolkit can be configured -
The tutorials tell you how to use the USB-DAQ in the first tutorial. The second tutorial tells you how to use the LabVIEW FRC simulator toolkit with the Dashboard. We're working on additional examples to show you how to integrate the USB-6009 to feed signals to the robot controller. Quote:
Quote:
Quote:
Quote:
Quote:
We do have LabVIEW modules (released last year) to help you familiarize yourself with the camera, and if you're using EasyC you can use the LabVIEW module to create a definition file to configure your camera in your code, but we do not have anything to help you simulate using the camera. Quote:
Thanks! -Danny |
|
#5
|
||||
|
||||
|
Re: Question about using labView in FRC
Thanks Danny. Your responses made the situation much more clear. There were two things that mislead me into believing that the LabVIEW software would allow us to work as a standalone simulator. One the statement in the software oveview which basically says, "you can use the LabVIEW software as a standalone simulator" and, two, the fact that FIRST sent us the LabVIEW software with no DAQ cable.
Fortunately, a local IEEE member says he has a USB 6008 cable that we can borrow and I'm going to see what I can do to use our Vex USB/serial converter cable for interfacing between our LabVIEW computer and the FRC dashboard. Also, thank you for pointing out where in the tutorial to look for the info about using the FRC toolkit by itself with no dashboard and no DAQ- regardless of it's utility. I did go through the PowerPoint tutorial and the PDF tutorial, but I only started the video tutorials because they said you had to go through the PowerPoint first. And, in the PowerPoint, I couldn't figure out how to set LabVIEW up to actually go down Track B (simulated input). I still think that it would be nice to be able to set LabVIEW up as a pure simulator, if for no other reason than being able to get used to it without having to have the robot present. Again, thanks for your help. |
|
#6
|
|||||
|
|||||
|
Re: Question about using labView in FRC
Quote:
. The second is one that I'm not really following - why do you need a DAQ cable without a USB-DAQ device? From the rest of your explaination (esp. the part about the 6008) you probably mean the full device and all, since the cable on the DAQ is just a regular USB cable... The 6008 will work fine for the modeling toolkit; unless you're analyzing sensor feedback from a real sensor you shouldn't need the resolution and data rates of the 6009 (48kS/s on the 6009 versus 10kS/s on the 6008). And as far as that's concerned, you could even use the IFI RC itself with LabVIEW to model the sensors - one of the user bytes updates at 40Hz, which might be enough to get at least an *idea* of what the sensor is doing; the DAQ allows you to see the sensor output at a much finer resolution. Quote:
Quote:
Quote:
-Danny |
|
#7
|
|||
|
|||
|
Documentation for LabView Simulator
First, is there any written documentation - even just based on the videos ? When might the 3rd video tutorial be coming along ?
As I build up my robot with the various components provided for the simulator I'm left with a few questions, the are: Is there anywhere on-line where I would find some reasonable parameters for the kit motors? I'm attempting to simulate a robot arm and I'm not sure on to include the dynamics for the arm into the simulation. How would I do this. Rob Steele |
|
#8
|
|||||
|
|||||
|
Re: Documentation for LabView Simulator
Quote:
Quote:
Quote:
-Danny |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| LabVIEW Robot Modeler / Simulation Kit for FRC Teams | Danny Diaz | National Instruments LabVIEW and Data Acquisition | 4 | 17-10-2008 13:32 |
| Question about the LabView | itsme | LabView and Data Acquisition | 2 | 07-01-2007 20:16 |
| Serial Communication Problems with LabVIEW FRC Toolkit | Jon236 | LabView and Data Acquisition | 1 | 28-12-2006 11:57 |
| Using the Example LabVIEW Apps | Amin | National Instruments LabVIEW and Data Acquisition | 1 | 24-01-2006 08:51 |
| Question about using the "brake" on the 884 | Caleb Fulton | Electrical | 6 | 12-03-2003 13:51 |