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
> Display Object, Labview 7.1 Frontpanel
pjama
post Oct 13 2004, 02:52 PM
Post #1


5 more posts to go!


Member
Posts: 5
Joined: 13-October 04
From: Toronto, Canada
Member No.: 804
LV:7.1


Hello,

I am creating a program that displays some simple data. It draws a pie-chart from 3 numeric values, and also displays a bunch of numbers, percentages, strings and so on.

Everything up to there is fine. My problem involves taking what I have now (above) and making it into a single object. Since I want to display that data for several cases at once, it would be much easier to make it all into one repeatable code/function/object.

Is there a way to group a bunch of objects on the front panel into a single object group, including respective code as well?

Thanks in advance,

-Phil


Tags
(This content has not been tagged yet)
Go to the top of the page
+Quote Post
Ad
post Oct 13 2004, 02:52 PM
Post #















Tags
(This content has not been tagged yet)
Go to the top of the page
Quote Post
didierj
post Oct 14 2004, 05:27 AM
Post #2


Extremely Active
****

Member
Posts: 391
Joined: 6-February 04
From: switzerland
Member No.: 253
Using LabVIEW Since:1997
LV:7.1.1 ,6.1 ,.
Switzerland France Nothing Selected


QUOTE (pjama @ Oct 13 2004, 04:52 PM)
Is there a way to group a bunch of objects on the front panel into a single object group, including respective code as well?
*


The only way to do it in LabVIEW (from version 7.0 up) is to use a subpanel. Creating custom controls the way known from text-based languages is not yet possible.
For further informations on subpanels look at the online help and the examples (menu: File>Find Examples...).

Didier


Tags
(This content has not been tagged yet)
Go to the top of the page
+Quote Post
pjama
post Oct 14 2004, 02:18 PM
Post #3


5 more posts to go!


Member
Posts: 5
Joined: 13-October 04
From: Toronto, Canada
Member No.: 804
LV:7.1


Thanks for the reply.

That way works pretty efficiently. However I am looking to run the same VI with several different values. I think the method you mentioned views the VI 'realtime', so it might not work with what I am doing.

What I tried now, is capturing an image of the front panel for each case and displaying those images. This method has some sort of delay. I think taking images of the front panel might be a slow process.

If you have any ideas, that'd be great. If not, I thank you again for your help thus far.

-Phil


Tags
(This content has not been tagged yet)
Go to the top of the page
+Quote Post
aledain
post Oct 15 2004, 05:42 AM
Post #4


Very Active
***

Member
Posts: 116
Joined: 9-June 03
From: Perth, Western Australia
Member No.: 111
Using LabVIEW Since:2006
LV:6.0.2 ,. ,.
Australia Nothing Selected Nothing Selected


QUOTE (didierj @ Oct 14 2004, 01:27 PM)
The only way to do it in LabVIEW (from version 7.0 up) is to use a subpanel. Creating custom controls the way known from text-based languages is not yet possible.
For further informations on subpanels look at the online help and the examples (menu: File>Find Examples...).
*


But you could combine all your controls into a single cluster, change the code to a subvi with a cluster reference into it. In your application create several copies of the cluster and wire the cluster references to copies (as required) of the subvi.

You can also modify/edit controls (use the spanner) quite extensively including removing parts or hiding bits of them (and including pictures) so perhaps a normal control could be modified too. For a pie chart might a guage work?

cheers, Alex.

--------------------
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the universe trying to build bigger and better idiots. So far, the universe is winning." Robert Cringley.


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: 22nd November 2008 - 04:22 AM