LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Hardware Detection and Initialisation via RS232 serial port.

I need to perform the following steps to initialise a piece of hardware:

i) Switch to 1200 baud
ii) Hold the RTS line low for 100ms and return to high
iii) Flush the serial port buffer
iv) Send a 'c' character to the hardware
v) Wait for 'o' character acknowledgement
vi) Send a 'd' character to the hardware
vii) Wait for 'd' character acknowledgement
viii) Switch to 38400 baud

If anyone can help with any of these steps (particularly toggling the RTS line with a delay), then that would be great.
0 Kudos
Message 1 of 2
(2,427 Views)
Hi Oldboy,

it seems, you are close to the problem I have.....
I have asked some weeks ago on this site about fast reprogramming the COM-port. The answer was: "You need to program external hardware". In your case it looks like you have enough time. But you have special requirements with RTS etc. Find attached 2 small vi.s. One of them initializes the COM-port. The second one is made for sending/receiving Data. Now I am not far from my "external solution" - I have connected a PHILPS DUART (double UART) SC26C92C1N to the printerport and have full acces to all of the internal registers. Unfortunately it takes some time - the chip is not easy to handle, but the first LED's connected to this circuit already do what I want. Final solution is: set both channe
ls on different baudrates and switch fast from channel1 to channel2 without reprogramming. If you want to have a look to datasheet, type the chipnumber in GOOGLE....
If I'am ready, you can get more info.
Regards
wha
Download All
0 Kudos
Message 2 of 2
(2,427 Views)