LAVA Forums Buy cool LAVA gear Forums RSS Feed

Welcome Guest ( Log In | Register )

> Related links

Check out our User Interface Code Repository Files or visit the LabVIEW Wiki User Interface Portal


Tags
(This content has not been tagged yet)
 
Reply to this topic Start new topic
> Code In User Controls?
CraigGraham
post Mar 12 2004, 12:30 PM
Post #1


More Active
**

Member
Posts: 45
Joined: 4-March 04
Member No.: 292
LV:7.0


I'm doing a custom control in which it would be useful if I could add code. I know we never had this ability before 7, but when the need arose I had a flash back to when I first started to play with Labview 7 and at the time I had a "wow" moment where I thought I could actually do this.

Am I going mad?

--------------------
Dr. Craig Graham, Software Engineer
Advanced Analysis and Integration Limited, UK.


Tags
(This content has not been tagged yet)
Go to the top of the page
+Quote Post
Ad
post Mar 12 2004, 12:30 PM
Post #















Tags
(This content has not been tagged yet)
Go to the top of the page
Quote Post
Michael_Aivaliot...
post Mar 12 2004, 03:07 PM
Post #2


Confucius say: Crowded elevator always smell different to midget
Group Icon
*****

Admin
Posts: 2367
Joined: 13-October 02
From: Planet Earth
Member No.: 2
Using LabVIEW Since:1994
LV:8.5 ,8.2.1 ,7.1.1
Greece Canada United States My Blog My Gallery


I guess this should be a wish-list item. As fas I'm aware, this is not possible yet. I guess the closest thing would be to create a sub-vi with the code and feed-in a ctrl reference to the control of interest. Would this work for you? What exactly do you want to do with the custom code that can't already be done with conventional methods?

--------------------


Tags
(This content has not been tagged yet)
Go to the top of the page
+Quote Post
CraigGraham
post Mar 12 2004, 03:56 PM
Post #3


More Active
**

Member
Posts: 45
Joined: 4-March 04
Member No.: 292
LV:7.0


That's what I've done, but it's irritating. I have to feed in a reference to the picture ring, a reference to a control boolean hidden next to the picture and a reference to the stop button and just launch the thing off to one side.

I wanted an "animated boolean"- static image when false and an animated image when true. Easy enough with a picture ring, but it would have been nice to be able to feed a boolean into a custom control and have a loop in the custom control cycling through the images in the true state.

Always annoying when my memory starts playing tricks.

--------------------
Dr. Craig Graham, Software Engineer
Advanced Analysis and Integration Limited, UK.


Tags
(This content has not been tagged yet)
Go to the top of the page
+Quote Post
Michael_Aivaliot...
post Mar 12 2004, 04:51 PM
Post #4


Confucius say: Crowded elevator always smell different to midget
Group Icon
*****

Admin
Posts: 2367
Joined: 13-October 02
From: Planet Earth
Member No.: 2
Using LabVIEW Since:1994
LV:8.5 ,8.2.1 ,7.1.1
Greece Canada United States My Blog My Gallery


Oh, now I know what feature you might have seen. yes.gif

This comes back to "playing" with graphics programs. You can now add animated GIF's to your controls. This will do exactly what you want. No special thing you have to do just generate 2 different animated GIF's in your graphics package and then place it in the 2 different states.

--------------------


Tags
(This content has not been tagged yet)
Go to the top of the page
+Quote Post
CraigGraham
post Mar 16 2004, 07:49 AM
Post #5


More Active
**

Member
Posts: 45
Joined: 4-March 04
Member No.: 292
LV:7.0


Now I know what my "wow" memory was- it was the ability to add code to custom probes!

So I guess the ability to add code to custom controls isn't a huge distance away.

--------------------
Dr. Craig Graham, Software Engineer
Advanced Analysis and Integration Limited, UK.


Tags
(This content has not been tagged yet)
Go to the top of the page
+Quote Post
rolfk
post Apr 21 2004, 12:41 PM
Post #6


<customize this text>
*****

Premium Member
Posts: 1012
Joined: 9-April 04
From: Rotterdam
Member No.: 349
Using LabVIEW Since:1992
LV:8.5.1 ,8.2.1 ,7.1.1
Netherlands Switzerland Nothing Selected


QUOTE (CraigGraham @ Mar 16 2004, 02:49 AM)
So I guess the ability to add code to custom controls isn't a huge distance away.

Another idea might be to use sub panels for this. Create the control as a subVI with all the code you might feel necessary and allow some sort of communication to the main VI for instance through user registered events or queues. Then whenever you need the control insert it with a simple call into a sub panel control.

Rolf Kalbermatter


Tags
(This content has not been tagged yet)
Go to the top of the page
+Quote Post

Reply to this topicStart new topic

 




Time is now: 1st December 2008 - 08:46 PM