Archive for the ‘code’ Category

When you want to create a diagram quickly in LabVIEW, you should use Quick Drop . But once you have all of those objects on your diagram, it still takes quite a few clicks to wire them together:

wire1.jpg

What if you could tell LabVIEW, "Wire these objects together for me in a way that makes sense"? With the press of a few keys, you can, with the Wire Multiple Objects Together shortcut for Quick Drop. With this shortcut, all you have to do is highlight your code as shown above, then press Ctrl-Space, Ctrl-W:

 

wire2.jpg

If you want LabVIEW to clean up the selected code after wiring, press Ctrl-Space, Ctrl-Shift-W instead:

wire3.jpg

 

>> Download the plugin here and try it out in LabVIEW 2012 and later. Based on user feedback, the Ctrl-W shortcut may be included with LabVIEW in a future version!

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.

LabVIEW2012 lets you create code faster and more reliably than before. There are so many great new features in this release, we broke them into two overview posts. We encourage you to share your thoughts about this version on the LabVIEW Idea Exchange.

 

Capture.PNG

 

 

Mobile Apps

Use iOS and Android mobile devices to view data on your desktop or embedded systems. The newest Data Dashboard for LabVIEW will soon be available on the iPad, too, and includes custom layouts and dashboard sharing.

Self-Paced Online Training

An affordable training alternative that’s accessible 24 hours a day. Each course contains multimedia modules that cover the same topics as instructor-led courses. Complete with interactive quizzes and challenging exercises that help to test your understanding.

 

New Analysis Tools

There are hundreds of built-in signal processing and analysis functions that you can take advantage of in LabVIEW, from Fast Fourier Transforms (FFTs) to statistical analysis routines. All are specifically designed for high-performance processing using both CPUs and graphics processing units (GPUs).

 

Productivity Enhancements

12 new features in LabVIEW 2012 are user-driven—culled directly from the LabVIEW Idea Exchange—and include block diagram enhancements and conditionally processed loop outputs.

 

Data Management Enhancements

Technical Data Management (TDM) technologies directly integrate into your applications to help you maximize your test and measurement data value. These include the TDM Streaming file format for data storage, NI DataFinder for data indexing, and LabVIEW and NI DIAdem software for data processing.

 

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

Thanks so much to all the faithful readers of the Example Programs blog.

 

With the release of LabVIEW 2012, we are re-engineering our blog strategy. We’re consolidating from four blogs to one. Don't panic, though—all of the same great LabVIEW example program posts that you have come to love will be on the new blog, too.

 

You can find the new blog here. We hope to see you there!

 

In the meantime, check out the NI Code Exchange page if you’re looking for other great resources.

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>>>

LabVIEW user groups meet regularly to share programming techniques, application design patterns, tips and tricks to make NI LabVIEW work for you, and new LabVIEW technology, like the iOS and Android mobile apps released this week.

 

Sometimes LabVIEW user groups, like the Rocket City user group in Huntsville, AL, redesign LabVIEW to make it yummier than ever before. Nothing beats a sugar-loaded serving of graphical system design.

 



 

 

27909_360_239_cache.jpg

 

>> Find a user group in your area (cake optional)

By using Active X or the NI LabVIEW Report Generation Toolkit you can match your timestamps in LabVIEW with your timestamps in Excel.

 

20922_310_426_cache.png

 

>> Start converting now.



To mimic program logic control codes in LabVIEW, you can use multiple while loops so the function can update in real time and update based on logic in that moment.  This code can be tailored for any use you may need.



 

 

22184_620_432_cache.png

 

>>  Download the code here.

Here’s a file path to filter out unnecessary data, allowing you to automatically update the file path so your VI will only save data that meets your special criteria.

 

 

image_jpeg.jpg

 

 

 

 

>> Get the file path filter here.

 



Finally, a code for when you’re feeling rhythmically challenged—a LabVIEW metronome.

 

 

22251_310_204_cache.png

 

 

 

>>  Get the code here.