|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools |
Rating:
|
Display Modes |
|
|
|
#1
|
||||||
|
||||||
|
Re: please some tell me how to start programing in labview
So 2 years ago, when I discovered that we had zero programmers on my new team, I went through the EasyC tutorial in about an hour, and about 2 hours later I had all the code written to drive and operate the robot. I loved EasyC because it allowed me to teach programming logic (which I understand) to the students (who had never been exposed to it) without stumbling through syntax of a new language.
I have never used Labview, but I quickly glanced at some of the online tutorials and it appears to be kinda sorta like EasyC as far as drag and drop is concerned. Can I expect to figure it out in a couple of hours and teach my new students logic in the same way, or should I start taking my C++ books to bed with me at night and put Mike Walker's cell phone on speed dial? |
|
#2
|
||||
|
||||
|
Re: please some tell me how to start programing in labview
Gary: As Marshall [kamocat] said above, you should definately create some type of practice project for youself first, and then you should be able to recreate and advance it different ways to where you can easily explain it to your students. I personally created several different things including mapping an old usb joystick and using it to find the angle/direction/speed that it would drive different drivetrains should it be used later. This should be fairly easy for you if you are familiar with EasyC. There are several tutorials on here [no links atm] that tell you to create something such as a 'working' vending machine. After that, syntax and logic should be easily passed on to the students.
As far as writing code for the robots, you have to remember that WPI is creating a whole series of ... [the word escapes me but they are basically functions] that will aquire joystick and sensor values from the robot through cRIO. this is a horrible explanation of what they are but as long as you know you won't be dealing directly with writing code to get them. ~~Burmeister~~ Last edited by Burmeister #279 : 17-11-2008 at 15:17. |
|
#3
|
||||||
|
||||||
|
Re: please some tell me how to start programing in labview
Quote:
Unlike EasyC, LabVIEW is a real programming language (technically, G is the language). That means that there is syntax to know, it just looks different. Instead of complaining that you missed a semicolon, it will complain that you missed a wire. LabVIEW generally has good error messages too, which helps. I never used EasyC, though, so I can't make a real direct comparison. If you haven't already, you should check out the video tutorials the NI has been posting on their FIRST Community. The Joystick Motor Control in 10 Minutes Tutorial should give you an idea of the minimum needed, and some of the other ones will demonstrate things more advanced. No matter what route you choose, it's always a good idea to keep Mike Walker's cell phone on speed dial. |
|
#4
|
||||
|
||||
|
Re: please some tell me how to start programing in labview
Is there a toolkit available to help with first robotics? If so, where can I download it. Is there much programming you can do without it?
![]() |
|
#5
|
||||
|
||||
|
Re: please some tell me how to start programing in labview
As of yet, the toolkit is not released to the public. There ARE help files for this toolkit published, but don't expect the toolkit until December, when the control KOP is shipped out. (Unfortunately, this probably means you get the cRIO for christmas, not Thanksgiving. I really hope they don't pick a low-priority shipping; All I want for christmas is a cRIO.)
|
|
#6
|
||||||
|
||||||
|
Re: please some tell me how to start programing in labview
Thanks for the advice.
My new team had its first mentors meeting tonight; guess who got pegged to be the software guy? Yep. And by the way, I don't need to put Mike's cell on speed dial. I've had it there for years. |
|
#7
|
|||||
|
|||||
|
Re: please some tell me how to start programing in labview
Quote:
If you start with the understanding that the LabVIEW graphical programming language is a different kind of language altogether, you'll be able to get comfortable with it much more easily. The fundamental thing to keep in mind is that it's data which controls execution, not program structure per se. Each block is trying to execute simultaneously, waiting for its input to be available before doing its job and providing an output. Unlearn what you know about procedural languages and embrace the goodness that is LabVIEW. That's my commitment for this season. Fortunately, LabVIEW for FRC will come with a wealth of applicable examples and tutorials. The brief glance I had at it last weekend gives me a very warm feeling about how well we will be able to use it. |
|
#8
|
||||
|
||||
|
Re: please some tell me how to start programing in labview
You can go onto http://www.education.rec.ri.cmu.edu/...view/index.htm and they have lots of tutorials on how to do stuff
|
|
#9
|
|||
|
|||
|
Re: please some tell me how to start programing in labview
I still think the best analogy for Labview is to think signal processing and electronic board layout. Digital and analog in to digital / analog out. What you put in Labview are amplifiers, comparators, conditional signals and many advanced functions to make your outputs.
|
|
#10
|
||||
|
||||
|
Re: please some tell me how to start programing in labview
Wow
That's a really good way of thinking about it. Here we have our reprogrammable hardware (FPGA), and we're programming it like true hardware (an electronic diagram). We could even go so far as to say arrays are our ribbon cables. |
|
#11
|
|||
|
|||
|
Re: please some tell me how to start programing in labview
If these are useful to get you started, great, but there are big differences, specifically LV processes discrete chunks of data in a synchronized fashion. It is somewhat more like a digital circuit with clocking and enabling controlled by the dataflow needs.
Greg McKaskle |
|
#12
|
|||
|
|||
|
Re: please some tell me how to start programing in labview
I know how to start programming in Labview, but I'm looking for info about doing advanced stuff like inter-task communication (eg, semaphores).
Is that included in the book, "Labview For Everyone"? If not, can anyone recommend a book that covers it? Thanx. --Annette |
|
#13
|
|||
|
|||
|
Re: please some tell me how to start programing in labview
Run the benchtop control system test to make sure everything is working and set up correctly. Then start with very very simple programming tasks and work your way up. Look for concrete examples in the manuals. I found some in WPI's C/C++ Programming Guide. Even if you are using LabView, these examples are still relevant since you will be using the same WPI functions to get the job done.
|
|
#14
|
||||
|
||||
|
Re: please some tell me how to start programing in labview
Yep, that's in it. Beginning of Chapter 13, I believe. It also covers state machines, queues, locked resources, local and global variables, and some other cool stuff.
Unfortunately, the book is around $70 (I don't know why they never make $25 textbooks) |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Tell me what you have (in games), please. | 842.001 | Games/Trivia | 21 | 30-10-2006 15:05 |
| can anyone please tell mw where or with what can i lear programing in C | techsage | Programming | 7 | 23-08-2005 00:25 |
| Tell me why I'm wrong. Please... | archiver | 1999 | 6 | 23-06-2002 22:28 |
| Please start posting comments/suggestions | Ken Leung | CD Forum Support | 9 | 06-05-2002 16:57 |