Jump to content

ESST

Members
  • Posts

    27
  • Joined

  • Last visited

Posts posted by ESST

  1. HI,

    I have a problem...I want to run a main vi .exe and when it calls the subvi the subvi runs.

    I use the Open VI reference, the Invoke node FP Open and then the Invoke node RUn VI but it doesn't work.

    It shows the subvi front panel but it doesn't run.

    Thanks

    Hi,

    Do you have this problem when running the code under labview, or only when having compiled the exe?

    I had the same problem. Used Open, Control Value Set (variant version), Run VI. Got the same behavior, diagram opened, did not seem to be running. Turns out there was an error in the vi I was opening, it ran once, too fast to notice. When I fixed that, it worked fine, both under Labview and as an Exe. Could it be something like that?

    Espen

  2. I need to build a tab control with many pages (I won't say how many because someone will surely scold me). I'm too lazy to go through and keep doing "Add page after". Is there another way to do this? I've searched through all the invoke and property nodes. There was an entry at NI for doing this with Labwindows, but that doesn't help.

    George

    Hi,

    You could try downloading the scripting.vit from Labview API Group, then modify the "FP" case to something like this:

    post-16028-124707654741_thumb.png.

    Quick and (really) dirty, but seems to work.

    This adds "Test1" to "Test5" as the first five pages of the selected Tab controls when the button is pushed (your tab controls parent vi, must be in edit mode). You will need to have scripting installed, due to the TabControl "Add Page" method.

    Espen

×
×
  • Create New...

Important Information

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