03-06-2011 04:20 AM
Hi there.
I am working on a set of instruments which have 2 similar monochromater to be selected.
like:
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!
03-06-2011 06:41 AM
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.
03-06-2011 09:57 AM
Hi, Micheal, seems DVR is not available in LV 8.6??
03-06-2011 10:12 AM
Actually, mine is ancient LV 8...
03-06-2011 10:37 AM
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
03-06-2011
01:54 PM
- last edited on
07-15-2025
02:15 PM
by
Content Cleaner
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.
03-07-2011 08:17 AM
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!
03-08-2011 01:18 PM
Hi TriStones,
Please let us know which approach you choose and any questions you have along the way.
Thank you,
Deborah Y.
03-08-2011 06:28 PM
Dear Deborah, I am still learning to find the way, need some more time~!
Thanks
TriStrones