LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

update multicolumn listbox globally

Hi,

 

Can anyone tell me how can I update multi column list box continuously / globally from subVI to main VI and How to achieve it. i have made the multi column list as type def and tried not worked out and also unable to update by making the multi column list box as global variable.

 

Just for sample i have attached some VI how it should get updated. When main VI is executing the subVI is called and in subVI the list box getting updated continuously. This data should continuously reflect / updated on the control available on the main VI also. how it can be achieved.

0 Kudos
Message 1 of 3
(2,822 Views)

create reference of the listbox pass it to subvi and use property node inside subvi to update.

http://digital.ni.com/public.nsf/allkb/CD462ADAB2BB875C8625751A006F8515

bp
0 Kudos
Message 2 of 3
(2,809 Views)

> Can anyone tell me how can I update multi column list box continuously / globally from subVI to main VI and How to achieve it.

I'd prefer a class over a subVI. But if you want a sybVI, look into smartbuffers (AKA globalbuffer, LV2 style global, etc). You'll need at least a function to add MCLB references to it, and a function to update. The update uses VI server\property nodes to update all MCLB in a for loop.

 

> i have made the multi column list as type def and tried not worked out and

A type def defines the data type, not the data. Even a strict type def won't work, it will also not define the data.

 

> also unable to update by making the multi column list box as global variable.

A global will keep it's own (copy of) the data. It will not have any linkage to other MCLB's. How would LV know what MCLB to update and which not to update?

 

In general, an architecture where a required MCLB update is signalled with a user event is a better idea, but (without looking at the code) it sounds like it's to late for a good architecture .

 

Regards, Wiebe.

 


 

0 Kudos
Message 3 of 3
(2,777 Views)