Jump to content

Ctl reedited is invalid after saved


Recommended Posts

Posted

image.png.f8fa499c08717e4ad156548532c9ed07.png

Hi everyone,

there was a code's picture that reedit ctl‘s Booltext and saved to new file, it workd ok in development environment,but new ctl could be invalid when it run as exe at runtime ,I did not how to solute it.Could you give me some suggestion.

Thank you.

Posted
42 minutes ago, ensegre said:

image.png.a231771d72d1735b8869fd788eaeb5c4.png

I do not know what is a LV stringApp instance, but I doubt that it is exactly a loadable control. What are you trying to achieve exactly?

 

ensegre, thank you for your reply, I want to achieve one application(exe) that has the function: edit a template boolean ctl's BoolText and save to new boolean ctl by programming. And the code works fine in development environment, but it is invaild at runtime when used the exe built.

Posted

I would have said why don't you use Save.Instrument which is a public method, but I see that it is not supported in runtime, and that is stated expressly. A fortiori, a private method which "must wait until the user interface isidle" might be a completely IDE thing.

Posted
14 hours ago, ensegre said:

I would have said why don't you use Save.Instrument which is a public method, but I see that it is not supported in runtime, and that is stated expressly. A fortiori, a private method which "must wait until the user interface isidle" might be a completely IDE thing.

@ensegreI had watch a video that demonstrate the function on the YouTube, but I did not remember the link of it

Posted (edited)

Many functions in LabVIEW that are related to editing VIs are restricted to only run in the editor runtime. That generally also involves almost all VI Server functions that modify things of LabVIEW objects except UI things (so the editing of your UI boolean text is safe) but the saving of such a control is not supported.

And all the brown nodes are anyways private, this means they may work, or not, or stop working, or get removed in a future version of LabVIEW at NI's whole discretion. Use of them is fun in your trials and exercises but a no-go in any end user application unless you want to risk breaking your app for several possible reasons, such as building an executable of it, upgrading the LabVIEW version, or simply bad luck.

Edited by Rolf Kalbermatter
Posted
17 hours ago, Vandy_Gan said:

@Zou Also I would modify text's property ,e.g. font ,size , position .Becuase I would like to achieve to modify batch more ctrls 

And must you really do it in a compiled executable? Cosmetic properties you can change programmatically on the fly even in an exe.

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.