LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Labview gets samples to slow from a pic

Hello! I hope you can help.
Im making a project in labview that gets data from a pic (pic18f4550) using usb. in the pic i have software that emulates a serial port (the pic is tested and sends the data) . In labview i send a char everytime i want to receive more data from the pic  (the pic is in a loop waiting for that char just to send the data (5 bytes example: 4B,56 in hexadecimal). The problem is that the sample rate is too low. I can use a wave generator and see in labview graph plot a sen with frequencies until 6Hz. more than that i dont have samples enough. The blocks in labview are very simple a visa write a visa read a convertion from hexadecimal to number and a graph plot. if necessary ill post the block diagram
 
anyone??
 
thanks
0 Kudos
Message 1 of 2
(2,615 Views)

Hi,

Have you try to use the same program beetwen 2 PC with serial comunication ?

The second PC can simulate you PIC, and then you can check that you VI, and serial port configuration.

Let me know the result of this test.

Regards,

 

Christophe S.
Account Manager East of France І Certified LabVIEW Associate Developer І National Instruments France

0 Kudos
Message 2 of 2
(2,573 Views)