07-11-2006 12:00 PM
07-11-2006 11:07 PM
08-21-2006 06:45 AM
Hi again,
I want to make a temperature control, and I want to make it with a microcontroller (16f84) and with labview. The microcontroller will control the temperature, its the most important part of the project. With the micro you can set the temperature, sensibility (error) etc., but i want to control all these options with labview too. This is: if a want to change the temperaure, I can change with the micro, but I want to change it with labview too. Can you give me an idea to make this?
Thanks a lot
David
08-21-2006 08:38 AM - edited 08-21-2006 08:38 AM
Are you talking about the PIC16F84?
I am not sure what is to be gained by using the PIC as an intermediary. I'd just use the LABVIEW to control the temperature directly whatever it is.
What is this temperature device the PIC is interfacing to?
Message Edited by nyc on 08-21-2006 09:39 AM
08-23-2006 03:28 AM
yes, it's the pic16f84. And the device is a sensor that gives the temperature to the pic. Then, the pic gives the temperature to labview.
I can do it all with only labview I know, but its a project for the university.
Thanks a lot
David
08-23-2006 08:05 AM
08-24-2006 03:45 AM
08-28-2006 03:12 AM
hi again,
I send with the microcontroller a value of temperature, and I receive ok with labview. But, when I send with labview the temperature, the micro only receives the first number. For example, I send 25, the micro receives 2. The problem is that I do the same with hyperterminal and works perfectly, receives the two numbers. I don't understand. Labview works perfectly in hyperterminal too.
Someone know why it happened?
Thanks a lot
David
P.D: I use the vi "basic serial write and read".
08-28-2006 04:32 AM
what you need is a inter-byte-delay ....
Your µC cant read the bytes as fast as you are sending them. If you type your values in hyperterminal, you already have that delay 😉
Send your values byte by byte with a short (2-5ms) delay or try a slower baudrate.
08-31-2006 10:04 PM
Send your values byte by byte with a short (2-5ms) delay or try a slower baudrate.