LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Rate the NI software



@Capuchin wrote:
 
One gripe I have (if there's an easy way to do this that I'm missing, please correct me) is no easy way to set variables. For example you want to use an array x by y by z and use those values of x y and z elsewhere in the code, often I end up having to use a long winding wire to get it where I need it. The easiest sollution would be to use a control and property nodes, but in a big program that still means you have to find the control, find the value option in the big list, etc. Whereas in other languages you just type "x".

Right click the control or terminal and select Create>>Local Variable. Note that local variables (and Value property nodes) are often a dangerous thing which can easily introduce race conditions into data flow code. If you end up with long wires, it might mean that you need to change your structure to use more subVIs (check out the Edit>>Create SubVI option which turns selected code into a subVI) and maybe a different architecture (check out the File>>New dialog for some examples).

The full range of proper programming methods in LV is far beyond the scope of this post, but to learn more about LabVIEW, I suggest you try searching this site and google for LabVIEW tutorials. Here, here, here, here and here are a few you can start with and here are some tutorial videos. You can also contact your local NI office and join one of their courses.
In addition, I suggest you read the LabVIEW style guide and the LabVIEW user manual (Help>>Search the LabVIEW Bookshelf).

There are also some books out which are said to be good.


___________________
Try to take over the world!
0 Kudos
Message 11 of 14
(1,156 Views)
 Sorry for replying so late, but I wanted to say thanks for all the suggestions, and I appreciate the insight.  Sounds like a very solid system, looking forward to perhaps working more hands-on with it in the future.

Thanks again!

Colby Blair
0 Kudos
Message 12 of 14
(1,113 Views)

I am wondering if it is possible to use LV to develop a model-like Test Plan & Procedure. Instead of boiler-plated word document.

Let me explain.

You want to test some hardware newly developed?...we have inter-company Test Plan development policy with 500 "shall dos". So you read this, find a boiler plate in msword & punch in para after para things you can imagine about testing this thing so that it passes some specifications. They ask you to do this even for hardware under development situations. Admonition goes like "you shall document what needs to be tested otherwise what are you building"...problem is, circuit/system development is hardly linear predictable process the way those not doing it seem to imagine...but I digress.

But why write? Is it not more likely that we have in mind a block with input/outputs/excitation/control as a top level item? Then descend this hierarchy, you will have other sub-blocks with same behavioral demands?

Similar to how one models a physical system in mathworks/Simulink.

For a designer it will be like snow boarding down a smooth slope to develop  a very pertinent application that will show both Test Plan(the model itself is the picture worth 1000 words.....make it 10k). With flexibility in the software available, one can envision adding the Procedures as well.

Now, if someone insisted that there shall be a word document, let  them "map" this model into msword!

When I talked to the sales person, she mentioned Statechart is a possible module to get me to this path.

But I see nothing in any document or the module that lets me see that such a thing is possible.

Anybody with ideas?...do you folks with serious experience in  such fantastic use of the LV ever ventured in this business of TPs as a model instead of words?

In a manner similar to Simulink, it is not difficult to see this being used to develop the codes!

A further extension will be to collaborate with key circuit/board softwares  to "place" LV "hooks" at testing nodes. Then right click on the design & a tool gives option to "build Test Plan"...voila  comes about  what is described above.

All this is possible.

Who do I talk to?

-jaja_g

0 Kudos
Message 13 of 14
(923 Views)

You've replied into an almost 2 year old unrelated thread.

 

Please create a new message thread.  Also, please use some paragraph breaks so that it is easier to read.

Message Edited by Ravens Fan on 09-03-2008 01:11 PM
Message 14 of 14
(910 Views)