02-21-2011 03:58 PM
HI
my name is Arturo and im from bogota colombia.
im developing a VI for controling temperature, I alredy develop the block diagram program. the purpose is that if the temperature is below the selected on the numeric control, send a signal that turn on the resistance for heating up, this heat should keep rising up until the max. temperature selected on the other numeric control is met, then the resistance have to turn off until the temperature drops to the min. temperature value selected en the first numeric control.
know on I cant get the last part. here are some pics of my block diagram progam
I hope someone can help my to modify mi VI. I need for my thesis so I can graduate.
THANKS TO ALL
Arturo Cortes J.
02-22-2011 04:52 AM
Please clean up your wires a bit so they don't look like spaghetti. Also make your blockdiagram to fit a screen.
Felix
02-22-2011 07:22 AM
A sequence structure isn't a case, i assume you only want to heat OR cool, not do it all in sequence.
How do you run this vi? I hope it's a main loop with a wait or similar we see hinted, so you dont use Run continously.
Can you post the vi?
/Y
02-22-2011 07:47 AM
Hi Arturo,
If I understand correctly you will have states to heat and cool using an on/off control. I suggest you to develop in a state machine design.
The two links below may help you with this.
http://zone.ni.com/devzone/cda/tut/p/id/7532
http://decibel.ni.com/content/docs/DOC-4594
Regards,
Abel
NI Brazil
02-26-2011 12:24 PM
HI
thanks for your comments. now, the purpouse of the VI is to activate a resistance that will heat water, but the idea is that the user select the minimun and maximun temperature to control, so if the temperature is below the minimun selected it should get on and continue to heat up to the maximun selected temperature. when the temperature rech the maximun selected the resistance should turn off, and cold down the water until the minumin selected temperature is reached.
i hope you understand me, the VI I show here is a simulated one, just for get the programing. th real one is going to work with the DAQ USB6008
THANKS
Arturo Cortes
02-26-2011 03:44 PM
HI
Well i look the state machine and reprogram mi VI but i have some questions that i hope you can help me. i want to know if the programing is working so i wired the boolean indicators to the emited signal so i can know if its on or off but when i wired to the exit of the selector and run the VI labview send an error.
THANKS for your help i hope these one could work properly
Arturo Cortes
02-26-2011 07:08 PM
HI
I want to thanks you all, specially to Abel with the state machines i achive what i needed now my VI runs properly (the simulated one) I hope the real one works as fine as this one.
Arturo Cortes J
02-27-2011 08:42 AM
If you have no input to the Boolean indicator i assume you'll get a Null or Void value which might cause the crash.
/Y