Jump to content

"Hide Control" on typedef constants bug


Bruce Moyer

Recommended Posts

Here's a wierd one (a "bug") that I discovered while experimenting with typedefs and diagram terminals that you may want to try out (in LV7.0-7.1.1).

It's possible to create constants on the diagram that are impossible to remove. Here's how.

Create a typedef and place a constant of it on the diagram. Right-click on the constant and select "Advanced"..."Hide Control". Once you do you permanently have this typedef constant affixed to your VI. It isn't possible to move or select the typedef constant anymore and you can't delete it. You can still wire it however.

Bruce Moyer

Link to comment

Here's a wierd one (a "bug") that I discovered while experimenting with typedefs and diagram terminals that you may want to try out (in LV7.0-7.1.1).

It's possible to create constants on the diagram that are impossible to remove. Here's how.

Create a typedef and place a constant of it on the diagram. Right-click on the constant and select "Advanced"..."Hide Control". Once you do you permanently have this typedef constant affixed to your VI. It isn't possible to move or select the typedef constant anymore and you can't delete it. You can still wire it however.

Bruce Moyer

Link to comment

Very interesting. This might provide a way of "watermarking" a VI, or creating an indelible trademark.

It also creates an effective way to place a timelimit on how long an application runs, even if you provide source code. Put a typedef cluster constant on the diagram and wire or not, and let the software run. After you exceed the timelimit have the application delete the typedef VI. This will break your application the next time it is restarted, with no way to fix unless the end user gets another copy of the typedef.

Link to comment
  • 7 months later...
Here's a wierd one (a "bug") that I discovered while experimenting with typedefs and diagram terminals that you may want to try out (in LV7.0-7.1.1).

It's possible to create constants on the diagram that are impossible to remove.  Here's how.

Create a typedef and place a constant of it on the diagram.  Right-click on the constant and select "Advanced"..."Hide Control".  Once you do you permanently have this typedef constant affixed to your VI.  It isn't possible to move or select the typedef constant anymore and you can't delete it.  You can still wire it however.

Bruce Moyer

3651[/snapback]

That's a new bug too. In LV 6.1 the Advanced tab is grayed out on a type def constant.

Link to comment
  • 6 months later...
Very interesting. This might provide a way of "watermarking" a VI, or creating an indelible trademark.

Update:

I tried this in LabVIEW 7.1 and it works as described. In LabVIEW 8.0, the Advanced menu pull-right is disabled. If you placed one in LabVIEW 7.1 and open the VI in 8.0, it is still "stuck", but you can't "stick" a new one.

Bob Young

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.