CharlesB Posted January 20, 2005 Report Share Posted January 20, 2005 Hi all, I started yesterday to play a bit with the scripting of VIs. I must say it is a real pleasure! But something I haven't found yet is how to change the representation of a created numeric control? I'm creating it through "New VI object.vi" (from OpenG toolkit), but it always created as a double. How can I do to choose that? Quote Link to comment
David Boyd Posted January 20, 2005 Report Share Posted January 20, 2005 But something I haven't found yet is how to change the representation of a created numeric control?3604[/snapback] If you know how to get a reference to a numeric control (Generic->GObject->Control->Numeric), one of its properties is 'Representation'. The parameter is a U32which appears to be the index of the floating palette for selecting representation. It is, of course, only writable on a control owned by an idle VI, since it alters the VI's code. Hope this is helpful. Regards, Dave Quote Link to comment
CharlesB Posted January 21, 2005 Author Report Share Posted January 21, 2005 If you know how to get a reference to a numeric control (Generic->GObject->Control->Numeric), one of its properties is 'Representation'. The parameter is a U32which appears to be the index of the floating palette for selecting representation. It is, of course, only writable on a control owned by an idle VI, since it alters the VI's code. 3616[/snapback] I don't know what I am doing wrong, but I can't find such a property... I attached what I use to create a control, what is wrong with it? Thanks Download File:post-1401-1106317485.vi Quote Link to comment
David Boyd Posted January 23, 2005 Report Share Posted January 23, 2005 I don't know what I am doing wrong, but I can't find such a property...I attached what I use to create a control, what is wrong with it? Thanks 3620[/snapback] Perhaps there is more scripting that you have not yet encountered. Attached is your VI with modifications. I hope this helps. With best regards, Dave Download File:post-195-1106467549.vi Quote Link to comment
CharlesB Posted January 24, 2005 Author Report Share Posted January 24, 2005 I get it now. Thanks a lot for your help! Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.