LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I open a vi and show the block diagram?

Hi,
I am opening an vi using "Open VI Reference" and "Invoke Method:Open FP", but I want to open the vi and show the block diagram, but I haven´t found any method (Invoke Method) to do that and any property.
Any idea?
Thanks!

Gracinda
0 Kudos
Message 1 of 14
(5,657 Views)
Hello Gracinda,

I'm sorry, but I'm not understanding what you want to do...
Do you want to programatically open a vi and show it's block diagram at run time?
I'm not seeing the use of this...
Can you clarify?

Regards,
Paulo
0 Kudos
Message 2 of 14
(5,647 Views)
Hi Paulo,

I want to open a vi and show the block diagram, automatically, not using the labview menu. It is strange, but I need it to make labview easy.
Do you have any idea?
Thanks in advanced!

Best regards,

Gracinda
0 Kudos
Message 3 of 14
(5,632 Views)
Hi Gracinda,

There are some windows functions to send keystrokes to a window...
Perhaps you you send the keystrokes CTRL+E it will work.

Take a look at the following link:
http://sine.ni.com/apps/we/niepd_web_display.DISPLAY_EPD4?p_guid=B45EACE3EC5756A4E034080020E74861&p_node=DZ53044&p_submitted=N&p_rank=&p_answer=&p_source=External

Hope it helps,
Paulo
Message 4 of 14
(5,632 Views)
Hi Paulo,
Thanks for your help!
But I think that I can´t use this solution because I am working using labview over linux, and in linux is not posible to use API functions,but I am not sure!

Thanks!

Gracinda
0 Kudos
Message 5 of 14
(5,622 Views)
You're right, Gracinda, it is strange.
I'm not usually one for questioning the things that people want to do, but I can see no reason to do this. Is using the menus on Linux so hard that it's worth building a seperate VI only to open your VI? Is it worth all the trouble?
In the spirit of the Paris-Dakar (or Barcelona-Dakar. Whatever you want to call it), I would liken it to a racing driver about to go on a long race and then looking for someone who will open the door of the car for him because he wants to make the race easy. Is it really worth it?

___________________
Try to take over the world!
Message 6 of 14
(5,594 Views)
I am completely agree with you!
I think that the effort is not worth, becuase the labview menus in linux work better than any vi that I can build, and it is not very hard ;)!it is harder waking up early everyday!!
But these vis are not for me!
But I have found a vi (examples/dll/data passing/Call Native Code.llb/Open or Close VI.vi) that opens and shows the block diagram of another vi, but I can´t see the code. I will try it in linux, and we will see if it works!!
Thanks for your help and your example about car race, je je!

Regards,

Gracinda
Message 7 of 14
(5,590 Views)
It works in windows, anyway.
Nice...

___________________
Try to take over the world!
0 Kudos
Message 8 of 14
(5,586 Views)
tst wrote:

> It works in windows, anyway.<br>Nice...

And as far as I can see on any other LabVIEW platfornm too.

Rolf Kalbermatter
Rolf Kalbermatter  My Blog
DEMO, Electronic and Mechanical Support department, room 36.LB00.390
Message 9 of 14
(5,529 Views)

OK, I can come up with a reason.  I have written a program that will search the entire VI Hierarchy of a program and update all of the descriptions for all VIs with the top level program part #, the name of the top level program that the VI is used in, the company copyright info, the ITAR notice, company address, the name of the engineer performing the update, along with the date and time.  This will also place as a background image on all the VIs, a watermark of the company name, legality stuff and the copyright. It works very slick in that if there are thousands of sub-vis, such as what I'm working on now, it goes through all of them, makes sure the data is there as per company policy without having to open every one of them look at them and update or not whichever the case may be. The one portion that is tough is that the program will detect if there is a description written about what funtion the VI performs and if there is not a description, then it pops up a dialog requesting the user to write a description. The problem is that without looking at the block diagram for the VI, it can be nearly impossible to write a description for the functionality of the VI. So is there a way to programmatically open a VI, show its block diagram (this would only be in the case of a missing description) and then upon completion of the updates, close the block diagram? (I already open and close the VI programmatically in order to read the VI DESC and update as needed, but that is in the background and of course you can't see the block diagram).

 

Thanks,

Dan

0 Kudos
Message 10 of 14
(5,016 Views)