Tag Archives: LabVIEW - Page 2

Build a Tri-State LED Indicator in LabVIEW

When using the default LED indicator in LabVIEW in my test projects, I found that the two statuses of it is not enough. For example, we can use a LED with red False status to indicate test failed and green True to indicate test passed, then what we can do with the LED before the test finish? The test result is still unknown, red and green are not proper. In this situation, we need a yellow Unknown status with the LED indicator.

The following is how I build a tri-state LED indicator:

First create a new VI, place a enum control and a LED indicator on the front panel as below:

VI's front panel

Then edit the enum’s properties as bellow:

Read more »

NI Announcing the LabVIEW 2009 Platform Beta Program

Just noticed that NI LabVIEW’s new version number will be 2009 for this year, and it will not use 8.7 or 9.0 anymore. This naming method likes Microsoft Windows’ naming method. Following is from NI’s official forum:

You are invited to register for participation in the LabVIEW 2009 Platform beta program.  

You can register by visiting http://www.ni.com/beta and selecting "LabVIEW 2009 Platform" from the list of beta programs.  Please complete the profile questions that will help us understand your experience and use cases with LabVIEW.  Make sure you agree to the T&C of the beta program so that you can be approved.

What software is planned to be available?  Note: not all software will be available during the first beta period.

  • LabVIEW (32-bit)                                               Windows / Mac / Linux
  • LabVIEW (64-bit)                                               Windows Only
  • LabVIEW RT Module                                         Windows Only
  • LabVIEW FPGA Module                                    Windows Only
  • LabVIEW DSC Module                                      Windows Only
  • LabVIEW Touch Panel Module                         Windows Only
  • LabVIEW Microprocessor SDK Module            Windows Only
  • LabVIEW Control Design & Simulation Module Windows / Mac / Linux
  • LabVIEW Statechart Module                             Windows Only
  • LabVIEW Mobile Module                                    Windows Only
  • Vision Development Module                              Windows Only
  • Application Builder for Windows                       Windows Only                    
  • VI Analyzer Toolkit                                             Windows Only
  • Report Generation Toolkit                                 Windows Only
  • Database Connectivity Toolkit                          Windows Only
  • Internet Toolkit                                                   Windows Only
  • RT Execution Trace Toolkit                              Windows Only
  • Desktop Execution Trace Toolkit                      Windows Only
  • Digital Filter Design Toolkit                               Windows Only
  • Advanced Signal Processing Toolkit                Windows Only
  • Motion Assistant                                                Windows Only
  • PID Tookit                                                          Windows Only
  • Simulation Interface Toolkit                               Windows Only
  • System Identification Toolkit                             Windows Only
  • Adaptive Filter Tookit                                         Windows Only
  • LabVIEW Signal Express                                  Windows Only
  • Unit Test Framework                                         Windows Only

There is always a major LabVIEW upgrade every year. It seems in this year LabVIEW will not only be a programming tool but also a platform that can accomplish more jobs at the same time. Hope it will make my daily programming work much easier!

A Strange Problem When Calling External DLL with LabVIEW

Currently I am using a third-part MIL-STD-1553 card in one of my projects. The vendor of this card provides only a DLL file as the driver for it which is build with Visual C++. To control this card in LabVIEW, I have to use the Import Shared Library wizard in LabVIEW to build all the VIs that corresponding to every functions in this DLL. After that, I used these VIs in my program to control this 1553 card. Everything is fine with the card initialization and reset function, but when it comes to send data function, a strange problem happens.

The problem is as follows, when I use the send data function as in the manual provided by the vendor, set special values to parameter A and parameter B, and run this function after that, there is no responses. But with the demo program provided by the vendor which is in Visual C++, call this function as in the manual, everything is fine. At last, I try to set the special values to the parameters that follow A and B, for example, if A is the first parameter, then assign the value that should be assigned to A to the second parameter. After this operation, everything is fine now. I don’t know what is the reason to this strange problem. It seems that the parameters of this VI which is converted by LabVIEW are not correctly corresponding to the function parameters in the DLL.

I don’t know what caused this problem to happen, maybe someday I can find it out.

Access Different Access Database Files Programmatically in LabVIEW with Database Connectivity Toolset

One of my project needs to save test results to different Access database files for different units to be tested. The database files’ name is automatic generated based on UUT’s serial number. Currently, I’m using the LabVIEW Database Connectivity Toolset, and the default method to access a database file by it is UDL file. The UDL file contains only one static database file and it is quite hard to change it programmly without manually select a database file and click the confirm button.  And it will be a nightmare to create each UDL file for each UUT before the test is taken.

To change the UDL file’s content in LabVIEW programmly is not easy too. Because UDL file  is unicode-formatted, and LabVIEW is quite limited in support to unicode. I had tried several ways to change the database file name in UDL file and save the UDL file to hard disk. And when I open the changed UDL again, I got “File corrupted” message. It seemed that it is not a good way. Read more »

A Way to Improve User Experience in Complicated Applications in LabVIEW

LabVIEW 8.x comes with the User Interface Event Handler template by default to process user interface events. But in some complicated applications, there will be so many jobs to do at the same time, and this default template is not enough. For example, in one of my projects, UUT’s power supply monitor and serial communication with UUT is running all the time while some tests are performed. If only with the default template in this case, the user interface will freeze when the application is performing some time-consuming jobs like serial communication or DAQ.

Read more »

Page 2 of 3123