05-22-2012 06:19 AM
Hi, I am having trouble running my program.
I have 2 DTOLcreatetask, 1 is for Analog input and the other for Analog output ?
The analog inputs are for manipulating data from sensors, and the analog output is for controlling a valve.
I make 2 buttons for the output, open and close.
First, I run the program, it's working fine but when I press the button, It appear an error log ( Additional required sub system in use )
Can I run 2 or more DTOLcreatetask together ?
Best regards,
Citras
05-22-2012 08:32 AM
It looks like your conflict is in the lower loop. You have the same channels being accessed by the open and closed case structures. Why not just have one case structure with one open/close boolean? That would be much better.
Also, your event structure is an infinite loop since you hard coded a false constant.
05-23-2012 05:31 AM
1- Where is the Timing Function for the While Loops?
2- Why to Cases for Closed and Open? put them in one Case!
3- Use another Architectur like the State Machine!
http://expressionflow.com/2007/10/01/labview-queued-state-machine-architecture/
You can also integrate the Event Structure in the manin Loop.
Open LabVIEW and go to New --> From Template --> Design Patterns --< Producer/Consumer Design Pattern (Events)