Scripts versus Labview

July 19, 2006 at 11:05 am 2 comments

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!

Advertisements

Entry filed under: Technology.

My Super Sweet 16 – Aaron Reid The Last Swordsman

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! 😀

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

    Reply

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

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  

Recent Posts

Blog Stats

  • 34,830 hits

%d bloggers like this: