アカデミック 会社 イベント NI Developer Zone サポート ソリューション 製品とサービス お問い合わせ MyNI
1 ratings:
 5 out of 5     Rate this Document

シリアルポートにどのような制御文字を書き込みますか?

使用ソフトウェア: LabVIEW Run-Time Engine
使用ソフトウェア・バージョン: N/A
使用ソフトウェア・バージョンに特化: N/A
二次のソフトウェア: N/A
ハードウェア: Serial

問題: ”ctrl B”のような制御文字を含んだシリアルデバイスに文字を送信したいと思いますが、キーボードで”ctrl B”を入力しても、LabVIEWでは書き込みバッファ(VISA書き込み関数の入力端子)に何も表示されません。これでいいのでしょうか?

解決策: シリアルデバイスに制御文字を書き込む為には、書き込みバッファが16進数表記であれば、16進数コードの制御文字を入力する必要があります。例えば、シリアルポートに”ctrl B”を送信したい場合は、書き込みバッファが16進表記であれば”02”と入力します。以下の制御文字16進数コード表を参考にご活用ください。
DecHexASCIIKey
000NUL (null)ctrl @
101SOH (start of heading)ctrl A
202STX (start of text)ctrl B
303ETX (end of text)ctrl C
404EOT (end of transmission)ctrl D
505ENQ (enquiry)ctrl E
606ACK (acknowledge)ctrl F
707BEL (bell)ctrl G
808BS (backspace)ctrl H
909HT (horizontal tab)ctrl I
100ALF (line feed)ctrl J
110BVT (vertical tab)ctrl K
120CFF (form feed)ctrl L
130DCR (carriage return)ctrl M
140ESO (shift out)ctrl N
150FSI (shift in)ctrl O
1610DLE (data link escape)ctrl P
1711DC1 (device control 1)ctrl Q
1812DC2 (device control 2)ctrl R
1913DC3 (device control 3)ctrl S
2014DC4 (device control 4)ctrl T
2115NAK (negative acknowledge)ctrl U
2216SYN (synchronous idle)ctrl V
2317ETB (end of transmission block)ctrl W
2418CAN (cancel)ctrl X
2519EM (end of medium)ctrl Y
261ASUB (substitute)ctrl Z
271BESC (escape)ctrl
281CFS (file separator)ctrl \
291DGS (group separator)ctrl
301ERS (record separator)ctrl ^
311FUS (unit separator)ctrl _
3220SP (space)
3321!
3422"
3523#
3624$
3725%
3826&
3927'
4028(
4129)
422A*
432B+
442C,
452D-
462E.
472F/
48300
49311
50322
51333
52344
53355
54366
55377
56388
57399
583A:
593B;
603C<
613D=
623E>
633F?
6440@
6541A
6642B
6743C
6844D
6945E
7046F
7147G
7248H
7349I
744AJ
754BK
764CL
774DM
784EN
794FO
8050P
8151Q
8252R
8353S
8454T
8555U
8656V
8757W
8858X
8959Y
905AZ
915B
925C\
935D
945E^
955F_
9660`
9761a
9862b
9963c
10064d
10165e
10266f
10367g
10468h
10569i
1066Aj
1076Bk
1086Cl
1096Dm
1106En
1116Fo
11270p
11371q
11472r
11573s
11674t
11775u
11876v
11977w
12078x
12179y
1227Az
1237B{
1247C|
1257D}
1267E~
1277FDEL


関連リンク:

添付:





報告日時: 10/04/2004
最終更新日: 06/29/2005
ドキュメントID: 3E3ASSXR

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
  1 2 3 4 5
Please Contact NI for all product and support inquiries.submit