02-26-2007 05:09 PM
02-27-2007 05:22 PM
03-16-2007 06:54 PM
Hi Mike,
Thanks for your suggestion,Well I looked into the state machine example and came up with following code to bring out thermal cycling.Well when I am running it,I am unable to see any data on graph chart probably what I think that the program comes in some loop.I need your help inorder to make it run properly.Please have a look at my VI.In order to explain you better I used a case structure to have three cases running one by one.In each case there is a PID controller subVI which basically brings the temperature to set point.there is also a loop to compute hold time,so basically what I want to do is that when the user gives three setpoint temperature and corresponding hold time (its the amount of time for which the setpoint temperature will hold before going to next setpoint)the program should run like this ,the PID controller brings the temperature to first setpoint and than it should hold for specified amount of time than it goes to second setpoint and hold there for certain time and than goes to third and again to first...so on unless user stops or it should run for given number of cycles when each cycle contains all three setpoints.I used Frame 1,2,3 to run each of them one by one but some how the program goes in loop.
I would really appreciate if you can help me to develop such program.
Thanks
with regards.
Ahsan
03-19-2007 06:29 PM
03-19-2007 07:06 PM
Hi Mike,
Thanks a lot.Well I have attached a powerpoint slide in order to explain my code.I am not sure this is the best or correct way to do it but it will give you some idea about what I actually want to accomplish.If you have any other better way to do this please let me know.I have this temperature control VI (part 1 in slides)with a setpoint and PID control and I want to use it to bring out thermal cycling.Basically i need to change setpoint on condition when the setpoint is equal to the output from PID but after holding it for certain amount of time.and than the temperature control VI takes new setpoint and hold the temperature output for certain period and goes to new setpoint.This should keep on going in a cycle and continues on unless and until we want to stop.I was also thinking whether we can use timed sequence structure to bring out this operation.Please advise me and help me to generate such code for my application.
Looking to hear from you soon,
with regards,
Ahsan
03-20-2007 09:30 PM