キャンセル
次の結果を表示 
次の代わりに検索 
もしかして: 

Using Express VIs

解決済み
解決策を見る

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 件の賞賛
メッセージ1/18
5,655件の閲覧回数
解決策
受理者 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,

 

 

メッセージ2/18
5,648件の閲覧回数

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
メッセージ3/18
5,630件の閲覧回数

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 件の賞賛
メッセージ4/18
5,619件の閲覧回数

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 

メッセージ5/18
5,614件の閲覧回数
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 件の賞賛
メッセージ6/18
5,613件の閲覧回数

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! 

メッセージ7/18
5,591件の閲覧回数

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 件の賞賛
メッセージ8/18
5,579件の閲覧回数

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 件の賞賛
メッセージ9/18
5,553件の閲覧回数

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 件の賞賛
メッセージ10/18
5,545件の閲覧回数