Archive for the ‘community’ 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.

Windows 8 takes an inspired new approach to its user interface. The latest OS changes the way you'll interact with your PC—and your test and measurements. If you’re worried that this change will cause complications: don’t. For the most part, software that works in Windows 7 will transition seamlessly to Windows 8.

 

Capture.JPG

 

National Instruments has done extensive testing with our application software and hardware device drivers to ensure that customers who move to the new OS will have few problems. And in 2013, National Instruments will officially support Windows 8 as an OS option for our controllers.

There are also some great features available in this OS. One we’re most excited about for NI is the upcoming Surface Pro tablet, which will run the same version of the OS as desktop PCs. It will allow customers to plug in their USB DAQ devices and run LabVIEW applications on their tablets. The Surface Pro will release in Q1 2013.


National Instruments will also have a version of the NI Data Dashboard available for Windows RT on the Surface tablet in the next few months. Data Dashboard 1.0 for Windows RT will allow engineers to create custom dashboards to monitor LabVIEW applications remotely.

 

>> To access FAQs and an extensive white paper offering an overview of Windows 8, visit our web page.

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

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.

 

 



This front panel template tool can be integrated into LabVIEW to allow you to select a VI in memory or browse to a VI on disk.  You can also use this tool to change a VI’s front panel indicator and controls.

 

image_png.png

 

>> Grab the code here.



This example shows how understanding LabVIEW functions can reduce your frustrations when adapting text-based code to LabVIEW.

 

22499_620_310_cache.png

 

>> Want to see how? Check it out!



Community macaba has a piece of code available on the community that allows you to easily send data from a running VI to a UI mockup of the VI on your iOS device. It uses a special version of the UDP protocol to send data back and forth. The direct applicaitons I see this benefiting is when you want to control a VI remotely and want to use devices that are commonly available (e.g. I want to turn off that valve from my iPhone while I travel) and also for just remote viewing as well (e.g. I just want to see what the temperature if on my applicaiton from anywhere). Go check out macaba's example and see if it could fit into your LabVIEW application!

 

Control LabVIEW from the iPhone, iPad, or iPod Touch