12-01-2010 06:35 AM
Hi
My task is to cerate reference automatically by selection
So far it works fine but here are my problem
If I have a control that is in a sequence how I now the position in depending of the sequence
I only get the position from the zero point from the block diagram but I need the position from the sequence
Any idear
Jürgen
PS
LabVIEW 2010
12-01-2010 08:03 AM
This is a quirk in the way LabVIEW scripting works. To get the position relative to the subdiagram an object is in, you need to subtract the absolute position of the 0,0 point of the subdiagram. Unfortunately, there is no native method to give this to you. The best way to find this position is to create anything at the 0,0 position of the diagram, read its position (it will be relative to the main or root block diagram), then delete the object. This works no matter how deeply nested your diagrams are and no matter what the host of the subdiagram - sequence, FOR loop, case structure, etc. I have attached a standard utility VI I use for this (LabVIEW 9.0). Wire the diagram reference into the object ref input. For single frame structures, wiring the structure ref in will also work.
12-01-2010 09:27 AM
Thanks
Thats help's a lot
Now it is working im my way
Jürgen
11-26-2017 01:23 AM
Is there any way to create a reference of a control reference automatically? I want to write a QuickDrop to do this. Can you tell me how did you do it ?
Thanks!
11-28-2017 06:14 AM - edited 11-28-2017 06:16 AM
Could you please clarify:
Do you want to create a reference to a CONTROL, that holds a control reference, e.g.
Or do you want a reference to a control reference (constant), e.g.
11-28-2017 06:19 AM
By the way, there might already exist a shortcut that does what you want: