01-20-2010 11:02 PM
i want to establish a communication between labview and pic 18f452 microcontroller and the signal information(frequency & duty cycle) is to be given via labview .i need to get freq. of 1hz and i had gone through ur decimal to ascii conversion as it was very useful for me to produce higher freq. which i am getting it but its not working for lower freq range as the decimal value increases beyond 255
but when i use u16 or u32 conversion i m not able to get it right,so pls help me to slve this prblm
thanks
venky1
01-29-2010 02:25 AM
Hi,
I think you will need to be a bit more specific.
When reading your last post for me it's like you mix up everything together in three sentences, and how all the things are related to each other is not clear.
So the RS232 connection to the µC seems to work. Now you need to write two values, the frequency and the duty cycle to the µC.
Whats the range of both, so the minimum and maximum?
And the most important part what kind of string is the µC awaiting?
Did you ever check what string you really send to the controller?
Christian
01-29-2010 02:43 AM
This could be a problem related to big/little endian format. Please Google endianness. Could you also be more specific. Is the problem then you receive data from the uC, or is it then you send data to the uC.
And yes posting posting your Labview code is very smart😉

01-29-2010 02:59 AM