Labviewguru wrote:
> Sergey,
>
> This isn't just possible, it's been done.
>
> Pick up Gary Johsons's last book: Power Programming 3e. Starting in
> chapter 22, he and his coauthor discuss embedding a LabVIEW program
> into Linux on a PC104. This can also be done using Realtime Linux,
> though I believe you will be stuck with a 1ms resolution there, unless
> you use LabVIEW RT for linux or something to that effect.
>
> The only problem with this is that there is more overhead than
> necessary because LabVIEW has to run on top of a common operating
> system.
>
> With regards to the balance of the discussion, I have been doing a bit
> of research myself on writing a compiler for embedded and other
> systems, in order to create my own compact executables. Of course the
> problem is that this doesn't allow you to compile LabVIEW code, but
> rather compiles whatever instructions you would input into an
> executable or hex/machine code. This is a rather daunting task, and
> it would basically be the creation of a new programming language (or
> recreation of an old one.) I think this would be a great task for
> LabVIEW, but it would be a very niche product, with a very limited
> scope. Compilers are a dime-a-dozen these days, and most use a very
> common language: C.
>
> Like most of us, I too long to see the day when LabVIEW can compile
> compact executables containing all the necessary elements to run.
>
> By the way, I have seen Softwire. There is a reason NI isn't after
> them. First of all, it is beyond the scope of the Patents for
> LabVIEW. Second, that company will be out of business inside of a
> year or two. I received a sample of this software, and was completely
> unimpressed. The idea is nice, the implementation is pretty good, but
> it lacks some very important elements that LabVIEW has that many many
> people so often overlook, elements that also make C/C++ so damn
> difficult to learn. LabVIEW ships with a slew of example programs
> that show the user just how to solve some common classes of problems,
> and offers a base program for the user to expand upon. In the first
> few months of programming in LabVIEW, as I had no instruction, I
> relied heavily on these examples. If Microsoft Visual C++ or even VB
> contained the quality, variety, and number of examples that LabVIEW
> contains, I would have already learned VB and C++ by now.
>
> LabVIEW is more than just an easy programming language to learn, but
> it is also something that can be so much more. I have approached
> National Instruments on several occasions about making a version or
> adding the capability to create compact stand alone executables.
> Since I first approached them in 1999, I don't think they are that
> interested, as I haven't seen anything to date that indicates they are
> interested. LabVIEW is, and probably will remain, a niche language
> that is strictly an enabling vehicle for National Instruments' sole
> profit center: Hardware. Remember, people don't buy DAQ hardware to
> go along with LabVIEW, they buy LabVIEW to go along with their DAQ
> hardware...or at least that is what market research tells National
> Instruments...
>
> National Instruments doesn't want to be in competition with Microsoft.
> Microsoft makes software, and National Instruments (note the word
> "instruments" in the name...) makes hardware. LabVIEW is only there
> to make using the hardware easier.
>
> Maybe we'll get lucky and National Instruments will prove me wrong
> (gee, I sure hope so...I can't stand C/C++.)
Quite simply I find writing ordinary sequential code old fashioned.
C is as old as the hills- 1968? C++ may be newish but is a nightmare
to learn. I used to use Matlab a lot and Matrixx (after I dumped Fortran
77) - of these Matrixx
definately had the edge. They had a system called 'rapid prototyping'
where
a block diagram would generate code for a target microprocessor.
LabVIEW I think is a step above both of them and could indeed become
a general language to program in for many scientific and engineering
applications
at least. I remember when I first used C - I said to somebody who was
the 'expert' - 'right how do I get complex numbers'? - 'Oh', the reply
came - 'you will have to write your own functions'! I mean that is not
a high level language in my book!
The thinking is different in LabVIEW and at least they have type COMPLEX .
My experience is that students take to LabVIEW
like a duck to water and complain all the time about C++.
By the way - many maths people are still using Fortran! It would be great
to be able to program embedded systems in LabVIEW, the skies the limit.
Tom