LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

linked lists in labview

Hi

 

I want to create a linked list in labview. How can i do that in labview?

If its not possible how can i implement in labview?

 

 

0 Kudos
Message 1 of 6
(6,344 Views)

Hi,

 

You can create a Linked List in LabVIEW using a Priority Queue.

 

You can find more regarding Linked Lists and other advanced Data structures at

https://decibel.ni.com/content/docs/DOC-12668

 

Regards

Gautham Ponnu

 

 

0 Kudos
Message 2 of 6
(6,329 Views)

 

Can i store the address in the linked list just like in c?

0 Kudos
Message 3 of 6
(6,302 Views)

In a typical Linked Lists C program, the Links are essentially pointers. 

There are no pointers in LabVIEW.

 

However, LabVIEW has function called Data Value References which create a reference to data that you can then use to transfer and access the data in a serialized way. They are the fastest way to access data by-reference.

Message 4 of 6
(6,300 Views)
0 Kudos
Message 5 of 6
(5,926 Views)

I'd say one of the best implementations of a linked list is an Array of DVR's, just like you can have an array of pointers in C, the next and previous is ofc the place in the array. The question if ofc what you're trying to achieve. 🙂

A "pure linked list" require a Cluster with a Next and Previous-DVR (or the name of a queue, though i dont know how the system would handle having thousands of 1-element queues) and either a Self-DVR or the information.

 

/Y

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 6 of 6
(5,907 Views)