LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Serial Communication between labview and max232

HI.
 
Im new to labview and the max232 ic chip too..
See previously i was using a basicstamp2 ic chip to transmit codes to a robot.
The basicstamp2 ic chip requires coding for serout and all that stuff.
whereas for the max232 we are going to use, has no PIC.
So all it has to do is transmit the codes when labview tells it too.
 
i did find an example Basic Serial Write And Read.vi
I am using a RS-232 cable.
Can anyone tell me if this is enough for a serial communication between labview and max232?
 
Regards, Mi
0 Kudos
Message 1 of 7
(4,827 Views)
Hi Mi,
 
The IC called MAX232 is just a level converter.
Your computer uses a voltage level of about +/-11 or some thing close to it for the serial port communication. However most of the micro controllers use TTL level which is +5 for a high bit and 0V for a bit low.
So this Max232 will help you convert the computers logic levels to micro controllers logic levels and vice versa. The duty of the Max232 is to make it possible to communicate between different logic levels. So it does not need any special code to get the communication done other than what you need to send.
 
Hope that helps !
0 Kudos
Message 2 of 7
(4,821 Views)
Yeah one more thing, you need to get the connections right. Connecting a wrong tx/rx pin of the Max232 to the PC / TTL device will kill the chip.
 
0 Kudos
Message 3 of 7
(4,820 Views)
So you need a microcontroller too. I like Atmel's AVR ..
0 Kudos
Message 4 of 7
(4,801 Views)
Hey guys.
 
Thanks for the help. So deepu ur saying i just have to use example like a visa to connect to the comport and im fine? I just have another question.
 
baudmode CON 188                
RFbaudrate CON 396 '2400 slower RF , more stable
  SERIN 16,baudmode,[STR comm\2, DEC3 speed]      'get command and value
  comm(0)=comm(0)&%01011111  'force 1st char to uppercase
  comm(1)=comm(1)&%01011111  'force 2nd char to uppercase
  IF comm="F" THEN Forward
  IF comm="B" THEN Backward
  IF comm="L" THEN Leftturn
  IF comm="R" THEN Rightturn
  IF comm="S" THEN Halt
 GOTO top                   
 
These codes are in my basicstamp2 transmitter. I have to do something similar like this in labview since max232 practically does nothing right?
 
Oh and Pnt thanks for your advice. but my supervisor says he doesnt want a microcontroller. He wants everything going through labview.
I know i should be doing my own research too. but im so at lost at where to look at. =(
0 Kudos
Message 5 of 7
(4,773 Views)
Hi rall,
 
If those are the codes supposed to be received by the receiver side, tehn I guess all u need to do is to send them through Visa Write function. However you need to ensure the baud rate and other settings are matching with that of the receiver side (may be the robot in ur case).
 
Hope it works !
0 Kudos
Message 6 of 7
(4,764 Views)
Hey Deepu!
 
Thanks for your help. I'll try it out. Thanks again!
0 Kudos
Message 7 of 7
(4,725 Views)