10-16-2015 09:07 AM - edited 10-16-2015 09:08 AM
Hi I'm new to Labview. I want to know how to get the current VI reference as the graph shown below. Functions>Application Contrl>Class Specifier Constant, but I couldn't find the VI option in its VI server class option.
Solved! Go to Solution.
10-16-2015 09:21 AM
As far as I know VI references are big rectangles:
Cheers
--------, Unofficial Forum Rules and Guidelines ,--------
'--- >The shortest distance between two nodes is a straight wire> ---'
10-16-2015 09:48 AM
I think they work the same way. I am just curious where is it from. There is no mark ahead any of its options.
10-16-2015 09:53 AM - edited 10-16-2015 09:56 AM
Yeah, that is weird. Can you attach the control, or the VI?
You can't even cast a Generic reference to a VI reference because they're two different things reference types.
< This throws an error
Cheers
--------, Unofficial Forum Rules and Guidelines ,--------
'--- >The shortest distance between two nodes is a straight wire> ---'
10-16-2015 10:48 AM
Attached is that part of the vi file. Thank you very much for your help.
10-16-2015 10:55 AM
Ah, I'm back in 2014 still, no 2015. Maybe this is something new in 2015?
Cheers
--------, Unofficial Forum Rules and Guidelines ,--------
'--- >The shortest distance between two nodes is a straight wire> ---'
10-16-2015 10:59 AM
The code is made in LV 2013, I just copy it to my LV2015.
10-16-2015 11:10 AM
The only way I know how to create a 'VI' class specifier constant is the following:
1. Drop a Class Specifier Constant and select it.
2. Press Ctrl-Space.
3. Type "VI".
4. Press Ctrl-B (the 'VI Server Rename' shortcut in Quick Drop).
There may be another way to do it, but this is the only way I know of. This functionality is available in LabVIEW 2010 and later.
10-16-2015 11:14 AM
That code is from the JKI state machine. OpenG has a "Current VIs Reference" vi that you can use to quickly get the reference.
10-16-2015 11:22 AM
Thank you, this solved my problem.