LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

open file with reference

Hi

I want to open files with a reference in hidden mode. Is this possible?
Because I want to make a program where the user can choose a new test station and then the controls and indicators will be created (or become visible) and the subroutine begins to run.
Does anybody have a good idea or even an example how to do this?

Best regards,

Yves
0 Kudos
Message 1 of 17
(3,767 Views)
Hi Yves,
what does "hidden mode" mean? Do you want to open a text (or binary) file?

Greets, Dave
0 Kudos
Message 2 of 17
(3,760 Views)
@ daveTW

No, I want to open the subvi in background without seen it. In this subvi runs a continuous task which can be stopped.
0 Kudos
Message 3 of 17
(3,753 Views)
Hi Yves,
You could control your Test- VI with a global variable as shown below. This solution uses two independent while- loops. The Test-VI won't be opened and does the work invisible.



This is the Main-VI



And this is the Test-VI



Greets, Dave


Message Edited by daveTW on 09-28-2006 03:30 PM

Greets, Dave
Download All
0 Kudos
Message 4 of 17
(3,747 Views)
Hi Dave

Thanks for your answer. Well, the problem lays a bit deeper:
This is a solution I'm already using. But know I have to adapt the program for several stations. (60 or more)
And I think there must be a better solution than having 60 subvi's (or loop) in the main loop.
That's why I started to think about instances and references... BUT I actually don't have any experience with this and I would appreciate any help and hint.

Regards,

Yves
0 Kudos
Message 5 of 17
(3,741 Views)

You can use VI Server to run a VI. The attached picture is a simple example. There are numerous properties and methods available in LabVIEW. The shipping examples show some of the others and there have been a lot posted to this forum as well.

Message Edited by Dennis Knutson on 09-28-2006 09:14 AM

Message 6 of 17
(3,732 Views)
@ Dennis:

Do I have to use 60 loops if I want to start 60 different programs? Or is there another possiblity?

Thanks for your great help.

Yves
0 Kudos
Message 7 of 17
(3,709 Views)
You can have the choice if you modify a bit Dennis' example.

For instance you can put in a list (or ring or dropdown or enum) the names of the progam you launched and when you want to stop one of then, you first select it in the list and then click a button "stop this VI", you then get the appropriate reference to stop the VI.

Is my explication is not clear enough or do you need an example VI ?

We have two ears and one mouth so that we can listen twice as much as we speak.

Epictetus

Antoine Chalons

Message 8 of 17
(3,706 Views)
Although I think I get it I would appreciate an example. (Just tried it but I must have misunderstood something because it didn't worked.)

Thanks very much

Yves
0 Kudos
Message 9 of 17
(3,696 Views)
Here is a quick example, I haven't tested it... hope it works without any change 😉


We have two ears and one mouth so that we can listen twice as much as we speak.

Epictetus

Antoine Chalons

Message 10 of 17
(3,690 Views)