LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Command to open .vi in edit mode

May I know how to use a command to open a .vi file in edit mode, if the vi's name is given.

 

Also if the file is new and not an existing file, how to create and open it in edit mode by command line.

 

Finally, if the file in edit mode is closed, can I detect it by any event cases.

 

Thanks.

 

 

0 Kudos
Message 1 of 2
(4,820 Views)

"turbot" <x@no.email> wrote in message
news:1222074611871-780578@exchange.ni.com...
> May I know how to use a command to open&nbsp;a .vi file&nbsp;in edit mode,
if the vi's name is given.

Use VI Server. Open a reference to the VI, and set the front panel open
property to true.

> Also if the file is new and not an existing file, how to create and open
it in edit mode by command line.

That is not possible. You could use an empty VI template (.vit). Open it,
and when the user is done, he is asked to save it under a different name.

> Finally, if the file in edit mode is closed, can I detect it by any event
cases.

Use dynamic event registeration. When you have a reference to the VI, wire
it to a dynamic event registration node, and select the panel close event.
Then use an event structure to catch the event.

Regards,

Wiebe.



Message 2 of 2
(4,810 Views)