|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||
|
|||
|
Re: Advanced LabVIEW programming?
I found corroborating evidence that OOP wasn't enabled on RT until the 2009 edition. Oops.
http://zone.ni.com/devzone/cda/tut/p/id/3573 Greg McKaskle |
|
#2
|
||||
|
||||
|
Re: Advanced LabVIEW programming?
Hi,
I ended up getting really busy after posting on this thread, and then totally forgot about it. The recent bump brought it back into my attention. Quote:
One of the principles of OOP in LabVIEW is to make nearly everything a subVI. If you need data out of the OOP wire, you use a specialized subVI. (Accessor) All methods can be made into subVIs. I especially force this when working with specialized code like database calls, or any kind of math algorithm. These can change often, so if they are subVIs, it makes it to modify later. Different "Objects" would each be a separate class. For example, the vision system would have it's own class. Acquiring test images, might come from a web camera on your laptop. The testing web camera, and the robot camera would each be a child class of the vision class. (This is starting to get into dynamic dispatching, which should be in a different thread.) In particular the various physical devices that you are controlling would each be a different class. For Example:
Quote:
Quote:
Unfortunately the only solution for this year is to get faster computers. I didn't actually see much a problem in this area for FRC on my laptop, even though I was using a virtual machine to code in. (I have an i5 at 2.4GHz and at the time 4GB of RAM)
Quote:
Nested Loops, except in very distinct cases, are usually very bad practice. Unfortunately it is way too easy to do. Generally junior programmers will do this when they don't know about the framework that they are working within. This applies to FRC and the professional world. Last edited by SuperS_5 : 27-10-2011 at 09:06. |
|
#3
|
||||
|
||||
|
Re: Advanced LabVIEW programming?
On a happy note, we are using Labview 11 for the beta test and are very pleased with the run, build, and deploy times. The first time you build and run as startup is the same speed as the old software, but after that it seems to go VERY fast (perhaps not bothering to build and deploy unchanged files). It's a nice change.
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|