LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Is it possible to implement or represent a Linked List in LabVIEW?

Linked lists are a useful way to store and retrieve data and I am wondering if it is possible to create or acheive the same objective of a linked list in LabVIEW.
0 Kudos
Message 1 of 2
(3,255 Views)
A linked list is a collection of nodes, each node has data and a link (or pointer) to the location of the next node.

In LabVIEW we can create a collection of nodes as an array of clusters. One element of the cluster will be our data, and the other will be an integer pointer to the location in the array, of our next node.

In, fact you can go crazy and represent a LabVIEW Hierarchy in a similar fasion (a tree structure). Now, each cluster will have data about the VI (its Name, attributes, etc), an array of integers that point the the locations of calling VIs, and an array of integers that point the the locations of subVIs.

You will, of course also need some tools for sorting your lists/trees and performing useful operations... lot's of fun!

Good luck
,

Jim
0 Kudos
Message 2 of 2
(3,255 Views)