10-27-2006 04:34 PM
03-14-2007 06:43 PM
05-20-2011 03:39 AM
Hi all,
FYI writing to the 'Value Signalling' property doesn't always work depending on your data type.
I've been trying to pass in a Data Value Reference (DVR) to an Object as a XControl data change.
This failed because the DVR value is constant. I tried writing to the 'Value Signalling' property but no joy.
Got round the problem by placing a DVR typedef in the Display State cluster. Then added a new method to the XControl with a Connector parameter for a DVR. New XControl methods call the 'Display State Change' Event in the XControl. You can the access the DVR from the Display State In cluster, de-reference the DVR and then you have access to all the methods of the object - hurrah!
It would be really nice if you could make a XControl a member of the object, then it would have direct access to member variables via the object.ctl rather than accessor vi's.
Phill
05-20-2011 04:35 PM
Hey Phill,
I'm not 100% clear on the details, because this thread is so old and I am unfamiliar with it, but it seems like you have the issue handled. I just wanted to let you know that we do have an idea exchange at ni.com/ideas, where you can post ideas for labview development and give feedback on ideas that others have posted. The board is regularly monitored by NI employees, and is a better forum for providing suggestions like yours to our development teams.
Thanks,
12-05-2012 07:43 AM
Just stepped into this 'funny' bug a few days ago and into this very clever post after pinpointing the problem to the xcontrol.... ...needless to say (I suppose you might already know) that setting the value of an xcontrol in a vi by methoding on it, doesn't update the display if the control is not set to visible and or disabled=0. Thanks guys.
12-05-2012 09:49 AM
Hey Daniel,
Already done:
http://forums.ni.com/t5/LabVIEW-Idea-Exchange/XControl-classes/idi-p/1569382
Phill
12-05-2012 10:08 AM
At this time I have decided to move out of the Xcontrol empasse, the application I am working on is already too much rich (in bugs perhaps) to include also these kind of problems. Will get back on them maybe with something simpler some other time....
12-15-2016 02:19 PM - edited 12-15-2016 02:21 PM
10 years later and the part of the bug where writing to an XControl terminal that is not visible is still an issue. It seems completely reasonable to want to update a control before making it visible so it's always displaying fresh data.