LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

subvi problem

Hi 

I have problem, actually when i try to create sub vis and when i called then in main Vi  doesn't run. Please help me 🙂 

thanks a lot  

0 Kudos
Message 1 of 10
(3,351 Views)

We are going to need a lot more information.  Ideally post the code.  

 

That having been said, the first thing is to make sure the sub vi can actually run.  If it can't execute then your main VI can't execute

Message 2 of 10
(3,346 Views)

Please help yourself and show your code 🙂

Message 3 of 10
(3,343 Views)

I am sure that all Sub VI already run correctly .  My project is about smart home.

 

0 Kudos
Message 4 of 10
(3,316 Views)

---

I am sure that all Sub VI already run correctly

---

But I'm not shure 🙂

 

Here you compare two strings. Are you sure you want to do exactly that?

e1.png

 

This loop make 1 or 2 iteration. So 500 or 1000 ms delay. This code may be easier.

e2.png

 

Here you run task and stop it almost at the same moment.

e3.png

 

 

 

subVI Door Opnert.vi never stops because you can't press stop button (front panel closed)

 

 

Also why you call some vis as subvi but another call by reference?

0 Kudos
Message 5 of 10
(3,280 Views)

So what do you suggest as a solution if you can please 🙂 

0 Kudos
Message 6 of 10
(3,273 Views)

Describe what you want to get.

0 Kudos
Message 7 of 10
(3,209 Views)

My project is about smart home: i want to control for example home light , garden light , the temperature, irrigation , open and close the door ... 

For home light when i press the switch button or there is a mouvement then lighting the lamp for period of time fixed.

For Garden light depends of sun cell or when the switch button is pressed and the lamp will lighting for period of time fixed previsouly .

The temperature , Labview will send a cooling or heating signal to the system, depending on the value of the sensor and the critical value of temperature that required.

 I hope that you can help me because i have no experience yet at using Labview 🙂

0 Kudos
Message 8 of 10
(3,170 Views)

This code not optimal, but now I haven't enough time

Here light control and climate system only.

emul.png

 

And here tasks control in loop

daq.png

0 Kudos
Message 9 of 10
(3,146 Views)

Thanks a lot sir 🙂 

0 Kudos
Message 10 of 10
(3,133 Views)