Jump to content

Could LabView add component at runtime?


Recommended Posts

QUOTE (mamingcao @ Jul 24 2008, 03:08 AM)

My company are considering use LabView to do the GUI designed.

But could LabView add GUI component at runtime ? like a button or a indicator.

It hard to find Doc about this. Thanks!

It would be really difficult (if possible) and involves scripting, dinamic calling of VIs, etc. But maybe it's not necessary, if you just need indicators or buttons to appear in some cases, create them and make them visible / invisible / disabled depending on the case.

Saludos,

Aitor

Link to comment

QUOTE (Aitor Solar @ Jul 24 2008, 02:50 PM)

It would be really difficult (if possible) and involves scripting, dinamic calling of VIs, etc. But maybe it's not necessary, if you just need indicators or buttons to appear in some cases, create them and make them visible / invisible / disabled depending on the case.

Saludos,

Aitor

Thanks for you help. But may be there is hundreds of indicator......Could OOP help this? May be create some object?

Link to comment

QUOTE (mamingcao @ Jul 24 2008, 05:42 AM)

If you are familiar with OOP concepts then http://forums.lavag.org/Q-Re-OOA-D-please-critique-structure-t11313.html&pid=48049#entry48049' target="_blank">this thread may be of interest to you.

In that thread I posted a "proof of concept" example that demonstrates that it is possible to make it look like you are adding controls and indicators to the FP at run-time. THat example also demostrates that the objects to be instanciated do NOT have to be known at development time.

Please note, that code is just a proof of concept. I have been working on a formal global solution that allows an un-specified number of picture controls be used in the application, and hope to complete it over the next month or two. (No I will not be posting the final results :rolleyes: .) The final version will differ greatly in structure since the calasses that realize the assorted objects will have to be implemented as active objects to support things like scrolling strings, blinking, etc.

Please keep us posted on what you really need and how you end up takling this challlenge.

Ben

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.