12-06-2010 09:10 PM
i have a USB 6221, i m a beginer, so i have a project control temperature by PID, in project i have to control the light 220VAC to change the temperatute, i used moc 3020 anf BTA12, but i can not control it, i have a problem that i can't catch the the zero point phase , any body can help me, i want to catch the zero point by labview using USB6221
12-07-2010 07:54 AM
Have you written any LabVIEW code for this yet? If so, please attach your code so that we can see what you have done to help you out.

12-07-2010 09:50 AM
im a beginer. so i can't write it. if u have a example about ít , can u share me, im so grateful
12-07-2010 09:58 AM
now, i want to measure the temperature by lm35, i can do it, and i can't create PWM signal to control the light 220AC, u can have me to sold this problem, create pulse PWM control the light 220AC, i search example in the internet but not useful. u Can have me, and control PID .
12-07-2010 01:48 PM
Thienbinh,
On the ni.com website, there is a Controls Tutorial which I think will help you get started:
http://zone.ni.com/devzone/cda/tut/p/id/6368
Also, I found this example on PID PWM control by searching ni.com for "PWM" and clicking on "Examples" in the left-hand column.
http://search.ni.com/nisearch/app/main/p/bot/no/ap/tech/lang/en/pg/1/sn/catnav:ex/q/pwm/
If you have the PID toolkit, you can also find examples by going opening up LabVIEW and selecting Help>>Find Examples...
Hope that helps!