09-18-2023 09:23 AM
Hi,
Simply can't create control from an image display reference so I can't change its properties from other VIs. Works with other type of references.
The method I tried is just the normal one:
I have tried to wire the reference to a for loop and create a subVI from the loop and the reference wire, but no subVI was created.
Could someone check this to see if its just me? (I was able to reproduce it on two difference PCs, both running LV2022Q3)
Thanks.
KB article: https://knowledge.ni.com/KnowledgeArticleDetails?id=kA00Z0000019M2pSAE&l=hu-HU
Solved! Go to Solution.
09-18-2023 11:39 AM - edited 09-18-2023 11:45 AM
Hi 1984,
Apparently there is a bug that prevents from creating a control/indicator from the IMAQ Image Control Refnum data type, and the article you mentioned appears to omit this little annoying detail. So your only option is to pass it as a generic "Control", then use to more specific inside the SubVI with a Refnum Constant.
GUI VI:
SubVI:
This particular data type is really weird because even malleable VIs cannot adapt and have it as an input…
Regards,
Raphaël.
09-19-2023 01:19 AM
Thanks mate! Do you know if this bug is already reported?
09-19-2023 01:51 AM - edited 09-19-2023 01:52 AM
I reported it 6 or 7 years ago, not sure which version were affected but I could create it in an older version of LabVIEW and then move the VI to a newer version.
We have two ears and one mouth so that we can listen twice as much as we speak.
Epictetus
09-19-2023 02:18 AM
Interesting. Would you mind attaching a VI which has a ImageControl reference control and a constant? Not sure if that would work but I'd try just using those in my VI.