![]() |
What is LabVIEW
What is labview? Thanks to anyone that can tell me.
|
Re: What is labview
Quote:
Labview is the programming software for National Instruments data aquisition and control systems. Its two claims to fame are that it is (1) a graphical programming system and (2) it sports a rather good user interface. However, you can find all this out for yourself with a quick Google query... Do you have a more detailed question? Mike |
Re: What is labview
Labview is normally used to automate electronic test equipment. You can connect power supplies, oscilloscopes, logic analyziers, pattern generators... all together with a PC, and set up test conditions, then use the measurement equipment to test a circuit board, or a complete system.
Its normally used to test electronics on a production line, to make sure things are working correctly before they are shipped to a customer. |
Re: What is labview
Our application for the pilot was based upon extensive mentor experience with LabView and the direction that our team is taking to increase development of autonomous functions. (Increased autonomous functionality through-out the match)
My question is to help me understand the pilot program equipment a bit more so that as lead teacher for the team I can direct resources and such more efficiently. How might the DAQ and LabView help us to tune a PID control loop on say a two segmented arm which has a mimic controller on the OI? My conception is that we won't have real time data to view as we test the prototypes rather we can download inputs from the RC mounted device and possibly match them up to values in the PID code...ideally I would want to watch sensor values and the code run in real time. But maybe I am completely off-base. Is the DAQ and LabView going to be used more for external data collection so that one has physical data of how the robot performed so that analysis and verification of predicted robot performance under load conditions can be made? I am familiar with automated data collection and seen a Lab View interface for science labs some 15 years ago so I am not a novice. Thanks a bunch, APS |
Re: What is labview
From the NI website: "NI LabVIEW is the graphical development environment for creating flexible and scalable test, measurement, and control applications rapidly and at minimal cost. With LabVIEW, engineers and scientists interface with real-world signals, analyze data for meaningful information, and share results and applications. Regardless of experience, LabVIEW makes development fast and easy for all users."
The most important thing to understand is that LabVIEW is a programming language, just like C, or Visual Basic, or Java. The big differences are that it is a graphical language, where the programmer creates applications by connecting graphical icons, similar to creating a spreadsheet, and then by defining various properties for the icons. The other difference is that it is one of the specialty languages that are specifically tailored for test & measurement applications, so it contains objects that specifically address connecting to data acquisition equipment, and for doing mathematical analysis. Right out of the box, LabVIEW (or any language) will not do anything until you create an application. The NI DAQ module does ship with a Data Logger application, that you can use right out of the box to acquire data to look at later. |
Re: What is labview
Quote:
To your specific question, you would provide a known stimulus and measure the response of the arm. For example, you might use a collection of switches and resistors to 'command' the arm to a specific position, and using the DAQ and LabVIEW, look at the actual positioning response of the arm. We've all seen the classic PID response curves - underdamped (oscillates), overdamped (takes too long to reach the position) and critically damped (just right...) - well, you'll be able to see that in real time, along with how 'much', allowing very quick and easy adjustments to the PID variables. For example. It gets even better, because during development you can use sensors that aren't 'legal' (or, for weight, might not be used in competition) to measure and characterize every aspect of the machine's operation, allowing optimization. Ideas:
It looks to be awfully exciting. Don |
Re: What is labview
Quote:
Quote:
Quote:
Quote:
There are a lot of uses for this that haven't even been considered yet! -Danny |
Re: What is labview
Quote:
|
Re: What is labview
Quote:
In a sense you're right, Andrew. You really do want to watch the data flow coming from the IFI controller, but it's also nice that you can inject data with the DAQ device as well. Let's look at a couple scenarios that lead up to something I think is the best thing since the IFI breaker panel. Scenario 1: I have written some dead-reckoning autonomous code, and I want to be able to see when the code I have written actually tells the motors to start and stop; I think I've timed the start/stop correctly (based on initial estimates of how fast the robot travels), but I am unsure. There are two ways to do this; one would be with the IFI or LabVIEW Dashboard, and the other would be to monitor the PWM signals themselves with the 6009 DAQ device - of course I want to use the DAQ device since it's the one that will allow me to cut additional wires and write some LabVIEW code (yes, for this example it's overkill but follow with me). Once you've connected the DAQ device to the PWM signal driving the motor (you don't even need the motors here, just the IFI controller) you can write a simple LabVIEW program that will display the PWM signals acquired from the DAQ device to a strip-chart. I can then start my autonomous mode on the IFI controller and see how long the signal is applied to the motors and at what "percentage", and that can help me determine if my code is timing the autonomous properly. I can then tweak my values once the robot is ready, but at least now I have code that I have verified is working properly. Scenario 2: I've decided that I want to use sensors since all the dead-reckoning business is making my head hurt. I don't really know what kind of signals I'm going to get from a Hall-effect sensor or a gyro since I've never used them before, so before I write a bunch of code I want to find out what sensor values I'll get and log some sample readings. So, I connect the Hall-effect sensor (or the gyro or whatever your sensor of choice happens to be) to the DAQ device (as per the instructions with the sensor), write a simple LabVIEW program to gather its data to a strip-chart, and save the data to a file (so we can reference it later or share). I play with it until I am satisfied I know what the sensor data looks like under various conditions - for the gyro and other sensors, I can even prototype code in seconds to figure out the best algorithm for working with that sensor. Now I have mastered the sensor! Scenario 3: OK, so now I have replaced the lame dead-reckoning code with some code to use a Hall-effect sensor watching a wheel sprocket but I'm unsure my code will do what I want it to do. Now I roll up my shirt sleeve and get a little down and dirty. I connect the appropriate DAQ inputs to the PWM outputs on the RC, but I also connect the appropriate DAQ outputs to the appropriate analog/digital inputs on the RC. I use LabVIEW in the same manner as I did before to gather motor/PWM data into a strip-chart, but I also tell LabVIEW to generate a signal that mimics my Hall-effect sensor (or other sensors) and to output that signal to the DAQ outputs (I also want to view this data with a strip-chart as it's being output to the RC). I add a little bit of smarts to my LabVIEW code so that it will begin outputting the generated sensor data only when the motor has been turned on, and stop outputting the signal once the motor is turned off. This way I can start up my autonomous code and watch the RC react to the sensor data from the simulated Hall-effect sensors. Does my robot stop after N number of pulses? Yes! I've just unit tested a portion of my autonomous code without having any physical robot hardware attached to the RC! Once I have my robot, the values can be tweaked for optimum performance. This is just an extremely simple example of what you can do with the NI USB-6009 DAQ device and the IFI RC, but hopefully you are able to extrapolate this use-case to larger projects for your team. -Danny |
Re: What is labview
Quote:
Eric |
Re: What is LabVIEW
There is a version of Labview called RoboLab written for the Lego RCX brick.
I believe this has always been included as part of the FLL distribution, and can be obtained separately from Dacta for under $50 (I think). Robolab was witten by Tufts University under a NASA Grant. I believe our own Jeff Seaton (National MC and NASA guy) was responsible for awarding the grant. Any way you can get a good introduction to Labview for very little $$$. I don't think LabView would be suitable for FRC, heck - you guys need to learn C eventually!!!! :D If you google "tufts sensors NASA" you should get to the site. |
Re: What is LabVIEW
LabVIEW is a great program made by a company that stands behind their product. The hardware is also the best in the industry and relatively inexpensive, but the software is not. Both have been around a long while.
It is rumored that Microsoft purchased the Windows name from National Instruments. I use it every day, and love it. |
Re: What is LabVIEW
Quote:
Quote:
-Danny |
Re: What is LabVIEW
Quote:
Quote:
-Danny |
Re: What is LabVIEW
Quote:
-Danny |
| All times are GMT -5. The time now is 00:16. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi