6 Replies Latest reply on Jul 19, 2011 5:46 PM by john.ramshur

    TX8_PutCRL

    maria.josep.lopez

       Hi everyone,

         

       

         

      I'm using the TX8 to send data through RS232. the data is received on Labview API. I have problems when the value is recieved there, because is like Labview no detect the terminator chart. As I read in the datasheet of TX8 the function TX8_PutCRL send an 0x0D ('\r') and 0x0A ('\n'). I put it this function after I send the value of the data.

         

       

         

      Which terminator chart determine every data? 

         

       

         

      Thanks for your feedbacks!

        • 1. Re: TX8_PutCRL
          maria.josep.lopez

           Hi,

             

           

             

          One note:

             

          I tested it with Hyperterminal to see if the transmission works, and runs properly. So, I don't understand why with teminal session runs well and with Labview not.

             

           

             

          Thanks for your feedbacks!

          • 2. Re: TX8_PutCRL
            graa

            Why dont you just capture the raw data in Labview and analyze what values are being received.  Once you have the raw data, then you can easily add a condition to compare if the terminator has been received.

               

             

               

            Best Regards,

               

            Ganesh

            • 3. Re: TX8_PutCRL
              maria.josep.lopez

               Hi Graa,

                 

              I have been reading that is necessary to put a MAX232 between the PSOC DB9 output and the DB9 input of the PC. Is why I can't recieve the data properly in labview?

                 

               

                 

              Thanks for your feedbacks!

              • 4. Re: TX8_PutCRL
                graa

                Yes.  For reliable communication with PC, you have to translate the TTL level signals from PSoC to RS232 level signals of PC.  For this you need to use a transceiver like MAX232. 

                   

                 

                   

                If you are seeing the characters in Hyperterminal (maybe the interface is working marginally with the TTL signals), you should be able to see them in Labview as well.  So, apart from using MAX232 driver chip, you may have to trouble shoot the Labview side of communication as well.

                   

                 

                   

                Best Regards,

                   

                Ganesh

                • 5. Re: TX8_PutCRL
                  maria.josep.lopez

                  Hi,

                     

                   

                     

                  Thanks graa!

                     

                  It was a problem of Labview... However it runs well without MAX232...I guess is happening what you told me in your last post !

                     

                   

                     

                  Thanks so much for your support!

                  • 6. Re: TX8_PutCRL
                    john.ramshur

                    I have also had trouble using Labview to collect data over the com port. What was the solution to get this working?