08-01-2005 04:44 AM
08-01-2005 06:59 AM
The answer is simple : forget it. Yes, this is something possible, and no you should not do it. If you really will to live an adventurous life, then search for "Labview scripting".
There are better work arounds than using an undocumented feature of LabVIEW. You already found that you can comment a graph using cursors, and move them programmatically over the interesting spots, using property nodes. That's probably the best way of doing it. However, the cursor text has to fit in the graph pane, and this is not always possible.
An alternative solution could be to use a string indicator to display the comment, and move it over the right position, using property nodes. Of course when you don't need the indicator, you can make it invisible, or transparent, or move it out of the window pane. So back to the first question : prepare a number of indicators/controls before hand, and make them appear when needed at run time. That's the easy way...
08-01-2005 07:03 AM
As far as I know you cant create a control dynamically like in other languages. I have tried to do this in the past with no success, I even tried to create a pool of generic (gObject) references and type-cast them and manipulate a GUI through the properties but it failed miserably. I guess dynamic objects are more an object oriented concept while labview employs a data-flow model. I would love to know how to do this as well, anyone know?
Paul
08-01-2005 07:05 AM
08-01-2005 07:14 AM
08-02-2005 06:27 AM
08-02-2005 06:54 AM
Concider doing an "invoke node >>> get image" and then push that into a picture control.
Do some math to convert graph position to picture offests and insert text were required.
You can also draw some lines connecting the text to the event.
Just a clue that may help. If you come up with something that does this, please share an example.
Ben
08-02-2005 08:08 AM
08-02-2005 02:32 PM