LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Pointer in LV?

Hi there.

 

I am working on a set of instruments which have 2 similar monochromater to be selected.

like:

screen-capture.pngscreen-capture-1.png

 

As are shown above, I am wondering if pointers are available in LV, so that I can just add a small case structure in initialization.

 

Is it possible?

 

Thanks!

0 Kudos
Message 1 of 9
(3,387 Views)

If you are looking for a way to group the objects, it is better to use cluster (don't forget to make it strict-type-definition). There are something similar to pointers - data value reference, and a control reference.

 

Michael.

_________________________________________________________________________________________________
LV 8.2 at Windows & Linux


0 Kudos
Message 2 of 9
(3,372 Views)

Hi, Micheal, seems DVR is not available in LV 8.6??

0 Kudos
Message 3 of 9
(3,342 Views)

Actually, mine is ancient LV 8...

0 Kudos
Message 4 of 9
(3,331 Views)

You can also use LV2 globals (Action Engine)

 

http://forums.ni.com/t5/LabVIEW/Community-Nugget-4-08-2007-Action-Engines/m-p/503801#M240328

_________________________________________________________________________________________________
LV 8.2 at Windows & Linux


0 Kudos
Message 5 of 9
(3,326 Views)

No, there are no pointers in LabVIEW. And in many ways that's a good thing. As for your specific issue, it sounds to me like you'd benefit from LVOOP programming.

https://www.ni.com/en/support/documentation/supplemental/06/labview-object-oriented-programming-faq....

0 Kudos
Message 6 of 9
(3,314 Views)

Yes, he would benefit from LabVOOP, but LabVIEW classes were introduced in LabVIEW 8.2.  However, you can get object-like functionality without LabVIEW objects.  The two best ways to do this in LabVIEW 8.0 are single-element queues and action engines.  I prefer the single-element queue approach, as it is closer to the syntax of LabVIEW objects and more scalable.  Refer to the two linked tutorials and keep posting if you have questions.

 

Good luck! 

0 Kudos
Message 7 of 9
(3,268 Views)

Hi TriStones,

Please let us know which approach you choose and any questions you have along the way.

Thank you,
Deborah Y.

Deborah Burke
NI Hardware and Drivers Product Manager
Certified LabVIEW Architect
0 Kudos
Message 8 of 9
(3,225 Views)

Dear Deborah, I am still learning to find the way, need some more time~!

 

Thanks

 

TriStrones

0 Kudos
Message 9 of 9
(3,205 Views)