LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How would I simulate an RS485 system?

I'm using Labview 5, trying to simulate an RS485 communication, using
RS232...

What I need to do, is to assert the DTR, i think. In DOS C, the code I
would use is:

if(format == 1) outp(comport+1,(inp(comport+1)&253));
// assert DTR line for Data direction control - Test Set needs that for
// RS485 port direction control

and then to release the DTR line, it would be:

outp(comport+1,(inp(comport+1)|2)); // Release DTR line - ready to receive

I think I can use the flow control in the Serial port vi's, to do this, but
I'm not entirely sure how I can mimic this code exactly

Any Ideas would be greatly appreciated!
--
Slade Squire
Programmer
Rectifier Technologies Pacific
Melbourne, Australia
SladeSquire@rtp.com.au
0 Kudos
Message 1 of 2
(4,219 Views)
Slade Squire wrote in message
news:9ord4q$apr$1@perki.connect.com.au...
> I'm using Labview 5, trying to simulate an RS485 communication, using
> RS232...
>
> What I need to do, is to assert the DTR, i think. In DOS C, the code I
> would use is:

Look at vi.lib\platform\_sersup.llb\serial line ctrl.vi
0 Kudos
Message 2 of 2
(4,219 Views)