Log in

View Full Version : Periodic Tasks


DeadlyJohny
25-02-2012, 21:17
I noticed THIS (http://i.imgur.com/LDESe.png) in the Periodic Tasks section. Does this mean that I have to do something with all the motors and solonoids and everything or what? I'm confused.

Mark McLeod
25-02-2012, 21:20
You don't have to do anything in Periodic Tasks, other than what you've done with the compressor loop.

The rest of that is just an example and an empty framework of what you could do.

DeadlyJohny
25-02-2012, 21:46
Should I delete the example code? And am I done with the compressor code?

DominickC
25-02-2012, 21:48
It depends. Are you using a compressor?

DeadlyJohny
25-02-2012, 23:17
Yes i am. :)

DominickC
26-02-2012, 07:45
Alright, then all you need to do is remove the Diagram Disable/Enable Structure from the Loop in Periodic Tasks.vi. Then you're all set to use the compressor elsewhere in the code!

DeadlyJohny
26-02-2012, 12:32
So in other words, this:

http://i.imgur.com/kskTx.png

DominickC
27-02-2012, 16:06
Pretty much. To get rid of unneeded code, delete everything other than the While loop controlling the LED flash rate and your compressor code. I'd also right click on the Diagram Enabled structure and click Remove Diagram Enable Structure, as it's not needed.