LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

to establish communication between labview and pic microcontroller using rs232 cable

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

0 Kudos
Message 1 of 4
(3,727 Views)

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

0 Kudos
Message 2 of 4
(3,666 Views)

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😉



Besides which, my opinion is that Express VIs Carthage must be destroyed deleted
(Sorry no Labview "brag list" so far)
0 Kudos
Message 3 of 4
(3,662 Views)
thank you sir my problem is solved
0 Kudos
Message 4 of 4
(3,655 Views)