|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#2
|
|||||
|
|||||
|
Re: Periodic Tasks
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. |
|
#3
|
|||
|
|||
|
Re: Periodic Tasks
Should I delete the example code? And am I done with the compressor code?
|
|
#4
|
|||
|
|||
|
Re: Periodic Tasks
It depends. Are you using a compressor?
|
|
#5
|
|||
|
|||
|
Re: Periodic Tasks
Yes i am.
![]() |
|
#6
|
|||
|
|||
|
Re: Periodic Tasks
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!
|
|
#7
|
|||
|
|||
|
Re: Periodic Tasks
So in other words, this:
![]() |
|
#8
|
|||
|
|||
|
Re: Periodic Tasks
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.
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|