LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

initial action of VIs

Hello everybody
I have some vi which run some actions when I try to open it (not
run). So by clicking on it twice it does something. I wonder, how
I can check what it is doing, and further more how to make my
vi's to run some stuff after clicking on it?
Many thanks for answers

PP
0 Kudos
Message 1 of 6
(2,868 Views)
Even i didn't understand or the first answer is too obvious, excuse me in any case, or correct me if necesary. What about looking at the diagram?

To make a vi run when double clicked, you can check "run when opened" option in vi setup.

Hope this helps
0 Kudos
Message 2 of 6
(2,868 Views)
Gorka Larrea wrote:
>
> Even i didn't understand or the first answer is too obvious, excuse me
> in any case, or correct me if necesary. What about looking at the
> diagram?

:), The thing is like follows: The diagram
inside the vi runs when you whant it to run e.g. by clicking the
go button. The situation what I am talking about is when your vi
is inside other vi, and you just whant to go into this and double
click on it. Then it runs something which is not connected with
the diagram inside (no brakepoints work). What is more important
majbe is that it runs only the very first time you click it. When
you close the vi and click it once more it is not going to run.
This is like initialisation action, and I can not figure out whre
to find the comm
ands and why it is going on.

> To make a vi run when double clicked, you can check "run when opened"
> option in vi setup.

But it will run the vi every time I click it,as I suppose, this
is not the problem here.

Best regards
PP
0 Kudos
Message 3 of 6
(2,868 Views)
Well, i have no idea what are you talking about! Perhaps an example will help. Must be in LabVIEW 5.0 version, is the only one i have. Hope this way i can even imagine what you mean.
Good luck
0 Kudos
Message 4 of 6
(2,868 Views)
Only thing I can imagine from this is that you have a main VI, which has a
sub VI within it. You go into the sub VI and run it, no problem. You then
open the sub VI diagram and put breakpoints in. You press run, but you press
run on the *main* vi and not the *sub* vi. Breakpoints in the sub VI will
not have any effect until the main VI calls it.

Put the break points in and then make sure you press the run button of the
window that has the diagram with the breakpoints; this way you know you're
running the right program.

If I've got the wrong end of the stick, then as Gorka I suggest you post an
example somewhere along with instructions to reproduce the problem so we can
look.

Pawel Pocwiardowski wrote in message
news:3BB2B56
A.687764BD@reson.dk...
>
>
> Gorka Larrea wrote:
> >
> > Even i didn't understand or the first answer is too obvious, excuse me
> > in any case, or correct me if necesary. What about looking at the
> > diagram?
>
> :), The thing is like follows: The diagram
> inside the vi runs when you whant it to run e.g. by clicking the
> go button. The situation what I am talking about is when your vi
> is inside other vi, and you just whant to go into this and double
> click on it. Then it runs something which is not connected with
> the diagram inside (no brakepoints work). What is more important
> majbe is that it runs only the very first time you click it. When
> you close the vi and click it once more it is not going to run.
> This is like initialisation action, and I can not figure out whre
> to find the commands and why it is going on.
>
> > To make a vi run when double clicked, you can check "run when opened"
> > option in vi setup.
>
> But it will run the vi every time I click it,as I supp
ose, this
> is not the problem here.
>
> Best regards
> PP
0 Kudos
Message 5 of 6
(2,868 Views)
I have seen something similar when the subVI has a VISA control on its front
panel.
When opening the subVI panel a first time it takes some time (few seconds) ,
likely to load some VISA resources. It is not running actually, just
loading. Is that the behavior you see with your VI?

Jean-Pierre Drolet



"Pawel Pocwiardowski" a ecrit dans le message news:
3BB19B75.6C1F7F8A@reson.dk...
> Hello everybody
> I have some vi which run some actions when I try to open it (not
> run). So by clicking on it twice it does something. I wonder, how
> I can check what it is doing, and further more how to make my
> vi's to run some stuff after clicking on it?
> Many thanks for answers
>
> PP


LabVIEW, C'est LabVIEW

0 Kudos
Message 6 of 6
(2,868 Views)