Jump to content

Changin representation of numeric control


CharlesB

Recommended Posts

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?

Link to comment
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

Link to comment
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

Link to comment
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

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.