Category Archives: LabVIEW

Change Scale Names in Mixed Signal Graph by Program in LabVIEW

There will be many scale in a mixed signal graph. It’s a boring job to change the names of the scales in edit mode. If you need to change the names of the scales when your LabVIEW program is running, it’ll be a hard job for new LabVIEW programmer.

In fact, it is quite easy if you know how to do it. Here is what to do when you need to change the scale names in mixed signal graph:

First, you need to select the y-scale which you want to change scale name by ActYScl property as following: Right click the mixed signal graph and select Create->>Property Node –>> Active Y Scale.

Read more »

Move Up and Down Tree Control Sub-items Programmatically in LabVIEW

In my current project, I’m using a tree control to store the test items and the test operations are taken in sequence following the tree control’s top to down order. To make the test more flexible, the test sequence(here is the tree control’s items order in this program) should be able to modified by the user. The user should be able to move test item up and down in this test sequence tree control.

LabVIEW provides the basic tree item move VIs, but in the actual test project, there is more to be considered and much more work to do. In my project, I use a two level tree to store the test sequence, the top level is the test item’s category and the sub-level is the test items as the following picture.

Read more »

Transfer More Than Text Message in Queue Between Loops in LabVIEW

As in one of my previous post: A Way to Improve User Experience in Complicated Applications in LabVIEW, I used two loops in my program. One loop works as user interface events interpreter and another loop processes test operations. I use a message queue to transfer user command from the user event loop to the test operation loop. Right now, a few test operations need to be performed with a set of voltage values to the same UUT, but the test routine is the same. I don’t want to create more cases to different voltages, I want to use only one case to process the same test routine.

Below is how I realize it. As in the following image shows:

Read more »

How to Create Linked List in LabVIEW

Linked list is not a standard data type in LabVIEW, but we can create it in LabVIEW with cluster arrays.

First, what is linked list? It is defined as following in wikipedia:

In computer science, a linked list is one of the fundamental data structures, and can be used to implement other data structures. It consists of a sequence of nodes, each containing arbitrary data fields and one or two references (“links”) pointing to the next and/or previous nodes. The principal benefit of a linked list over a conventional array is that the order of the linked items may be different from the order that the data items are stored in memory or on disk, allowing the list of items to be traversed in a different order. A linked list is a self-referential data-type because it contains a pointer or link to another datum of the same type. Linked lists permit insertion and removal of nodes at any point in the list in constant time, but do not allow random access. Several different types of linked list exist: singly-linked lists, doubly-linked lists, and circularly-linked lists.

Linked lists can be implemented in most languages. Languages such as Lisp and Scheme have the data structure built in, along with operations to access the linked list. Procedural or object-oriented languages such as C, C++, and Java typically rely on mutable references to create linked lists.

Here is what we can do to create linked list in LabVIEW: Create a cluster, which has at least one element which is an integer numeric. We can use this element as the link to other list items in the list. Then, create a array which use this cluster as data type. The linked list is created. We can use it as we wish.

A Note about Using Database Connectivity Toolset in LabVIEW

The Database Connectivity Toolset is a great add-on toolkit for LabVIEW, it makes the database operation within LabVIEW so easy that you can operate database even without sound knowledge of database.

I used this toolkit in one of my projects to record the test results of UUTs into MS Access database. I created a save results to database subVI with this toolkit. The subVI looks like this:

Origin LabVIEW subVI 

Read more »

Page 1 of 3123