LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to send ALT B on com port?

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

0 Kudos
Message 1 of 6
(3,262 Views)

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

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 2 of 6
(3,251 Views)
I believe that for sending an 'Alt-b' for a break is 0xFF followed by 0xF3

Paul
0 Kudos
Message 3 of 6
(3,243 Views)

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.

0 Kudos
Message 4 of 6
(3,216 Views)

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

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 5 of 6
(3,208 Views)

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.  Smiley Tongue

Message 6 of 6
(3,205 Views)