LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

subvi

hello ,

I am new in Labview. I was trying to make a subvi and use it in a integrated vi to run a machine. The vi that I want to use as a subvi talks to a software in the computer and the software talks to the controller for the machine., all the VI is doing is initializing connection betwen labview and the software, not the controller. However, I am not able to get this simple program done. It will be great if anyone can help me. It is sauch a trivial probelm to be bothered so much.
0 Kudos
Message 1 of 6
(3,158 Views)
can you save for LabVIEW 7.1 ( save for previous option in file menu) or paste a pic of block diagram??
0 Kudos
Message 2 of 6
(3,122 Views)
You have two stop buttons.  One for each loop.  Neither of which are wired in the connector pane.  When you use this vi as a subvi, there is no way to tell it to stop.  I imagine it starts and just keeps running till you pull the plug.  I would suggest rethinking how you want to control the loop execution.

I attached a 7.1 save for those without 8.0
0 Kudos
Message 3 of 6
(3,115 Views)

Had a look at VI and i second Jason's observation.

If you want it as a sub VI, set its Front Panel window appearance as 'show front panel when opened' and ' close panel if originally opened' in VI properties

You can also set it by placing this VI on block diagram of main VI, right click on teh sub VI, select sub VI node set up option.

Hope this helps

Regards

Dev

0 Kudos
Message 4 of 6
(3,109 Views)
Hello!!

Thanks everyone for taking a look at it. The suggestion seems to work for this part. However, I have another subvi where I have to collect data continuosly. I am working on it right now. I am attaching the file. If anyone come up with any idea that will be great. I will be posting shortly what I tried to do in my VI. as soon as I get something done,
0 Kudos
Message 5 of 6
(3,091 Views)
I have been thinking about controlling the loop execution. SInce this VI's came with the machine and written by someone else I am not really sure whether to mess iwth it or not, I am playing with it with an addiitional copy of the program.

If I am getting you right Jason, are you trying to say that the loop in the main VI needs to stop to pass the value on the subvi?
Another problem that I am having is , whenever I use it as a subvi. ( both the program I sent so far) , the input (push button ) does not change its state. It supposed to go bak to false after releasing. the mecnical behavior is set to LATCH when Released.

I do not know how to approach the problem.

Is it possible for anyone to write a samll vi which will handle the data acquisition from the last program i attached ( GetCurrentData.VI)/

Thanks
0 Kudos
Message 6 of 6
(3,075 Views)