May
07

Tomi’s NIDays 2008 Presentation

by Tomi Maila, May 7, 2008 at 12:01 am
1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading ... Loading ...

NI Days logo
I’m giving a presentation on LabVIEW Object-Oriented Programming at NIDays 2008 in Helsinki today. The presentation is titled Software Development with LabVIEW Object-Oriented Programming. The slides for the presentation as well as the presentation related example application can be downloaded below.

Download NIDays 2008 Presentation Slides


Drawing Tool 1.0

604.7 KB
You must be logged in to download this item!
Please login or register now.

Discussions in English | Finnish

Print This Post Print This Post
Mar
18

ExpressionFlow opens discussion forums in affiliation with LAVA

by Tomi Maila, Mar 18, 2008 at 12:45 pm
1 Star2 Stars3 Stars4 Stars5 Stars (3 votes, average: 5 out of 5)
Loading ... Loading ...

EF_LAVA_balloons

I’m very excited to announce, that to celebrate its first anniversary, ExpressionFlow opens discussion forums in affiliation with the world’s number one independent LabVIEW community LAVA (LabVIEW Advanced Virtual Architects). The new forums will provide ExpressionFlow readers a rich environment for lively discussions and a convenient channel for ExpressionFlow product related support requests.

All our readers can participate in discussions on ExpressionFlow forums. A free LAVA user account registration is required. Anyone with an existing LAVA user account can already participate in the discussions on the forums.

To navigate to the ExpressionFlow forums, click on the forums tab on the top menu just below the ExpressionFlow logo. I welcome all ExpressionFlow readers to participate in the lively discussions on the ExpressionFlow forums.

Print This Post Print This Post
Mar
18

ExpressionFlow celebrates its first anniversary

by Tomi Maila, at 11:56 am
1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading ... Loading ...

EF_balloon3 Exactly one year has passed since my first post to ExpressionFlow on March 18th, 2007. The first year has been very exciting. My first initial intention was to found a blog as a channel to publish my LabVIEW and visual programming related concepts and ideas. I started by introductory posts on then recently released LabVIEW object-oriented programming [1,2,3,4,5]. On May 2007 long time LabVIEW veteran Rolf Kalbermatter from CIT Engineering joined me as an author and posted an extremely interesting article series External code in LabVIEW [6,7,8]. On July the number authors grew by one as Anthony Lukindo from MezIntel joined the ExpressionFlow authors. Also he has posted very interesting articles on using MS SQL Server with LabVIEW [9,10] and on LabVIEW queued state-machine architecture [11]. On July I posted my first video blog post LabVIEW Object-Oriented Programming Introductory Walktrough. The article comparing Erlang and LabVIEW concurrency models was a success and got a rather nice position on Reddit Programming. Inspired by this success ExpressionFlow recently released Active VI Toolkit that provides Erlang style concurrency model for LabVIEW developers.

I would like to thank all ExpressionFlow readers and authors for this tremendous year. I hope you have enjoyed the past year as much as I have. I wish you enjoyable moments with us for the forthcoming year.

Tomi Maila
Editor in Chief

Print This Post Print This Post
Feb
29

Active VI Toolkit public alpha - Erlang style message passing concurrency toolkit for LabVIEW

by Tomi Maila, Feb 29, 2008 at 4:54 pm
1 Star2 Stars3 Stars4 Stars5 Stars (5 votes, average: 4.4 out of 5)
Loading ... Loading ...

Active VI Toolkit logo ExpressionFlow today announced a public alpha release of Active VI Toolkit, an Erlang style message passing library for development of concurrent LabVIEW applications. The toolkit provides easy-to-use LabVIEW language abstractions for writing concurrent applications based on message passing between parallelly executing VIs. ExpressionFlow Active VI Toolkit greatly simplifies the authoring of highly concurrenct LabVIEW applications.

Download now!

Background

A few months ago I compared the LabVIEW and Erlang concurrency models in my article Two Paths to Concurrency - Comparing Erlang and LabVIEW. Whereas Erlang concurrency model provides means to write highly concurrent highly scalable applications, LabVIEW dataflow model allows very easy ways to write concurrent applications taking advantage of a few processor cores.

Active VI Toolkit is a research project, whose aim is to find the best way to fit Erlang style concurrency model into LabVIEW so that LabVIEW developers can take advantage of both concurrency models depending on their needs. The main design goal in the development of the toolkit so far has been simplicity of use. To reach this design goal, the toolkit tries to utilize existing LabVIEW language aspects as well as possible; the intention is not to reinvent the wheel.

The Active VI Toolkit consists of two modules, the Active VI Toolkit module and a One-Time Store module. Active VI Toolkit module provides language abstractions for message passing whereas One-Time Store module provides language abstractions for returning values as response to received messages.

Active VI Toolkit basics

The Active VI Toolkit is based on a concept of parallely executing VIs (LabVIEW functions) called Active VIs. When a new Active VI instance is created, the connector pane connected controls are initialized in exactly the same way as in a normal subVI (function) call. When an Active VI instance is created, a new thread is spawned that will execute the Active VI. Or to be more precise, a new parallel VI is executed that will call the Active VI.

After the Active VI has been initialized and started, it can usually execute some internal initialization procedures and then start waiting for messages in a loop. The messages can be send to the Active VI with a Send Message to Active VI node. The messages are identified by label and type of some wire connected to type type input of the node. The messages are passed to Active VI as value change events of Active VI front panel controls and can received with a LabVIEW event structure.

When an Active VI needs to be stopped, it’s sent a special Close message with some timeout value using a Close Active VI node. If the Active VI cleanly closes within this timeout, the values of Active VI connector pane indicators are passed to the VI requesting the Active VI to close, otherwise the Active VI will be aborted.

The very basics of creating an Active VI, sending a simple message to an Active VI and Closing an Active VI can be seen in the figure below. The first node on the left creates a new Active VI instance from a strict static VI reference and initializes with string value expressionflow.com. The second node sends a message My Message of type I32 with value 7 to the Active VI. The third. node requests the Active VI to close with infinite timeout and returns the value of the error out indicator on the Active VI connector pane.

Creating, sending message to and closing an Active VI

Writing an Active VI itself is very simple. What is practically needed is some connector pane connected controls and indicators to pass initialization data and return values to and from the Active VI. In addition one needs some controls that define the supported messages and a event structure to handle the receiving of the messages. Usually one also wants to have a while loop to receive more than one message only. Nothing else is needed. A simple Active VI block diagram is illustrated in the figure below.

Basic Active VI block diagram

A basic library that ships with Active VI Toolkit is One-Time Store Toolkit. One-Time Store is a by-reference type that can store a single value of chosen type. It is very similar to a LabVIEW single element queue. However, once the value of the One-Time Store is set, it can never be modified again. In computer science terms One-Time Store is a dataflow variable. However I chose not to use this term as it might confuse LabVIEW users that usually think of dataflow in a little different way.

One-Time Stores can be used as place holders for asynchronous replies to sent messages. The figure below illustrates initializing an empty One-Time Store of string type and sending the One-Time Store reference to an Active VI within a message. After the message is sent, the sender can start waiting for a value of the One-Time Store to be set by the Active VI. In the figure the One-Time Store is immediately destroyed after the value is received. However this doesn’t need to be the case.

Using a One-Time Store as a place holder for a response from an Active VI

From Active VI point of view, replying to this message is simple. To respond to the sender only needs to set the One-Time Store value. Receiving the message in the above image and replying to it is illustrated in the image below.

Active VI responding to a message using a One-Time Store reference

Conclusions

In this post I covered the very basics of Active VI Toolkit. The Active VI toolkit is much more powerful a toolkit that is directly evident from this post. I left some aspects and properties of the toolkit out of this post and will discuss about them in my later posts. Also note that the Active VI toolkit is currently at alpha pre-release version targeted for mainly for concept testing and public discussion.

I’ll soon post follow-up articles on more advanced features of the Active VI toolkit. Meanwhile download the Active VI toolkit from and play around with it and provide us feedback. I especially appreciate feedback on the concept itself and how it could be made better.

Download now!

Print This Post Print This Post
Feb
01

Will Microsoft’s bid for Yahoo! have an affect on visual programming

by Tomi Maila, Feb 1, 2008 at 10:53 pm
1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading ... Loading ...

Today’s big news is that Microsoft made a $44.6bn takeover bid for Yahoo! And I thought Yahoo! was so 90’s.

If the deal goes ahead, will it have implications related the visual programming? We all know that NI is the leading developer of visual programming languages with its LabVIEW integrated programming language and development environment. However neither Microsoft nor Yahoo! have been completely quiet in this scene. Yahoo! has developed a domain specific visual programming environment Yahoo! Pipes for aggregating web feeds and other online information resources. Microsoft has developed a little similar tool, Mashup Creator, for their Popfly online web development environment. In addition Microsoft has a product called Microsoft Robotics Studio for robotics application development.

Even though the products of both Microsoft and Yahoo! are rather simple and restricted, they indicate that visual programming is slowly coming of age. However consolidation of services from the two companies doesn’t necessarily mean anything good for a minor field like visual programming. It’s very plausible that projects like Popfly and Pipes end up dead when giants like Microsoft and Yahoo integrate their organizations.

What do you think? Will Microsoft’s possible deal with Yahoo! have implications in the field of visual programming?

Print This Post Print This Post
Jan
19

ExpressionFlow got a major facelift

by Tomi Maila, Jan 19, 2008 at 1:25 am
1 Star2 Stars3 Stars4 Stars5 Stars (3 votes, average: 5 out of 5)
Loading ... Loading ...

As you can probably see, ExpressionFlow got a major facelift today. Actually almost everything else except the content has been replaced. The most important changes are

  • ExpressionFlow now has a logo and an identifiable visual appearance of its own
  • The new theme being wider is more suitable for presenting images of visual code
  • The blog software WordPress has been upgraded to the latest stable version

As this has been a major upgrade, there may be some problems still needing fixing. If you notice something wrong with the site, please inform me by posting a comment. If you are not able to post comments, you can email me. The address is firstname at the domain name.

Print This Post Print This Post
Jan
07

Recursive Data Types in LabVIEW - making recursive data structures type safe

by Tomi Maila, Jan 7, 2008 at 4:15 pm
1 Star2 Stars3 Stars4 Stars5 Stars (4 votes, average: 5 out of 5)
Loading ... Loading ...

LabVIEW Object-Oriented Programming (LVOOP) was introduced in LabVIEW 8.20. LVOOP allows developers to build recursive tree-like data structures within LabVIEW dataflow model. Recursive data structures are enabled by allowing class private data members to be of ancestor class type. As ancestor class private data members can hold descendant class objects, recursive data structures are possible.

However LabVIEW doesn’t allow using recursive type structures where a type refers to itself. I present here that indeed building such types would be possible within the dataflow framework of LabVIEW. Such recursive types would allow building recursive data structures in more intuitive and type safe manner than what is possible with current LVOOP implementation.

more…

Print This Post Print This Post
Dec
21

Snowflake LabVIEW Block Diagram Game

by Tomi Maila, Dec 21, 2007 at 9:43 pm
1 Star2 Stars3 Stars4 Stars5 Stars (3 votes, average: 5 out of 5)
Loading ... Loading ...

Snow Flake LabVIEW Block Diagram Game PreviewI’d like to thank you all ExpressionFlow readers for our first amazing year. You may have received a large number of season’s greeting cards, but I bet none of them can even closely compete with ours. To thank you for our first year, we’ve developed you a LabVIEW block diagram arcade game for LabVIEW 8.5!

To play the game, use the left and right arrow keys and try to catch all the LabVIEW block diagram compoents with your LabVIEW object. Don’t forget to post your high scores to this thread.

I wish you all Merry Christmas and Happy New Year 2008!

EDIT: Version 1.1 released with a bug fix.

Download

Print This Post Print This Post
Nov
26

LabVIEW 8.5 on a multi-user Windows 2003 Server

by Tomi Maila, Nov 26, 2007 at 12:00 am
1 Star2 Stars3 Stars4 Stars5 Stars (1 votes, average: 4 out of 5)
Loading ... Loading ...

Windows 2003 Server with LabVIEW Large majority of LabVIEW developers use Microsoft Windows as the development environment. However only single user Windows environments namely Windows 2000/XP/Vista are supported by National Instruments. We lately experimented installing LabVIEW 8.5 on a Windows 2003 server with multiple simultaneous users over terminal services remote desktop connections. Our initial experiences are encouraging.

Although Windows 2003 server was used for this experiment, the results can be applied to other Windows environments with multiple users as well. It can be beneficial to more carefully separate multiple users all using a single workstation with a single LabVIEW installation. more…

Print This Post Print This Post
Nov
12

Two Paths to Concurrency - Comparing Erlang and LabVIEW

by Tomi Maila, Nov 12, 2007 at 11:46 pm
1 Star2 Stars3 Stars4 Stars5 Stars (3 votes, average: 5 out of 5)
Loading ... Loading ...

The clock speed of computer processors has reached the ceiling and the processor manufactures have moved from developing even faster single core processors into developing processors with increasing number of cores on a single chip. The increasing number of parallel processors is a challenge for software industry as writing parallelly executing software with mainstream programming languages is a challenging job. This dilemma is sometimes referred to as the multicore crisis.

Even though writing parallel programs with languages like C++, Java or C# is a rather complicated job, programming for parallel environments doesn’t necessarily have to be a challenge. Two programming languages both having their roots in the end of 80’s, Erlang and LabVIEW, have both been inherently concurrent from the very beginning. Both languages have started as special purpose programming languages and during the last two decades evolved into full featured general purpose programming languages. Although being both inherently concurrent languages, Erlang and LabVIEW solve the problem of concurrency in rather different ways.

more…

Print This Post Print This Post