LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Using Express VIs

Solved!
Go to solution

Hello,

 

I heard that using express VIs is not a good practice, where I found they add to more convenience when coding. Could you tell me what should b the best practice? Using express VIs or developing logic using function?

 

Thanks.

Pritam

0 Kudos
Message 1 of 18
(5,087 Views)
Solution
Accepted by pritam

For myself I avoid express VI because they allow me to skip basic understanding. They can be a great tool to get started but I would encourage anyone that uses them to them right-click the express VI >> Open Front Panel >> Convert. Then study the underling fictions and steps "within" the express VI that have accomplished what you were trying to do.

 

Next time you can build your own!

 

Also, for DAQ, etc. I think express VIs typically initialize a resource, perform and action, and then close the resource. Many times this is undesirable - for instance acquiring data repeatedly - therefore, if you know what the express VI is doing you can build a more efficient overall program (for example moving initialize and close functions outside an acquisition loop). Many shipped examples accomplish the same things as express VIs with much better programming practices.

 

Again, not necessary a bad way to start but I don't think they are good practice moving forward.

 

Cheers,

 

 

Message 2 of 18
(5,080 Views)

Jolt covered this Q pretty well.

 

The opinion of the LabVIEW Champions  re:Express VIs was summarized by Christian in one of his LabTOONs found here.

 

The following was linked from that thread.

 

 

 

Ben

Message Edited by Ben on 04-08-2009 07:46 AM
Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
Message 3 of 18
(5,062 Views)

In that other thread I mentioned my bumper sticker but never posted an image. Here you go!

 

 

Ben

Message Edited by Ben on 04-08-2009 08:27 AM
Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 4 of 18
(5,051 Views)

I wouldn't consider them bad style. If they do what you want/need, everything is fine. I never got really used to them (as the LabToon points out, a fate of a lot of long-time LabVIEW coding).  I actually took some time to get into them, because they allow really fast 'coding'. Just some are occasinally found in my code, that is the Build Text and the Display Message to User.

The Analysis Express stuff as well as the DAQmx assistant are really handy when prototyping or troubleshooting the hardware. But in my code I need more functionality than they offer...

 

Felix 

Message 5 of 18
(5,046 Views)
I can say that I have never used an express VI.  I can see a use for them - where you want to allow a novice to write a program - where the complex functions are encapsulated into express VIs.
Visualize the Solution

CLA

LabVIEW, LabVIEW FPGA
0 Kudos
Message 6 of 18
(5,045 Views)

I've never used an Express VI.  I never plan to.  I think they actually hinder learning, not only of the LabVIEW language but also of good programming practices.   Jolt put it perfectly -- they allow the user to skip understanding of what's actually going on in their code.  That's not good.  In my experience (hardware as well as software), if the person designing the system doesn't understand what they're designing, they're begging for problems.  And the problems invariably oblige.

 

The examples that ship with LabVIEW do a pretty good job of illustrating the basic concepts.  If you are genuinely interested in learning the language, I would start with the shipping examples and not the Express VIs.  Heck, even if you're NOT interested in learning the language...start with the shipping examples! 

Message 7 of 18
(5,023 Views)

A good metric would be how many people who passed the CLD exam used an Express VI.

 

If I wrote an Expres VI and presented it to my coworkers ... you've got to be kidding.

0 Kudos
Message 8 of 18
(5,011 Views)

gchristi1 wrote:

...

 

If I wrote an Expres VI and presented it to my coworkers ... ...


Good point there!

 

Has anyone outside of NI ever written an Express VI themselves?*

 

What did it do?

 

Was it worth the effort?

 

Curious,

 

Ben

 

* I have read about creating them but have never done it myself.

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 9 of 18
(4,985 Views)

Ben wrote:

gchristi1 wrote:

...

 

If I wrote an Expres VI and presented it to my coworkers ... ...


Good point there!

 

Has anyone outside of NI ever written an Express VI themselves?*

 

What did it do?

 

Was it worth the effort?

 

Curious,

 

Ben

 

* I have read about creating them but have never done it myself.


If I'm correct Wiebe from Carya has built them.

His comments were that it isn't that hard.

 

Ton

Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
Nederlandse LabVIEW user groep www.lvug.nl
My LabVIEW Ideas

LabVIEW, programming like it should be!
0 Kudos
Message 10 of 18
(4,977 Views)