LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Transmit data with MAX232 using Labview.

Currently, both transmitter and receiver is programmed using Basicstamp2.
 
Now I have to change the transmitter programming. Instead of using Basicstamp, I'm using a MAX232 circuit to transmit data to the receiver (which still uses BS2). I have to use Labview to transmit data ti the BS2 receiver. How do I go about doing it.
 
 
0 Kudos
Message 1 of 9
(4,541 Views)

You need to use the VISA functions.

There are a lot of threads with examples and info. Trere are examples at Labview examples too.

Do a little search and ask if you have further questions

0 Kudos
Message 2 of 9
(4,527 Views)
Go under the Help menu and select Find Examples.
 
Then do a search for "serial".  It will find several examples.  Look at the block diagrams of the examples to give you an idea how it is implemented.

R
0 Kudos
Message 3 of 9
(4,519 Views)
Thank you for your suggestions.

I'm now testing out the MAX 232 circuit using the Basic Serial Write and Read.vi.

I tried testing it with loopback (pin 2 and 3 of DB9 shorted) with 5V power supply. When I run the vi, the 'read string' did not match the 'string to write'.

However, without 5V power supply, the 'read string' did match the 'string to write'.

Does it need a 5V power supply for it to work?

If it does, how come it didn't match?

Regards,
acro
0 Kudos
Message 4 of 9
(4,466 Views)


acro wrote:
However, without 5V power supply, the 'read string' did match the 'string to write'.


Matches because you have the max232 off, and the short circuit is before max232



acro wrote:
I tried testing it with loopback (pin 2 and 3 of DB9 shorted) with 5V power supply. When I run the vi, the 'read string' did not match the 'string to write'.


Does not work because you should short circuit the pins after the MAX232 (5V logic)

0 Kudos
Message 5 of 9
(4,454 Views)
Thank you PNT for your comments.



@Pnt wrote:

Does not work because you should short circuit the pins after the MAX232 (5V logic)


What do you mean by 'short circuit the pins after the MAX232'?


0 Kudos
Message 6 of 9
(4,434 Views)
In which pins of MAX232, do you connect the pin 2 and 3 of DB9 ?
0 Kudos
Message 7 of 9
(4,412 Views)
Pin 2 and 3 are connected to Pin 14 and 13 of MAX232 IC respectively.

I tried to short pin 14 and 13 (MAX232) but it's still the same thing as shorting pin 2 and 3 (DB9).

Regards,
acro.
0 Kudos
Message 8 of 9
(4,409 Views)
Short circuit pins 11, 12.
Look at page 7 of max232 datasheet.
Those on left have 5V logic. Those on right, have higher volt logic (rs232)
 
0 Kudos
Message 9 of 9
(4,406 Views)