Jump to content

how to dynamic create Splitter Bars


Recommended Posts

QUOTE(hink @ May 29 2007, 01:46 AM)

just like this user interface

Hi hink,

LabVIEW can create the GUI shown (LV 8 intoduced splitter bars), however dynamic splitter bars are a problem. I can think of several solutions:

  • Picture control, in that case you draw every pixel yourself
  • seperate windows, each control has it's own window, that you move around from some controller VI

Ton

Link to comment

Generating objects programmatically is a feature that is called scripting. This is a hidden feature

that can be enabled by a special LabVIEW.ini entry (reserved only for NI).

In LabVIEW 7.1.1 this feature can be made visible by adding the keyword "SuperPrivateScriptingFeatureVisible=True" in the LabVIEW.ini.

Have a look into the "rusty nails" -> "scripting" topic in this forum.

Unfortunately this keyword does not work any more. NI has changed this in LabVIEW 8.0

Wolfram

Link to comment

QUOTE(hink @ May 30 2007, 05:22 PM)

the menthod i found now is make enouge splitter bar, and show /hide them in the programe, but the effect is not very good

Show us what you've done - maybe we could make suggestions on how to make it look better.

Link to comment

This can be done by using subpanels to subpanel VIs containing one splitter bar and two subpanels to create arbitrary splitter bars (recursively). However, this technique tends to crash LabVIEW.

WARNING: These examples will crash LabVIEW.

 

[Moderator Note]

This post contained some kind of attachment links which could not be found, so they've been removed. A best effort was made to find these missing attachments but unfortunately could not be found.

  • Like 1
Link to comment
  • 2 weeks later...

QUOTE(Wolfram @ May 29 2007, 10:01 AM)

Generating objects programmatically is a feature that is called scripting. This is a hidden feature

that can be enabled by a special LabVIEW.ini entry (reserved only for NI).

In LabVIEW 7.1.1 this feature can be made visible by adding the keyword "SuperPrivateScriptingFeatureVisible=True" in the LabVIEW.ini.

Have a look into the "rusty nails" -> "scripting" topic in this forum.

Unfortunately this keyword does not work any more. NI has changed this in LabVIEW 8.0

While this is all correct there is one extra caveat. You can not use scripting for changing VIs that are non idle. This means to do what the OP would want you would have to write a different VI that loads the VI to modify into memory, modifies it and only after all modifications are done, does start it. And whenever you want to change it again the VI needs to be stopped, modified and restarted. Basically not something I would ever consider to do.

Rolf Kalbermatter

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
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.