11-18-2009 11:25 AM
Hi,
I have a procedure which I used to send text on a com port, expecting some data etc...
Now, I need to send the equivalent of ALT-B . How do I do that?
The ALT+B is used to signal the port to switch between 2 modes (TL1 and Debug). I can do it manually with Procomm, but I don't know exactly what is being send on the port.
Is it possible that the ALT+B is actually sending a break on the line? I made a vi with a break. Sometimes it works and sometimes it "hang" the port and I must exit TestStand & LabView in order to release it.
Thanks
Rafi
11-18-2009 11:34 AM
Use portmon (goolgle it) to see what data is passing through the serial port.
alt-b is a scan code sent from the keyboard for those extra keys. There is no ASCII equivelant.
Watch the timing of the break (if portmon confirms your good guess). Breaks are often bounded and require you start talking after you get the widget to wake-up.
Ben
11-18-2009 11:43 AM
11-18-2009 02:28 PM
Hi,
I don't know what Alt-B sends but the break character is a character with a active line for more then 1 character. I think it is at least 1.5 character length.
The Instrument I/O Serial palette has a function for sending a (VISA) break.
11-18-2009 02:53 PM
K C wrote:Hi,
I don't know what Alt-B sends but the break character is a character with a active line for more then 1 character. I think it is at least 1.5 character length.
The Instrument I/O Serial palette has a function for sending a (VISA) break.
From what I remeber...
A "break" used to actually open up the wire from a Teletype. If I had the paper tape turned on when I did that I would get all bits set. I can remeber this because that is how I made a box of confetti for a party "back in the day". The owner of the house latter reported that he was stil find chad when he moved out.
Ben
11-18-2009 03:06 PM
I think everybody made confetti from the paper tape in those days
We used pink paper tape. Gives a nice color on your carpet for years.