07-16-2012 11:27 AM
Hi everyone,
I somehow got stuck with my following problem, although it seems to be fairly easy...
Maybe some of you can help me:
I have created several picture indicator objects on my front panel using VI scirpting and now I want to transfer image data to these indicators in order to show images in them, each image in another indicator. Since the indicators are only being created while the program is being run, I cannot just link the indicators to the data, so I thought I should use references, but that is where I got stuck.
Does anyone have an idea how to proceed?
I hope my information are sufficient...
Sincerely,
Steffen.
07-16-2012 11:43 AM
07-16-2012 11:44 AM
What about creating a vi that loads an image file into a picture? You can then call this vi with scripting, run it, make current values default, copy, paste to destination VI. All of that should be possible to do with scripting.
07-16-2012 12:08 PM
A VI can't create indicators on its own front panel, so I'm guessing that you're talking about loading pictures in the scripting VI as you're creating the indicators. GerdW is correct that you can use "Value" Property Nodes, and you're correct about using references, just collect the references as you're creating the indicators or you can Traverse for GObjects to find them.
Here's a related blog post.
08-03-2012 10:29 AM
Hi GerdW,
thanks for the hint with the "value" property nodes, it's what ultimately helped me solve my problem.
You don't happen to have an idea how to create a VI with 2D Pictures within a while loop? I have tried to do it similarly to the "Drop Add Function Inside While Loop.vi", but it did not work... The loop was just empty!
Have a nice weekend,
Steffen.
08-03-2012 10:34 AM
Maybe this makes my intention clearer: I want the scripted VI to be automatically executed after being created and only stop after I hit a stop button...