Jump to content

show a Block Diagram


Recommended Posts

How can I make a Block Diagram the active window? I'm writing a program that searches a VI for free labels (that indicate test coverage) and I need to get the BD to the front so the Object Highlite is visible. It's working, but I need to manually open the BD and move my interface out of the way.

Link to comment

Hmmmm. I wonder if we need to have the NI Unit Test framework work more tightly with NI Requirements Gateway...

We're in the middle of planning our 2010 capital budget and I suggested that we purchase Requirements Gateway licenses, but the idea was shot down without mercy. The IT department shot down another idea to use SVN, but at least they had a reason (we use Telelogic Synergy).

PS - Unit Test? What's a Unit Test? We don't need no stinkin' Unit Tests! (I misread Mr. Mussa's poll as "NO Unit Test Framework" and voted for that. I've since fixed my answer.) That feels like another purchase request that would be shot down. At least there's an alternative.

Link to comment

This also works, with the added benefit of opening the VI. My problem was in trying to find a method of the BD instead of the VI. I included the Code Capture of the Traverse For References VI to show how I get an array of all my free labels (thanks Darren).

post-7534-124758541964_thumb.png

Link to comment

This also works, with the added benefit of opening the VI. My problem was in trying to find a method of the BD instead of the VI. I included the Code Capture of the Traverse For References VI to show how I get an array of all my free labels (thanks Darren).

post-7534-124758541964_thumb.png

hmm I didn't know about that method.. Does anyone know what is this parameter "host window"? There is no documentation in LabVIEW about it and apparently the only acceptable value is "0" ; if I put more than zero then I can't open the BD anymore, I have to close the VI and re-open it to be able to see the BD..

Link to comment

hmm I didn't know about that method.. Does anyone know what is this parameter "host window"? There is no documentation in LabVIEW about it and apparently the only acceptable value is "0" ; if I put more than zero then I can't open the BD anymore, I have to close the VI and re-open it to be able to see the BD..

That must be the hWnd in other languages. By specifying "0", it's effectively the same as "null" is text languages, thus creating a new one.

Under Windows, it's "h" for handle... I guess it is called "host" to be more cross-platform.

  • Like 1
Link to comment

PS - Unit Test? What's a Unit Test? We don't need no stinkin' Unit Tests! (I misread Mr. Mussa's poll as "NO Unit Test Framework" and voted for that. I've since fixed my answer.) That feels like another purchase request that would be shot down. At least there's an alternative.

Maybe I should have had 2 options -- 'None' and 'What's a unit test?' ... polling is a tricky thing to do right I guess.

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.