Archive for the ‘engineering’ Category

There are many ways to replace items in a VI; however, Paste-Replace gives you more control than the often unpredictable Replace function alone.


In most cases, LabVIEW will attempt to preserve the label, caption, value and dataflow direction (control/indicator). It may also try to preserve other things, such as the numeric representation, size or color. It’s hard to say what will be preserved without actually doing the replace. Luckily, you can Undo if a right-click replace operation fails you. But what next?

 

Capture.JPG


Paste-Replace is a method of replacing a control without preserving any of its appearance attributes. It will, however, preserve things like connector pane placement, wire connection and associated block diagram elements (such as local variables and implicitly-linked Property/Method nodes).


If you’ve been struggling with the unpredictable nature of Front Panel Replace, this post from the Eyes on VIs blog walks users through a satisfying alternative.


 

Have comments about this tip? Leave it below and we'll respond. For more programming tips, subscribe to Eyes On VIs.

Here’s part two of our LabVIEW 2012 features list. See something you want changed? Let the community know by sharing it on the LabVIEW Idea Exchange. We have a proven track record of listening to—and acting upon—requests made from our community.

 

Enhanced Stability

NI’s research and development team has made substantial efforts to improve the stability of LabVIEW 2012. In this version, you’ll see how their hard work paid off. But stability isn’t the only focus. Improving the edit-time responsiveness of the entire LabVIEW platform was also a priority, as well as a better error reporter and higher prioritization of CARs.

 

FPGA Enhancements
LabVIEW FPGA lets designers use less engineering resources and get to market faster. Powerful new features, like faster compilation and tools for simplifying IP resuse, shorten development time and improve the performance of applications.

 

System Simulation

The LabVIEW Robotics Simulator, based on the Open Dynamics Engine, is a physics-based simulator that emulates robotics design, letting developers validate design and algorithm choices more efficiently and effectively.

 

Ecosystem Improvements

The “NI ecosystem” is another way of saying our users’ community—their access to each other and extras (like package downloads, add-ons, and instrument drivers). These all help to increase productivity, while offering a large space for certified developers to discuss and grow their ideas. Explore the network to see how it can benefit you.

 

>> See all of the new features for LabVIEW 2012.

Some LabVIEW users might look at this code and say that it is too complicated for the simple task that it is trying to solve, creating a calculator, but to a software engineer it looks beautiful.
Front+Panel.PNG


While taking time to create a scalable framework does add time to a project, you will reap the benefits later when trying to maintain or extend your applications functionality later. While the exact implementation can always be debated, NI Community member ChrisV should be applauded for his good programming practices in his calculator VI that he posted onto the community.

 

To test drive his code for yourself or add comments about the implementation, check out his post here>>>