Collecting Serial Data using LabVIEW

Discussion in 'Embedded Systems and Microcontrollers' started by Guinness1759, Jun 6, 2011.

  1. Guinness1759

    Thread Starter Member

    Dec 10, 2010
    64
    0
    So I finally got my transmitter and receiver working at 9600 baud and it's working. I'm sending data from my PIC to the transmitter and the receiver is hooked up to my computer using a RS232 cable. I want to use LabVIEW to collect the serial data from the receiver. The problem I'm having is it is only collecting the last byte of data that I send. It doesn't matter how much data I send, it only says that there is one byte available and it only collects the last byte. I searched google but couldn't find anyone else having this issue.
     
  2. GetDeviceInfo

    Senior Member

    Jun 7, 2009
    1,571
    230
    screenshot.
     
    Guinness1759 likes this.
  3. Guinness1759

    Thread Starter Member

    Dec 10, 2010
    64
    0
    Front End

    [​IMG]

    Back End

    [​IMG]
     
  4. Guinness1759

    Thread Starter Member

    Dec 10, 2010
    64
    0
    You'll notice it reads 0F every time, since 0F is the last byte of data I'm sending each transmission.
     
  5. Guinness1759

    Thread Starter Member

    Dec 10, 2010
    64
    0
    Solved the problem by lowering the baud rate from 9600 to 1200. The PIC suart waveform was a little dodgy at 9600, so I gave it a shot and lowered it and now everything is working like a charm :D. Now I get to play with the comparators on the PIC. Should be the final part before I finish this project. Glad to be out of Suart land :D
     
  6. terra

    New Member

    May 12, 2011
    13
    0
    Good Day,
    It is easy to trouble shoot one by one
    step 1.
    Connect the pic to Hyper terminal or similar program then see whetehr you can transmit and received signal. If yes for low baud rate and no for high baud rate then
    2. measure your frequency using a oscillasope and tune the baude rate clsoe to decide frequency

    3. Use your Lab view program to see how is works. In labview RS232 driver you miss out low control which should be set to no flow control
     
Loading...