Scripts versus Labview

July 19, 2006

People have always been asking tHim what she has been doing for the past few months. Well, I tell them that I have been working on programming this Bluetooth device in Labview and everyone will go, what? So I decided to do a really short write up on what Labview really is.


Think about script languages such as Java, C++, Handel-C etc, when we want to write an If-then-else statement, we always do this:

If <condition>

then <predicate>

else <predicate>

Where condition is something the statement must satisfy while predicates are statements that will be carried out as accordance to how the condition is satisfied.

In Labview, which is essentially a graphical programming language, i.e. you draw diagrams to program, you literally draw the the If-then-else statement with your mouse.

Look at this picture: (Click to enlarge)
Labview Screen Shot

This diagram translates to => if (isSPP==true) then UUIDin=UUIDout && Channelin=Channelout;

You see your variables as rectangles on the left side of the canvas and on the right side, you contain your predicates within the square (which they call a “case loop” but is in essence an If-then-else equivalent), connect a boolean variable to the square and presto, you have your if-then-else!

Easy peasy but can be a tad confusing for people who are used to writing scripts.

Now you guys know what’s Labview!

Entry Filed under: Technology. .

2 Comments Add your own

  • 1. Mike Jones  |  July 31, 2006 at 10:31 am

    Very good.
    I am new to LabView and had no idea how to implement an if then statement in it.
    LV help is very good, but I could not find the answer.
    Thanks

    Reply
  • 2. thimerosa  |  August 2, 2006 at 9:18 pm

    Nice that it helped! :D

    Good luck with labview.. it’s a tad difficult sometimes….

    Reply

Leave a Comment

Required

Required, hidden

Some HTML allowed:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <pre> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Trackback this post  |  Subscribe to the comments via RSS Feed


 

July 2006
M T W T F S S
    Aug »
 12
3456789
10111213141516
17181920212223
24252627282930
31  

MyBlogLog

Recent Comments

niels on Dummy’s Guide to Setting…
harish on How I set up AODV with Openwrt…
thimerosa on Dummy’s Guide to Setting…
thimerosa on How I set up AODV with Openwrt…
abghassen on How I set up AODV with Openwrt…

Recent Posts

Archives

Categories

Blog Stats