04-07-2016 01:25 PM
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
04-07-2016 01:29 PM
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
04-07-2016 01:30 PM
Please help yourself and show your code 🙂
04-07-2016 02:45 PM
I am sure that all Sub VI already run correctly . My project is about smart home.
04-07-2016 03:17 PM
---
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?
This loop make 1 or 2 iteration. So 500 or 1000 ms delay. This code may be easier.
Here you run task and stop it almost at the same moment.
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?
04-07-2016 03:32 PM
So what do you suggest as a solution if you can please 🙂
04-08-2016 10:42 AM
Describe what you want to get.
04-08-2016 03:35 PM
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 🙂
04-08-2016 04:15 PM
This code not optimal, but now I haven't enough time
Here light control and climate system only.
And here tasks control in loop
04-08-2016 04:32 PM
Thanks a lot sir 🙂