LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Variable timed loop for equipment control profiles?

I have three pieces of gear (temp-humidity chamber, power distribution unit, and variable load) I need to control for a test I am doing. Could someone please give me an overview of how to best work out the timing on the profile or point me to an article or something. I've searched around but I can't seem to find any info on what I need. To be clear, the program will likely read an XML file with instructions like:

 

Step 1: Set chamber to 50C/10%RH; power switch 1 on, 2 off; load at 50% for 20 minutes,

Step 2: Chamber to 50C/90%RH, both switches on, load at 100% for 1 minute

etc.

 

I'm comfortable with XML and commanding the equipment. And I've seen timed loops, but the variability is throwing me off. A few years ago I created a chamber simulation for my senior project that used message queues and producer consumer architecture, but the timing was never right. So if anyone could whip something, point me in the right direction, or give me the correct search term it would really help.

 

Thanks,
Simon

 

 

0 Kudos
Message 1 of 3
(2,774 Views)
I don't see where a timed loop is a reasonable approach. Sounds like a simple state machine. You can use the Elapsed Time function to control the timing. The entire profile could be a cluster array.
Message 2 of 3
(2,766 Views)

The State Machine is your friend here.  You will want a state for Initialization, Read Profile, Get Test Step, Set Chamber, Set Power Switches, Set Load, Idle, Check Time, and Close.  You may need more, but these are the ones I am recommending.  Create a diagram showing how you would want to change from state to state.  The idea for the "for X minutes" is to bounce back and forth between the Check Time and Idle states.  The Idle state is just to check for user commands (like Abort).  In the Check Time, you just use the Elapsed Time to check to see if your time limit has passed.  Once your time has elapsed, go to the next step.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
Message 3 of 3
(2,762 Views)