RSRC LVARLBVW ">>"@  J B&*">>"`PP``LL`440<ψȈfofofo     P\ P_\ _U U++++++++++++++++++++++++++++++++++++++++++++++++ libraryn VIslibraryn Ctrls$!Advanced Serial Write and Read.vi*'Basic Serial Write and Read (2 Port).vi!Basic Serial Write and Read.viDetect Break Event.vi# NI RS-485 Transceiver Control.vi Set Break.vi)&Troubleshooting Serial Line Monitor.vi!Advanced Serial Write and Read.vi'Basic Serial Write and Read (2 Port).viBasic Serial Write and Read.viDetect Break Event.vi NI RS-485 Transceiver Control.vi Set Break.vi&Troubleshooting Serial Line Monitor.viInstrUseInstrUseInstrUseInstrUseInstrUseInstrUseInstrUseThe Troubleshooting Serial Line Monitor example allows the user to monitor the serial lines. The 2 input lines that can be written to are DTR and RTS. The 4 output lines are DCD, RI, DSR and CTS. This example can be run along side another example or VI talking to the same port. This example is intended for troubleshooting purposes. Note: This example closes the VISA session for the specified port, so stopping the VI could affect another application that is accessing the same port. INSTRUCTIONS: 1) Select the VISA Resource name for the serial port whose lines you want to monitor. 2) Keep the "Write to DTR and RTS lines?" control set to "ON" to be able to write to those lines. Turn the control to "OFF" to disable writing to the lines. 3) Run the VI to see the line states in the LEDs. To test the lines, you can also run this example alone with the following connections. Short pin 4 to pin 6 (DTR/DSR) or pin 7 to pin 8 (RTS/CTS) for RS-232. For RS-485, short pin 2 to pin 3 (CTS+/RTS+) and short pin 6 to pin 7 (CTS-/RTS-). Then, with the "Write to DTR and RTS lines?" Control "ON", you can see the corresponding handshaking lines turn on and off when you change the DTR and RTS values. This example uses the VISA Property Nodes to access the states of the lines and to control the states of the DTR and RTS lines. You can run the VI alongside another example or VI talking to the same port. Since this example calls the VISA Close.vi, if you stop the VI, you could affect the other example or VI. When running a handshaking application with an instrument, you may want to monitor the state of the lines to verify that the handshaking is operating as expected. Alternatively, if your application is not communicating as expected, this example allows you to view exactly what is happening with the lines. It even gives you control of the DTR and RTS lines, so that you can see the effects of those lines on the others in your setup.  @pInstrVISA resource name@!Write to DTR and RTS?@!CTS@!DTR@! DTR state@!RTS@! RTS state@!DCD@!RI@!DSR)/('3eJTJTJT2Re@CD8AABUZTU/ϫ*++ﯨﯨ+ﯨ*)*+:Ȍ Ȍ <> "1#23@03"3C3#23D03233#33@03233#33@03233#33@03"3C323@sD@DDDD@DDDD ?2?c<?ϟ?x=y8~?Ÿy???x<??y<y<>???>G<ϟy'#=y|n~܏øqq?{8y>0g|n^܏øqq?{???{~8#~>g?y8??LDD3DD@1LDD3DD@1LDD3DD@1LDD3DD@1LD3DD@D1pӟ||y%g?a8?𨪪UUfGT_?88:8J 8J8JKx x ʜf*>):):ȤdT    ?* 菀?菀~菀????? ZTU? Ȉ̈̈̈ Ġ  H  H  H  H  H  x x 8 xĠ?  H?ࠊொொ?Hį ?H H H H H HC?H  ̈ Ȉ( ,΢,,<h,̀̌b, bofkfk̂﮻b஻b.,<,̀ b,̂o&fnfnb$NÑh,̀̀b,B.b.b̃̂Ȉ ,b,fnfnf,NNN,<h,̀̀b,B.b.b̃̂Ȉ ,b,fofof,NNN,<̂Ȉ ,b,fofof,NNN,<̂Ȉ ,b,fofof,NNN,<,̀ b,̂o&fofob$NÑ̀Ȉ ̌r<̢̀j.΢, ,,,<,< 3?2Ȭ    ḦLȈḦ(ȈḦȈĽ̌̌̌̌̌Č̌ČBȠ ̌̌̌̌̈ ̈ḦȈḦȈȌ̌̌ ̌` ̈ḦȈḦȈȌ̌̌ ̌` ̈ḦȈḦȈȌ̌̌ ̌` ̈ḦȈḦhȈ ʀ(̠ ̈̌̌̌̌̀Ȉ Č̈(̈H ̌̌̌̈̈ȞȈ Ȍ ,̢̂̈̌̀ b,Ꮘ̂ƀ,΢,̂̀ ̌b,,0(̈̌ @  ̀  ̎LL Ȍ̌̌ ̌` ̈Ḧ ȈHL Ȉ(̠   Ḧ( ̌ʌȈH ̈h ̌ʌȈḦ( ̌ŒȈ̀̌ ̤̀̌NB̪ʈ,̌̌   *̀   <  ̀    *Ā΢(̈HL̈ȈḦȈḦhȈ(LȌĽȌȈ  Ḧ(̌ʌȈḦȟʌȈḦ ̌ΌȈḦ ̌ΌȈḦ ̌ΌȈ̀̌̀ČȈL̈BΈ,B(̈H (̈ Έ,BΈ,̬B̈ȞȈ( ( b,Ꮘ.,,0Έ,̌̌̀ *̀   ̀ . ̀ . ̀   ⨂̀ (*     ̀   ⨂̀ (*  ⨂̀   ̀ (**̈  ̀ ( *   B ਠ  ̀ .  0 Ȱ @@@RSRC LVINLBVW hD@ <fWnA@?S, ُ B~ ,$yM8lLVIN&Troubleshooting Serial Line Monitor.viLVINSimple Error Handler.vi   @!error?@code out@error code (no error:0)@0error source (" ")@0 source out6@P @!status @code@0source error out@0message@type of dialog (OK msg:1)@@P @!status @code@0sourceerror in (no error)PTH06Utility error.llbSimple Error Handler.vi  @pInstrVISA resource name@!Write to DTR and RTS?@!CTS@!DTR@! DTR state@!RTS@! RTS state@!DCD@!RI@!DSR L LPJ c8 P+ c RP"@P@flg@oRt@eofudf P!stopx!dfdP!txdP!oldP!ext cbP"@P@flg@oRt@eofudfP!Write to DTR and RTS?p!dfdP!txdP!oldP!ext cVP"@P@flg@oRt@eofudfP! RTS statex!dfdP!txdP!oldP!ext cPP"@P@flg@oRt@eofudfP!RTSx!dfdP!txdP!oldP!ext cVP"@P@flg@oRt@eofudfP! DTR statex!dfdP!txdP!oldP!ext cPP"@P@flg@oRt@eofudfP!DTRx!dfdP!txdP!oldP!ext cPP"@P@flg@oRt@eofudfP!CTSp!dfdP!txdP!oldP!ext cPP"@P@flg@oRt@eofudfP!DSRx!dfdP!txdP!oldP!ext cPP"@P@flg@oRt@eofudfP!RIx!dfdP!txdP!oldP!ext cPP"@P@flg@oRt@eofudfP!DCDx!dfdP!txdP!oldP!ext cP"@P@flg@oRt@eofudf PpInstrVISA resource nameppInstrdfdPpInstrtxdPpInstroldPpInstrextZ P$@P@0P@hP @!status @code@0sourceerror in (no error)`millisecond multiple c ct c cl@@P @!status @code@0sourceerror in (no error) c @pInstrVISA resource name @!status c!!!!!!@millisecond multiple @!stop@ CTS State@ DSR State@RI State@ DCD State@ RTS State@ DTR State,P @!status @code@0source@@P @!status @code@0sourceerror in (no error) c @!DTR @!RTS! c$ @pInstrVISA resource name@!Write to DTR and RTS? cX c c  P vPvPvPvPvPvPvPvPvPvPvP c` c $< B H x^B 8 $COM1d$p08P\^p t bx|pN|~0<> (    @\h\@@m@hh\\@x@p@Xt@`x@h|@pl>hdRh@@plh,vVIDS&Troubleshooting Serial Line Monitor.viVIDSSimple Error Handler.viPTH0ji386`V~codeaEwV~E\EPPUEd$==QÐ)Ӏ}ڋELXCC<{@tPRZXCL{PtPR]ZXC\pCdtClxC4|CDCTC${(tPRZX}E$EEƅ$ƅƅPƅ48tQRU諬d$ZYɍHHƅ$thhUEPPQfYXPQfYXPQfYXPQfYXPQfYXPQfYXDž0Dž4u6QRVP0$hhhܰd$ZY44d0EhEl_~E\QRhPEP$P8$0X9d$ZY=u8u@ÐZ 0x)QRhPEP$P8$0 9d$ZYÐ}vaDž4u6QRVhP$h?hqd$ZY=QRVhP$h?h9d$ZY=QRVhP$h?hd$ZY=QRVhP$h?hɶd$ZY=uaQRVhP$h?h蕶d$ZY=u-QRVhP$h?had$ZY40xL`~E\QRhPEP$P8$0l7d$ZY= 8uÐ}v&4=u:\>u/=t(=xQRURhPQV杁d$ZYƅfxh ƅƅP\lXfx"u ƅfƅ}$u ƅphhUEP8d$ fx&M ƅfƅ}$u ƅ0hhUEP8d$ fx*% ƅpfƅ}$u ƅhhUEP8d$ fx.ƅtfƅ}$u ƅhhUEP8d$ fx2ƅxfƅ}$u ƅhhUEP8d$ fx6ƅ|fƅ}$u ƅhhUEP8d$ fx:ƅlqƅ QR>ZYƒRZRZDQRSQuhzd$ ZY= e~E\EPQRPQ<h@]Izd$ZY}vuQR@DŹd$ZYÐQR躹ZY<aTQRPEP$Q<Nd$ ZY@ÐQR@蓾d$ZYQR<0d$ZYÐQR@Ĺd$ZYÐ /e~E\EPQRPRzd$ZYÐ}vƅ fxBQEhxluƅfx XƅQRhd$ZY\>u.=t'=xQRUhPQVᝁd$ZYƅfx'ƅts ts$ts4$ts<,tsD4tsL$<tsTDts\LETf~E\EP.UR@␐}vt}vt1ƅfxt48tQRUqd$ZY}t}uH}v}+uvQRPE@$葋d$ZY==t p h搐ÐEw Mg~E\EPPUEd$=t=t=t=tEw Ew‰ppVLFX@'PUEd$=uÐPg~Pg~Pg~PL. h~iP,$h~OEh~Ðx&[h~Ðx&p}h~p @'PUEd$=uÐPh~Pjh~^P i~$PFi~P  i~PH!i~vP"i~ Troubleshooting Serial Line Monitor.vi The Troubleshooting Serial Line Monitor example allows the user to monitor the serial lines. The 2 input lines that can be written to are DTR and RTS. The 4 output lines are DCD, RI, DSR and CTS. This example can be run along side another example or VI talking to the same port. This example is intended for troubleshooting purposes. Note: This example closes the VISA session for the specified port, so stopping the VI could affect another application that is accessing the same port. INSTRUCTIONS: 1) Select the VISA Resource name for the serial port whose lines you want to monitor. 2) Keep the "Write to DTR and RTS lines?" control set to "ON" to be able to write to those lines. Turn the control to "OFF" to disable writing to the lines. 3) Run the VI to see the line states in the LEDs. To test the lines, you can also run this example alone with the following connections. Short pin 4 to pin 6 (DTR/DSR) or pin 7 to pin 8 (RTS/CTS) for RS-232. For RS-485, short pin 2 to pin 3 (CTS+/RTS+) and short pin 6 to pin 7 (CTS-/RTS-). Then, with the "Write to DTR and RTS lines?" Control "ON", you can see the corresponding handshaking lines turn on and off when you change the DTR and RTS values. This example uses the VISA Property Nodes to access the states of the lines and to control the states of the DTR and RTS lines. You can run the VI alongside another example or VI talking to the same port. Since this example calls the VISA Close.vi, if you stop the VI, you could affect the other example or VI. When running a handshaking application with an instrument, you may want to monitor the state of the lines to verify that the handshaking is operating as expected. Alternatively, if your application is not communicating as expected, this example allows you to view exactly what is happening with the lines. It even gives you control of the DTR and RTS lines, so that you can see the effects of those lines on the others in your setup. communication instrument serial 232 485 rs-232 rs-485 rs232 rs485 transmitters receivers handshaking visa monitoring 3113 4290 LabVIEW LabVIEW PCI-232 PXI-8420 PXI-8422 PCMCIA-232 AT-232 USB-232 ENET-232 PCI-485 PXI-8421 PXI-8423 PCMCIA-485 AT-485 USB-485 ENET-485 NI.LV.ALL.VILastSavedTarget0DfltNI.LV.ALL.goodSyntaxTargets&&@0DfltThe Troubleshooting Serial Line Monitor example allows the user to monitor the serial lines. The 2 input lines that can be written to are DTR and RTS. The 4 output lines are DCD, RI, DSR and CTS. This example can be run along side another example or VI talking to the same port. This example is intended for troubleshooting purposes. Note: This example closes the VISA session for the specified port, so stopping the VI could affect another application that is accessing the same port. INSTRUCTIONS: 1) Select the VISA Resource name for the serial port whose lines you want to monitor. 2) Keep the "Write to DTR and RTS lines?" control set to "ON" to be able to write to those lines. Turn the control to "OFF" to disable writing to the lines. 3) Run the VI to see the line states in the LEDs. To test the lines, you can also run this example alone with the following connections. Short pin 4 to pin 6 (DTR/DSR) or pin 7 to pin 8 (RTS/CTS) for RS-232. For RS-485, short pin 2 to pin 3 (CTS+/RTS+) and short pin 6 to pin 7 (CTS-/RTS-). Then, with the "Write to DTR and RTS lines?" Control "ON", you can see the corresponding handshaking lines turn on and off when you change the DTR and RTS values. This example uses the VISA Property Nodes to access the states of the lines and to control the states of the DTR and RTS lines. You can run the VI alongside another example or VI talking to the same port. Since this example calls the VISA Close.vi, if you stop the VI, you could affect the other example or VI. When running a handshaking application with an instrument, you may want to monitor the state of the lines to verify that the handshaking is operating as expected. Alternatively, if your application is not communicating as expected, this example allows you to view exactly what is happening with the lines. It even gives you control of the DTR and RTS lines, so that you can see the effects of those lines on the others in your setup.)/('3eJTJTJT2Re@CD8AA DTHPDa88 ~, @pInstrVISA resource name 78,P @!status @code@0source@!RTS@!DTR*@!Write to DTR and RTS?@!DCD@!RI@!DSR@!CTSF6@P @!status @code@0source error outL@@P @!status @code@0sourceerror in (no error)*@millisecond multiple!@0source @!status @code@ DTR State@ RTS State@ DCD State@RI State@ DSR State@ CTS State@! RTS state@! DTR state.@type of dialog (OK msg:1)@0message @0 source out(@0error source (" ")(@error code (no error:0)@code out @!error?:*   @!error?@code out@error code (no error:0)@0error source (" ")@0 source out6@P @!status @code@0source error out@0message@type of dialog (OK msg:1)@@P @!status @code@0sourceerror in (no error) @!stop(@millisecond timer value\ $\p\p@@@@,HHXt,HHHHHH@,Hh444L\@ PD&3&3stopH$b=J=JDuvHHHFor additional information select File >> VI Properties >> DocumentationaDWrite to DTR and RTS?H$aWDF$G$  INPUT LINESXD?@  OUTPUT LINESUD RTS stateH$aODRTSH$aUDPQ DTR stateH$aOdPdODOdPdDTRH$a8M9MDNuxNvuSelect the VISA Resource for the port whose serial lines you want to monitor. Set the Write to DTR and RTS control to "ON" in order to control these lines.OD,9,9CTSH$bDQDQOD+8+8DSRH$_CPCPND,Z9f,[9fRIH$bDUQjDVQjOD+)8?+*8?DCDH$taC)P>C*P>^Dzܬ{VISA resource nameH ‡‰cDDNQDPQSimple Error Handler.viD;UB;;;Read the status of the DTR,RTS, DCD, RI, DSR and CTS lines.D>@BXX~If Write to DTR and RTS ? is set to ON (true), then set the DTR and RTS states. Default values for these lines is set to TRUE._D]Wj]Yjerror in (no error)RDsourceHDaPDn{n{codeHD8a~~RD`m`mstatusHDaUiViHDpavTivUiRE=J=J True HDb44HDT`**HDPa33HDa22HD_rOrOHD`aNN HDa)*`DMOmillisecond multipleHDbHDDastHD aN[N[ STOPOFFONOFFONOFFONOFFONOFFONOFFONOFFONOFFONOFFONOFFONOFFONOFFONOFFONOFFONOFFONOFFONOFFONOFFONInstr6FPHP&Troubleshooting Serial Line Monitor.vi+FPHPD_8+++~a*2:0baa0; NF*XL8t*=)$< ! (08LlL<p 80(!(((0P$|84O7OXQ,4 O$%4 |<  v$<Kl|a $7O뼼7O̼7O̖7O̼7O̖8h$BR||,Stops the VI operation4 ~t\|0|.(|64OL,$`(4 G |< n |` 2V jjdd KKjj ddjj KKjj ddjj ikμikΖikμikΖik 7YӳӳDӳӳDӳ\ 7Xhlӳhl8hBR ||XCSet this to "ON" (true) to set the states of the DTR and RTS lines.4 E% |4 > |0 30 |6,4 O  H4,  H | P 4 O |< j |@a lhKKKKlhddlhKKlhddlh 7Weoffeoeoeoeo8 hB 4R | |T ?Indicates the current state of the Request To Send (RTS) line. 0  P |#4 O  p,  @ t H 4 G |< j |`  `t`tas 5 Y^v^v_u0 4 Vlh8h BH\R ||H4Asserts or unasserts the Request To Send (RTS) line.05pN|54OOd0\6,\d4 OO|< jNe |b QblhKKQbKKlhQbddlhQbKKlhQbddlh 7WOdeofOdfeoOdeoOdeoOdeo8hB4HR||XCIndicates the current state of the Data Terminal Ready (DTR) line. 0|#d4O<e,,X`(4 GNe|< j7N`|L^ >H`t>H`t>Has>H>H 5Y>R^v>R^v>R_u>V>V0 4V<Jlh8hB`tR ||L8Asserts or unasserts the Data Terminal Ready (DTR) line.0 T4 Mty |0h||5d4O8+Z,L|4 G|+: |< n|CR|Db |>WlhKK>WKKlh>Wddlh>WKKlh>Wddlh 7|W;Zeof;Z˳feo;Z˳eo;Z˳eo;Z˳eo8h|BR||T=Indicates the current state of the Clear To Send (CTS) line. 0`tb |4 4O0*Z,Dt4 Gt*9|< ntBQ|_ t=WlhKK=WKKlh=Wddlh=WKKlh=Wddlh 7tW:Zeof:Zfeo:Zeo:Zeo:Zeo8htBR||T=Indicates the current state of the Data Set Ready (DSR) line.0X l |34O(+PZp ,<l4 Gl+Y:g|< nlCTRk|` l>SWmlhKK>SWmKKlh>SWmddlh>SWmKKlh>SWmddlh 7lW;PZpeof;PZpfeo;PZpeo;PZpeo;PZpeo8 hlBR | |P   4'0 L2ݸ' ' C /4'0 1Ӹݭ' `4'/ ͣ]'| ' ?44'0 h8ݞ' ' B/`4'0 7Ӟݓ'|4'/i͉]'0 '@P04'0>o݄y'0 'F .4'0=oӄy'4'/4/'L 'l4'0X̠'L 'D4'0B'4' :;V?BH|4( =?BX|X),  344 B3X5? |05@2=( ܿ 345 B3+? |06@2<0  4P46 B4 4? | 7"2M4O47"4C`id74 7"2L5.,47"5H"2A9`(4>"9\`id>9@`l>:;<<=>?@ABCDE$F GHIJK LMN4>::P!>:>,H+4>;;L!>;>8*4><< > 5d4>=<!>< > 4 4>>=!>= > 34>?>!>> > 3X4>@?!>? >6,4>A|@!>@y y>054>BxA7 >Advd>-9@4>CtB>B\>/`|4>DpC>C\>/ `4>EDH>D>64>FEX!>E$7E7>64>GFT >F y\y>.4>GGP>G\>1 4>HHL>H\>0 (4>IIH>I\>08 D4>JJDP >Jm mA>h.,4>KK@7 >K e eAdA>H-d4>LL<P >Lmmk}kmvn>.+44>MM87>MddE>4(4>NN4!>N>*L2>,>O<80>Ol>O0>@O BOM\?d|,?PQRS 4?PPL7?PdVVd?`|4?QQHP?Qnn?@4?RRDP?RnRn2?4?SS@7H?S dd?O ?0$ (bIUUAn Q8>Q8>:>:>I?  й  й  й݀ й߀ йI%TahomaTahomaTahoma020RSRC LVINLBVW h 4`RSID`LVSRtBDPWLIviCPTMDSTMDFDSLIdsVICDversDLDR(FPTDed?f dfL(cf\8c ftLcfXcfdcfpcfԀcfcgc"gc%g4ch8chtc0c4c$d(d,d0d4d&Troubleshooting Serial Line Monitor.viThis example illustrates how to introduce a break in the data line during serial communication. The VISA Serial Break vi is used to introduce a break in the data line. This VI can be run alongside the "Detect Break Event.vi" on a separate serial port to monitor the breaks. INSTRUCTIONS: 1) Select the serial resource, configuration parameters (baud rate, data bits, parity, stop bits), and break length. 2) Introduce a break by setting the Set Break switch to the ON position. 3) Connect the serial port to your device. If no device is available, perform a loopback test by doing one of the following. Short pins 2 and 3 on a RS-232 cable or short pin 4 to pin 8 and pin 5 to pin 9 on a RS-485/422 cable. 4) Run the vi. The serial break is a condition that holds the transmit line logic-low for longer than one data byte. Normally, if there's no data to transmit, then the transmit line idle condition is logic-high. Your application may require that you send a serial break in the transmission line. You can use this example to provide that capability to a particular device. Alternatively, you can use this example to test the Detect Serial Break example. You can change the break length or duration using the VISA Property Break Length. This example does not close the VISA Session to the port using VISA Close, in order to allow you to use this example in conjunction with other serial operations on the same port.J٥WTTQ/?Α/# *ﯨ着*着*)*+)''(**:ȌȌȌl ̈  Ό̈ Ό̈  Ό̸ ,Έ;;:;33;3333;;333332333;33333!2<?~=qqaq|<><y?y?;<8|<<{{{xY8>q8|?g??g}?x<ÿ?10?f"" "3DDD1LD?3DD@3LDD?3DD@3LDD3DD@D1?? p?<<<<<<<><<|Ľ?،f?>?O=3'@=@E@EeL=PE܁ER=\ !a  T ?/?( ^QQE/? PDDs? DH Ŀ H @H H @H ?H `  LH  H HLHHH ?Ȭ O  Ȉ ̈̌b,b...,,0̃Ȉ( ,b.b.B.̃̃Ȉ( ,΢,,<̃Ȉ (̈Ľb,b...,,<H<̀̈,΃ L ,,!̂̃̃H<̃Œ̈,΢,,,̂̃̃Ȉ (̈̌b,̢,,,,<̃Ȉ8 (̈̌b,̢,,,,<Ƞ 03333332!<Ȭ  ̌̌ČČČ̌Č̌Č@̌Č̌̌ČČČČ̌B ̈̈̈̈̌Ȉ̎ȌȌČƌ` ̌̈̈ ̈̈̈ ̎ ( ̈H̌̌Č̈(̈̌̌Č̈(̈̌    ̎ ? ̌ŒȈḦ̌ŒȈḦ̌Ȉ̌ ( ̈(̈(̈ψ,̌̌̈ ̀ *   .興̀ (. ਠ  ⨂, ̈̈Ȉ̈ Ȉ Č̌Ȍ̌`̌ƌ`ČȈ̈BΈ,ČČ̈€,΢,̂̌Č̀̌Č̀̌̌̀  ਠ̌ /̀ .̀ ̀ .⨂ *Ā  Ҫ* ̀ ̮Έ,ꌈB̮Έ,B̈ȞȈ( ( b,Ꮘ.,,<̈ȞȈ L,̂O.̃B̈ȞȈ (̈̀b,,΢,,4 ̀ +          *(   33̺Ȉ,̌̌ȈH ̌ Ȉ̈H ̌Č̌Ȉ Ȉ ̈H Ȉ̈H Č ̈H Ȉ(̈H Ȉ ̈Ȉ ̈ Ȉ̈H Ȉ̈H Č ̈ Ȉ̈̀Ȉ̀Ȉ̀̌  ̈̀B̀Ȉ̀̌ ̌̌̌ȞHČȌL ̀ ̀HhhhXXό @ȏ@RSRC LVINLBVWdA DD@ <9.E[TN ُ B~=QC# BELVIN Set Break.viLVINGeneral Error Handler.vi   @[error code] (0)$@@[user-defined codes].@@0ser-defined descriptions] @!error?@0[error source] (" ")@code out@0 source out@type of dialog (OK msg:1)@0message@@P @!status @code@0sourceerror in (no error) @xception action] (none:0)@[exception code]@0[exception source]6@P @!status @code@0source error outPTH07Utility error.llbGeneral Error Handler.viLVINVISA Configure Serial Port   @pInstrVISA resource name@timeout (10sec)(@"termination char (0xA = '\n' = LF) @!Enable Termination Char (T)*@pInstrduplicate VISA resource name@baud rate (9600)@ data bits (8)0@NoneOddEvenMarkSpaceparity (0:none)@@P @!status @code@0sourceerror in (no error)@stop bits (10: 1 bit)@flow control (0:none)6@P @!status @code@0source error outPTH07Instr _visa.llbVISA Configure Serial PortoLVINVISA Serial Break.vimP   6@P @!status @code@0source error out*@pInstrduplicate VISA resource name@@P @!status @code@0sourceerror in (no error) @pInstrVISA resource namePTH01Instr _visa.llbVISA Serial Break.vig Pe c8 P+ cZP"@P@flg@oRt@eofudfP break lengthpdfdPtxdPoldPext P cVP"@P@flg@oRt@eofudfP! Set Breakx!dfdP!txdP!oldP!ext cRP"@P@flg@oRt@eofudf P!stopx!dfdP!txdP!oldP!ext cVP"@P@flg@oRt@eofudfP baud ratepdfdPtxdPoldPext P cP"@P@flg@oRt@eofudf PpInstrVISA resource nameppInstrdfdPpInstrtxdPpInstroldPpInstrext cVP"@P@flg@oRt@eofudfP data bitspdfdPtxdPoldPext P cTP"@P@flg@oRt@eofudf PparityxdfdPtxdPoldPext P" P@@ cVP"@P@flg@oRt@eofudfP stop bitspdfdPtxdPoldPext P" P@@Z P$@P@0P`millisecond multiple`timeout (10sec) h!Enable Termination Char (T)h flow control" P@@ c c$ c0 c @ stop bits c@[error code] (0) c @!status6@P @!status @code@0source error out c*@pInstrduplicate VISA resource name c@millisecond multiple c! c@0[exception source]$@@[user-defined codes].@@0ser-defined descriptions]@type of dialog (OK msg:1) c@0message@[exception code] @xception action] (none:0)@0 source out@code out @!error? c@0[error source] (" ")6@P @!status @code@0source error out c0@NoneOddEvenMarkSpaceparity (0:none)(@"termination char (0xA = '\n' = LF) c @pInstrVISA resource name c@ break length c@@P @!status @code@0sourceerror in (no error) c @parity$ @pInstrVISA resource name@ baud rate @!stop@! Set Break@ data bits c c c cL c c c8 c c  PvPvPvPvPvPvPvPvP c@   hvZ Lr %COM1  ' tpDPX0<>JB@B @ @t @ TX@Y8v@T @b Pv $ $@ $ $VIDS Set Break.viVIDSVISA Serial Break.viPTH0VIDSVISA Configure Serial PortPTH0VIDSGeneral Error Handler.viPTH0@vi386@~code`,Ewd~E\EPPUEd$=t1= Ð)Ӏ}t}uE$EE48tQRU2d$ZYɍHHƅDthhUEPtDžDžu6$QRVP$hh cd$ZYf~QRhP$P$⿍d$ZY=uuCÐ'x,QRhP$P$葿d$ZYÐtLDžu6$QRVPh? =d$ZYxR.~QRhP$P$d$ZY=-uÐi=u:>u/=t(=xQRURhPQVBnd$ZYƅfx2&ƅ~.UR@␐tƅfx6xmƅfx ƅƅPXfx"ƅ_^ZY[]ÐUl$SQRVWQRU^=sd$ZY_^ZY[]ÐUl$SQRVWt$ =0 8no_";"~6": 6 f d@~' a  I1kM'  %Np ! 8 ? \ CCODE`D|,%6.1Oldest compatible LabVIEW.__`|`pPPP@ stop bits @parity@ data bits @pInstrVISA resource name@ baud rate @!stop@! Set Break@ break length NI.LV.ExampleFinder  @0xml text Set Break.vi This example illustrates how to introduce a break in the data line during serial communication. The VISA Serial Break vi is used to introduce a break in the data line. This VI can be run alongside the "Detect Break Event.vi" to monitor the breaks. INSTRUCTIONS: 1) Select the serial resource and configuration parameters (baud rate, data bits, parity, stop bits). 2) Introduce a break by setting the Set Break switch to the ON position. 3) Connect the serial port to your device. If no device is available, perform a loopback test by doing one of the following. Short pins 2 and 3 on a RS-232 cable or short pin 4 to pin 8 and pin 5 to pin 9 on a RS-485/422 cable. 4) Run the vi. The serial break is a condition that holds the transmit line logic-low for longer than one data byte. Normally, if there's no data to transmit, then the transmit line idle condition is logic-high. Your application may require that you send a serial break in the transmission line. You can use this example to provide that capability to a particular device. Alternatively, you can use this example to test the Detect Serial Break example, discussed later. You can change the break length or duration using the VISA Property Break Length. This example does not close the VISA Session to the port using VISA Close, in order to allow you to use this example in conjunction with other serial operations on the same port. communication instrument serial transmitters visa 232 485 rs-232 rs-485 rs232 rs485 control 3113 4290 LabVIEW LabVIEW PCI-232 PXI-8420 PXI-8422 PCMCIA-232 AT-232 USB-232 ENET-232 PCI-485 PXI-8421 PXI-8423 PCMCIA-485 AT-485 USB-485 ENET-485 NI.LV.ALL.VILastSavedTarget0DfltNI.LV.ALL.goodSyntaxTargets&&@0DfltThis example illustrates how to introduce a break in the data line during serial communication. The VISA Serial Break vi is used to introduce a break in the data line. This VI can be run alongside the "Detect Break Event.vi" on a separate serial port to monitor the breaks. INSTRUCTIONS: 1) Select the serial resource, configuration parameters (baud rate, data bits, parity, stop bits), and break length. 2) Introduce a break by setting the Set Break switch to the ON position. 3) Connect the serial port to your device. If no device is available, perform a loopback test by doing one of the following. Short pins 2 and 3 on a RS-232 cable or short pin 4 to pin 8 and pin 5 to pin 9 on a RS-485/422 cable. 4) Run the vi. The serial break is a condition that holds the transmit line logic-low for longer than one data byte. Normally, if there's no data to transmit, then the transmit line idle condition is logic-high. Your application may require that you send a serial break in the transmission line. You can use this example to provide that capability to a particular device. Alternatively, you can use this example to test the Detect Serial Break example. You can change the break length or duration using the VISA Property Break Length. This example does not close the VISA Session to the port using VISA Close, in order to allow you to use this example in conjunction with other serial operations on the same port.(2A ;JA:!Pp ?* DTHPD_88 ~ "@ flow control@ stop bits @parity@ data bits:*@pInstrduplicate VISA resource nameF6@P @!status @code@0source error out, @pInstrVISA resource name 7@ baud rate(@0[exception source]&@[exception code], @xception action] (none:0)L@@P @!status @code@0sourceerror in (no error)@0message.@type of dialog (OK msg:1) @0 source out@code out.@0[error source] (" ") @!error?>.@@0ser-defined descriptions]0$@@[user-defined codes]&@[error code] (0)   @[error code] (0)$@@[user-defined codes].@@0ser-defined descriptions] @!error?@0[error source] (" ")@code out@0 source out@type of dialog (OK msg:1)@0message@@P @!status @code@0sourceerror in (no error) @xception action] (none:0)@[exception code]@0[exception source]6@P @!status @code@0source error out @timeout (10sec), @!Enable Termination Char (T)*@millisecond multiple(@millisecond timer value*@flow control (0:none)*@stop bits (10: 1 bit)<0@NoneOddEvenMarkSpaceparity (0:none)@ Break Len"@ break length!"@ data bits (8)&@baud rate (9600), @!Enable Termination Char (T)4(@"termination char (0xA = '\n' = LF)   @pInstrVISA resource name@timeout (10sec)(@"termination char (0xA = '\n' = LF) @!Enable Termination Char (T)*@pInstrduplicate VISA resource name@baud rate (9600)@ data bits (8)0@NoneOddEvenMarkSpaceparity (0:none)@@P @!status @code@0sourceerror in (no error)@stop bits (10: 1 bit)@flow control (0:none)6@P @!status @code@0source error outP   6@P @!status @code@0source error out*@pInstrduplicate VISA resource name@@P @!status @code@0sourceerror in (no error) @pInstrVISA resource name @!stop@! Set Break @!status|X44P,Tx 8XhX4X@@``XX,PPhPXXP4@hXPX T < < T T < p pP XD break lengthH0`UD'I4x'J4x Set BreakPD@VAVstopH$]SnTnUD'4'4 baud rateH`:G:G^DVISA resource nameH_UDR_R_ data bitsH_fsfsRD~~parityH_賳H_UD stop bitsHP`H4`DTʎU88QThis example demonstrates how to set a break in the data line during serial communication. Prior to runnning the example, select the VISA resource name and the break length. When the Set Break switch is set to ON, a break is introduced in the data line. The Detect Break Events.vi can be run on another serial port to detect the break.DWݶXݶHHHFor additional information select File >> VI Properties >> DocumentationdD! General Error Handler.vi[Dd܋dދB[[| When the Set Break switch is in the ON position, a break is introduced in the data line by using the VISA Serial Break.vi. You can change the break length or duration using the VISA Property Break Length (the default break is 250 ms).HDH`>{?{RE}~ True HD$`B?OUB@OUHD_!!`D:G:Gmillisecond multipleHD_JWJWDzzB""QConfigure Serial port (baud rate, data bits, parity, stop bits and flow control).HD` HD_FFHD_ HD_[Do|2o|1timeout (10sec)HD`gDLYoLYnEnable Termination Char (T)HD``)6)6 XDN[N[ flow controlHD`o|o|HD`^k^kfDׇ׉VISA Configure Serial Port`D%$VISA Serial Break.vi STOPNoneOddEvenMarkSpace1.01.52.0"NoneXON/XOFFRTS/CTSDTR/DSRInstrbSb0b(b,b $_ aa`ta Set Break.viFPHP Set Break.vi!\FPHPD]8!T!T![~`!L``_!)mDH !LXL8t (=<hD x@L @ x Dh P08|D@PDl7&,pH44 F |4  2 |p 6 0cqcqcqp 2 brbrbrL : 0{u0{/|.}-~0  dp8hBR break length specifies the duration (in milliseconds) of the break signal asserted in the transmission line. Valid values are 1-500.08QLB|4O&HeyP,x4 GL&H5y| 4LV9Ved9Ved9Ved9Ved9Ved 5LX7Ted7Ted7Ted7Ted7Ted L9Vedmmmm9Vedmmmm9Vedmmmm9Vedmmmm9Vedmmmm8hLBT||8#Introduces a break in the data line0pO0|4O@@΁ LN,  T 4 O?W|<  vRo|` @΁뼼@΁@΁@΁@΁8hB $ 8R||,Stops the VI operation0  D|*<@P x&L L@dT, ( \ p 4 F  &5|4  2 9H|p 4  04@cq4@cq4@cqp 4  @Lbr@Lbr@LbrL :  9H0{u0{/|.}-~0  5Ldp8 h B $ 8R  | |X +Specifies the baud rate of the serial port.Serial baud rate.0  p |*8 U !   <p4 F Q|H  Q! W, $`0@ 2pO   IIJ< 2p  | p 2p+    u_  u_  u_0 7p  ߳0 p !dp8 hpBh|T | |8 h BT | |T A string that uniquely identifies the resource to be opened and written to as well as read from. The grammar for the resource name is shown below. Optional string segments are shown in square brackets ([]) Interface Syntax VXI VXI[board]::VXI logical address[::INSTR] GPIB-VXI GPIB-VXI[board]::VXI logical address[::INSTR] GPIB GPIB[board]::primary address[::secondary address][::INSTR] Serial ASRL[board][::INSTR] The following table shows the default value for optional string segments. Optional String Segments Default Value board 0 secondary address none The following table shows examples of address strings. Address String Description VXI0::1 A VXI device at logical address 1 in VXI interface VXI0. GPIB-VXI::9 A VXI device at logical address 9 in a GPIB-VXI controlled system. GPIB::5 A GPIB device at primary address 5. ASRL1 A serial device attached to interface ASRL1.Resource Name of serial port.0 t |+@ PDQx@X, (\<4 F Q`|4  2 et|p 2 0`lcq`lcq`lcqp 2 lxbrlxbrlxbrL : et0{u0{/|.}-~0  axdp8hBR ||P<data bits is the number of bits in the incoming data.0t|+hPWh}<@,(\<4 F }|4 J ó|< 2  |_p 6 0cqcqcqp 2 brbrbr0  dp8hB(Ta|||fparity is 0 no parity (default) 1 odd parity 2 even parity 3 mark parity 4 space parity 0 |/`PW@LA"\(n,x,4 F $|4 K (|< 2 ,|D`p 6 0cqcqcqp 2 brbrbr0  dp8hBdxTa||dPstop bits specifies the number of stop bits used to indicate the end of a frame.0 +T0 *T4 S0|4 V޷4|0 JC7,  LHXL $( InstrBDHP Set Break.viLVINGeneral Error Handler.vi PTH0LVINVISA Configure Serial Port;PTH0LVINVISA Serial Break.viE`^XN4 BA>PV?|0@d%,4 B"?| @d%`,d&P`@PHY %A, , ` !4 J 9H?|4  2 IX|L! : JV0{0{/|.}-~0! 3 HY8!hB !"d$h!hP>?4?@$@@A<@/>P /;:t>*</>4/3;>A/= /;?>4/3;? >/?4 /;3t>+4/3;@=4/3;>p? /;?T?4/3;@1 /@$ /;8?@$4/3;@x0 /@ /;@D@/?/@ /;A@4/3;A(. /A< /;6@/`4/3;A- /A /;54A\/4/3;CH,4/3;@/ /;AB,4/3;B)/B /;2BL@,/); L/ ; T//`)-++h+**</*P /EQ8>Q8>:>I?h  йo  йv  й} й йTahomaTahomaTahoma02RSRC LVINLBVWdA D 44RSID`LVSRtBDPWLIviCPTMDSTMDFDSLIdsVICDversDLDR(FPTDø08?ø08?~g?|'|yyy<,󟟏CX{>y><??????ݝ XXd.؃XX.|x@@ /????ÀED'ǀEUÀH @Ġொ H HĠĠDH HĠ @H?  H  H  H  ?HH HH??AȬ   Ȉ( (̈̌b,̢,,,(,<h,̀ ̈,&b,b..̂̂Ȉ ,b,,,,<̂Ȉ ,b,,,,<̂Ȉ (Ľb,b...,,0h, ̀b,̂È, Ȁ̀b,̂Èh,̀ ̈,b,b..̂̃?h,ʀ̃Œ̈,΢,,,̂̃̂Ȉ (̈̌b,b...,8,0h ̀̈,΃ ,,! ̂ÈȠ ʀʁʡʀʡʡʡ033#2Ȭ  ̌̌̌ČČČ̌̌̌Č̌ČB ̌̌Ȍ̌Œ`̌` ̄̈̈̈̈̈ ̎ ( ̈̌̌̌̈(̈H ̌̌Č̈(̈̌   ̎ x ĀĎHDLpĎHĎBpĎ@pĎ@p̀B(̈(̈(̈(̈ .興̀ .̀ .̀  ਂ , ̌̈̈̈̈̈ ̎( ̈̌̌Č̈(̈̌̌̌̈(̈Ȟ  ̀ ḦȈH ̈ȈḦȈḦȈḦ(ȈḦ(ȈḦȈ ̌Bψ,̌̌̌̌   ⨂̀ . * ̀ . ̀΢H̀BΈ,̼Bψ,Bψ,̌Č̈€,΢,̂̃̌Č̈Ȁ ̌b,,<ψ,B  ̀ +(* H *      ̀ ( * ̀ .興̀     *(   333333333̪Ȉ,̌̌ȈH ̌ Ȉ̈ ̌Č̌Ȉ Ȉ ̈H Ȉ̈  ̈H Ȉ(̈ Ȉ ̈Ȉ ̈ Ȉ̈H Ȉ̈ Č ̈ Ȉ̈̀ ̀Ȉ̀ ̀ ̀ ̀ ̀HhhhXXXό ȏ @RSRC LVINLBVW D@ <*+J>NY8e ُ B~2܃qJ XtLVINBasic Serial Write and Read.viLVINSimple Error Handler.vi   @!error?@code out@error code (no error:0)@0error source (" ")@0 source out6@P @!status @code@0source error out@0message@type of dialog (OK msg:1)@@P @!status @code@0sourceerror in (no error)PTH06Utility error.llbSimple Error Handler.viLVINVISA Configure Serial Port   @pInstrVISA resource name@timeout (10sec)(@"termination char (0xA = '\n' = LF) @!Enable Termination Char (T)*@pInstrduplicate VISA resource name@baud rate (9600)@ data bits (8)0@NoneOddEvenMarkSpaceparity (0:none)@@P @!status @code@0sourceerror in (no error)@stop bits (10: 1 bit)@flow control (0:none)6@P @!status @code@0source error outPTH07Instr _visa.llbVISA Configure Serial Port   @pInstrVISA resource name@ baud rate@ data bits @parity@ stop bits @!write @!read@ flow control@0string to write@0 read string@ bytes to read PA c8 P+ cZP"@P@flg@oRt@eofudfP flow controlxdfdPtxdPoldPext P" P@@ cVP"@P@flg@oRt@eofudfP stop bitspdfdPtxdPoldPext P" P@@RP"@P@flg@oRt@eofudf P!writep!dfdP!txdP!oldP!ext cRP"@P@flg@oRt@eofudf P!readp!dfdP!txdP!oldP!ext cZP"@P@flg@oRt@eofudfP bytes to readpdfdPtxdPoldPext P cpP"@P@flg@oRt@eofudfP0string to write p0dfd P0txd P0old P0extlP"@P@flg@oRt@eofudfP0 read string x0dfd P0txd P0old P0ext cTP"@P@flg@oRt@eofudf PparityxdfdPtxdPoldPext P" P@@ cVP"@P@flg@oRt@eofudfP data bitspdfdPtxdPoldPext P cVP"@P@flg@oRt@eofudfP baud ratepdfdPtxdPoldPext P cP"@P@flg@oRt@eofudf PpInstrVISA resource nameppInstrdfdPpInstrtxdPpInstroldPpInstrextZ P$@P@0PZ P$@P@0P`timeout (10sec) h!Enable Termination Char (T) c ct c c cl@@P @!status @code@0sourceerror in (no error) c$ @pInstrVISA resource name@0 read buffer@ bytes to read @!read@0string to write @!write c@ baud rate@ data bits0@NoneOddEvenMarkSpaceparity (0:none) c@ stop bits@ flow control @parity c4 c c< c< P vPvPvPvPvPvPvPvPvPvPvP c c !  0^ j < d h l (  *IDN?%COM1'8 , 0x(P\^<pJ|~4LX\  ,d8<    @(@h<@4@@@$(@Z@l(@h(@h(@h(@h8@(@h(@h(@h0@(@h,@(@hVIDSBasic Serial Write and Read.viVIDSVISA Configure Serial PortPTH0VIDSSimple Error Handler.viPTH08i386 8|code,\$EwD8|E\EPPUEd$=h= Ð)Ӏ}EELXC\8{`t$QR8zd$ZY= Cd,Cl0{ptP0RZXC$C({ tP(RZXCD<{HtP<R]ZXCL4{PtP4R}ZXC,C4C<CTƅƅƅƅƅƅPƅpƅLƅ ƅ,ƅ48tQRUʯd$ZYɍHHH HƅthhUEPtDž(,=|E\EPQRhPPd$(򹷃d$ZY=VduDÐÐÐQR{ZYQRhPEP$Pd$(蜹d$ZYÐ}vDž,u6hQRVP($h8hP(D$X䷃d$ZY=ud0ta(;t(9t Dž,=|E\EPQRP:zd$ZYÐ}vcDž,T(D>|E\QRhPEP$Pd$(裸d$ZYdu Ð(u(}v0>u7(t.(xQRUh(QVd$ZYƅfx&Ehx ƅfxƅ4t#,QRP$hzd$ZYDžh@|E\EPQRhPP$(d$ZY=iuDÐÐÐQRxZYQRhPEP$P$(貶d$ZYÐ}vDžlu6hQRVPh$hhP0D$X,hP(D$X᷃d$ZY=udptah;th9t Džl@|E\EPQRP=wd$ZYÐ}vPDžlAhAA|E\QRhPEP$P$(覵d$ZYu Ðhuh}v3>u7ht.hxQRUhhQVd$ZYƅ$ƅ}$u ƅ hhUEP8d$ =fx2>EhxƅfxSƅQRhP(D$Xd$ZY>u.=t'=xQRUhPQVd$ZYƅfxƅ tsts$ts4ts<tsDtsL$tsTts\ ETAC|E\EP.UR@␐}vt}vt1ƅ fxb48tQRUd$ZY}t}u@}urvQRPE@$d$ZY==t p h搐ÐEw C|E\EPPUEd$=t=t=t=tEw Ew‰ppVLFX@'PUEd$=uÐP^ TFD|P^ T]D|P^ tD|P^ PD|iP^ D|OD|Ðx&D|Ðx&pD|p @'PUEd$=uÐP ^  @E|P^  SE|^P ^ E|$Pe^  E|P^  F|P^  ;F|vP^  uF|HfWHHT=Hc  56 T | P+U 8|%nL  4- d %q 7 N e | CODE,\D0|$%6.1Oldest compatible LabVIEW.Z8Z\\pPPP @0string to write@0 read string@ bytes to read@ baud rate @pInstrVISA resource name @!write @!read@ data bits @parity@ stop bits@ flow control   example finder@0xml text instrument control,serial Hardware Input and Output\Serial NI.LV.ExampleFinder@0xml texth Basic Serial Write and Read.vi The Basic Serial Read and Write example performs a Serial Port Read, a Serial Port Write, or a combination of these actions. The user selects the actions (read or write) on the front panel. If both are selected, the VI will write the data first, read data, and then close the VISA session that is opened to the port. This VI will wait until the specified number of bytes is received at the port. Only the number of bytes specified will be read. INSTRUCTIONS: 1) Select the serial resource and configuration parameters (baud rate, data bits, parity, stop bits, flow control). 2) Select the operations to be performed. 3) Connect the serial port to your device. If no device is available, perform a loopback test by doing one of the following. Short pins 2 and 3 on a RS-232 cable or short pin 4 to pin 8 and pin 5 to pin 9 on a RS-485/422 cable. 4) Run the VI to see the data read. (The "read string" will match the "string to write" if a loopback test was performed.) Note: The parameters set for the serial port must match the parameters of the connected instrument or device. In this example, the bytes to read parameter specifies the number of bytes that the serial port reads. If there were more bytes at the port than the number specified in bytes to read, those bytes would not be read. Also, if you specify to read more bytes than the number of bytes actually read, you might receive a timeout error message. On the block diagram, the Configure Serial Port VI sets the configuration parameters. The front panel displays the controls used to configure the basic parameters, such as baud rate, data bits, and parity. Constants configure the other parameters the user probably does not need set. After the VISA Configure Serial Port VI opens the VISA session and configures the port, the VI passes the VISA resource name to other VIs that perform operations on that VISA resource. The VISA Write function sends a command to the serial device and the VISA Read function returns data based on the command. The VISA Close function then closes the reference to the serial device. It is important to close the reference; otherwise communication through with that port through protocols other than VISA might not be possible. communication instrument serial transmitters receivers visa control 232 485 loopback rs-232 rs-485 rs232 rs485 3113 4290 LabVIEW LabVIEW PCI-232 PXI-8420 PXI-8422 PCMCIA-232 AT-232 USB-232 ENET-232 PCI-485 PXI-8421 PXI-8423 PCMCIA-485 AT-485 USB-485 ENET-485 NI.LV.ALL.VILastSavedTarget0DfltNI.LV.ALL.goodSyntaxTargets&&@0DfltThe Basic Serial Read and Write example performs a Serial Port Read, a Serial Port Write, or a combination of these actions. The user selects the actions (read or write) on the front panel. If both are selected, the VI will write the data first, read data, and then close the VISA session that is opened to the port. This VI will wait until the specified number of bytes is received at the port. Only the number of bytes specified will be read. INSTRUCTIONS: 1) Select the serial resource and configuration parameters (baud rate, data bits, parity, stop bits, flow control). 2) Select the operations to be performed. 3) Connect the serial port to your device. If no device is available, perform a loopback test by doing one of the following. Short pins 2 and 3 on a RS-232 cable or short pin 4 to pin 8 and pin 5 to pin 9 on a RS-485/422 cable. 4) Run the VI to see the data read. (The "read string" will match the "string to write" if a loopback test was performed.) Note: The parameters set for the serial port must match the parameters of the connected instrument or device. In this example, the bytes to read parameter specifies the number of bytes that the serial port reads. If there were more bytes at the port than the number specified in bytes to read, those bytes would not be read. Also, if you specify to read more bytes than the number of bytes actually read, you might receive a timeout error message. On the block diagram, the Configure Serial Port VI sets the configuration parameters. The front panel displays the controls used to configure the basic parameters, such as baud rate, data bits, and parity. Constants configure the other parameters the user probably does not need set. After the VISA Configure Serial Port VI opens the VISA session and configures the port, the VI passes the VISA resource name to other VIs that perform operations on that VISA resource. The VISA Write function sends a command to the serial device and the VISA Read function returns data based on the command. The VISA Close function then closes the reference to the serial device. It is important to close the reference; otherwise communication through with that port through protocols other than VISA might not be possible.@gNPrPPwNPp ?* DTHPD`88 ~ @ @0 read string$@0string to write 7, @!Enable Termination Char (T), @pInstrVISA resource name"@ bytes to readF6@P @!status @code@0source error out:*@pInstrduplicate VISA resource nameL@@P @!status @code@0sourceerror in (no error)! @!read@ stop bits @!write*@flow control (0:none)*@stop bits (10: 1 bit) @parity<0@NoneOddEvenMarkSpaceparity (0:none) @timeout (10sec)"@ data bits (8)&@baud rate (9600)"@ flow control @byte count (0) @0 read buffer"@ return count@ data bits.@type of dialog (OK msg:1)@0message @0 source out(@0error source (" "), @!Enable Termination Char (T)4(@"termination char (0xA = '\n' = LF)*@0write buffer ("")@ baud rate   @pInstrVISA resource name@timeout (10sec)(@"termination char (0xA = '\n' = LF) @!Enable Termination Char (T)*@pInstrduplicate VISA resource name@baud rate (9600)@ data bits (8)0@NoneOddEvenMarkSpaceparity (0:none)@@P @!status @code@0sourceerror in (no error)@stop bits (10: 1 bit)@flow control (0:none)6@P @!status @code@0source error out(@error code (no error:0)@code out @!error?:*   @!error?@code out@error code (no error:0)@0error source (" ")@0 source out6@P @!status @code@0source error out@0message@type of dialog (OK msg:1)@@P @!status @code@0sourceerror in (no error)\Q$<<h@@8P@@0Ppp8H|h@hP XD22 flow controlH WAOBOHY99UD`m+`m+ stop bitsH6HXs9s8DWWHHHFor additional information select File >> VI Properties >> DocumentationQDwriteHD$XإئPDQ^Q^readHD$[||YD꺩 bytes to readHZϱϲ[D99 string to writeH;WDWd,Wd, read stringHYllyRD4A4AparityH@XFASOFBSOHHXFT9FS9UD % % data bitsHXV+9+9UD.. baud rateHZ88^DXXVISA resource nameH4\aaDQQUUVSelect the serial resource and the operations (Read, Write, or both) to be performed. If both are selected, the VI will write the data first, read data and then close the VISA session that is opened to the port. This VI will wait until the specified number of bytes is received at the port. Only the number of bytes specified will be read. cDEGSimple Error Handler.viViShB**aNote:Closing the serial port allows it to be used by other applications without quitting LabVIEW.DllBQQQConfigure Serial port (baud rate, data bits, parity, stop bits and flow control).bLKBClose session to port.xD&c&bBWrite bytes to port.HD8&L LRE;; True oD &B $AB###Read the number of bytes specified.HDlZPPHD-RSRE A!A True HD [HD !! HD!  HDD[HDX HDY[Dly ly timeout (10sec)HD\\||‰gDKXJKXIEnable Termination Char (T)HDX))HDW?L?LfD{}VISA Configure Serial Port"NoneXON/XOFFRTS/CTSDTR/DSR1.01.52.0OFFONOFFONOFFONOFFONNoneOddEvenMarkSpaceInstr``__|___x`` d`a_Basic Serial Write and Read.vid.vi!.FPHPBasic Serial Write and Read.vi+tFPHPDtV8+l+l+s~,\+8J\% \TYBe^~H+d((XL8*ll=)L <Ph!lX D\$X P<Dh!l(() )P0($|.XPW@>t0A&8,D$T4 F$ 3|4 K$ @Pó|< 2$ :|Yp 6$ 0cqcqcqp 2$ brbrbr0 $ >dp8h$BTa||`Lflow control sets the type of control used by the transfer mechanism.0DX,d|-PW@_>ABH,<xX4 FX _n,|4 KX |< 2X r:|LXp 6X 0mycqmycqmycqp 2X ybrybrybr0 X n>dp8 hXBTad Pstop bits specifies the number of stop bits used to indicate the end of a frame.4 X|0 2P |(4 OX ,,  0 l  4 G,|<  fפ|3 as˼`t˼asֽ˼ֽ˼ 5Y_uٳ^vٳ_uֽ޳ֽ޳0 4VӺlh8 hB  R  | | `If this is selected, the data in the String to Write control will be written to the serial port.Write data to serial port?0   pJ |)44 O P 83,  d l44 G P_|<  f {|[  aasaʼ`taʼasyʼyʼ 5 Ya_uaس^vaس_uyݳyݳ0 4 Vvlh8h BlR ||If this is selected, the VI will try to read at least the number of bytes specified in the Bytes To Read control from the serial port.Read data from serial port?0 | h@PPM@,4hH4 F |4  2 ΰ|p 4 0ɡխcqɡխcqɡխcqp 4 աbrա᭼brա᭖brL : ΰݶ0{u0{/|.}-~0  ʬdp8hBR xIf a Serial Port Read operation is performed, the Bytes to Read control dictates the bytes to read from the serial port.Bytes to read from serial port.0|h4Q@,(B,X4 F :|4 2 <|0  @dp8hBTThe String To Write control contains the string written to the selected serial port if the Write control is selected. The string is normally an instrument-specific command for the device connected to the serial port.String to write to serial port.0l | 4Q5@"V(h,X8h4 F8 3B|4 J8 E@TPó|< 28 EU:|xXp 68 0@Lcq@Lcq@Lcqp 28 LXbrLXbrLXbr0 8 AY>dp8h8BTa|||fparity is 0 no parity (default) 1 odd parity 2 even parity 3 mark parity 4 space parity 0t4L|)@PD 0>1@b,(\<4 F  &|4  2 ,:|p 2 0$cq$cq$cqp 2 $0br$0br$0brL : , 0{u0{/|.}-~0  0>dp8hBR ||P<data bits is the number of bits in the incoming data.0C|(@Ph=!L@\,L ` 4 F /|4  2 9|p 4 0cqcqcqp 4 brbrbrL :  0{u0{/|.}-~0  =dp8hBR X+Specifies the baud rate of the serial port.Serial baud rate.0!K!x|(l8U!lw!$h""8$04 F!QY|H!Qw"W, ""#(###@ 2"8O bsIIJ< 2"8 b| p! 2"8+  u_u_u_0! 7"8 ߳0! "8 wdp8!h"8BT8!h!BTT!A string that uniquely identifies the resource to be opened and written to as well as read from. The grammar for the resource name is shown below. Optional string segments are shown in square brackets ([]) Interface Syntax VXI VXI[board]::VXI logical address[::INSTR] GPIB-VXI GPIB-VXI[board]::VXI logical address[::INSTR] GPIB GPIB[board]::primary address[::secondary address][::INSTR] Serial ASRL[board][::INSTR] The following table shows the default value for optional string segments. Optional String Segments Default Value board 0 secondary address none The following table shows examples of address strings. Address String Description VXI0::1 A VXI device at logical address 1 in VXI interface VXI0. GPIB-VXI::9 A VXI device at logical address 9 in a GPIB-VXI controlled system. GPIB::5 A GPIB device at primary address 5. ASRL1 A serial device attached to interface ASRL1.Resource Name of serial port.0! T4! P|0" JC0" KT"7"  !lhD  X    < P ,"0h ,# '" BDHPBasic Serial Write and Read.viLVINSimple Error Handler.vi PTH0LVINVISA Configure Serial Port>PPTH0G4 @BDHPDX8G,G,G3"~,\=d0ZX1Bͳ,"EE.D"1PDdI,8" X(`0 " 4"3 HYd^" " 4"3 DGYd^" " xX4"3 FOYT"X " 4"3 EDOI" " H(4"3 |;DOI"( " 4"3 :Yd^" " 4"3 L8Yd^" " `4"3 7OYT"` " 4"3 6DOI" " 5PC4"3 !DOI "04" K Dl|4# Wj?Bh|4$ k?Bd|4% M?B`|4&/#&  &h5C4&0h #& &h7@C4&0ht  & &h6(l4&0h   &X&,H2q,k  @ ,,&t &@@0 ,( &@@8 C &@@9x (l &@@:X pC &@@/ (l,&  p & \ t,& (&& 0& \ ,& x P &B ,(0&. \#& Ht &B C0&- hql& x &B D (l0&- 4&  &B pC0&- & P  &B D (l0&- Nhql& ,& D 4& \ x7H& Dl& 4& \ X PH& l& P x,& L,& h4&  t'd?B\|4'/ t4(H,'`0h '<4'0O@HD'` '4'0P@HD' 'xP4'0Q@HD'0 '4'0J(0,' '@ h4'0T@(0, ' '4'09(0, 'h'0' t,'Hh , 'B ,(0'@@h'4' BhM?X| (B< C (B (l (B pC (Bx (l,(x@<4( t7H(xlD(0,4( tDPH(,( 4( t$7H(,(h4( t t0(@,(h4( tpPH(<lD(`<($1P 4<T| X),h2,4`L'`Z,) )@@;8L)4 )@@8C )@@7$C )@@6(l )@@/(l,)$)|,)H ))0)|,),p )BL)40).|!), H )BC0)-)!0 )B$C0)-T)!p )Bd(l0)-")p!P )Bd(l0)-,)!)d4)|7H)d)p4)|0P)),)$! ,)P h4)/-M@),d4 )P&d4)0P/EMI) )PL,4)0P.EMI), )P"t4)0P-EMI) )P%h4)0PP,EMI) )P#p4)0P+-51)d )P$l h4)0P *-51 ) )P!T4)0P)-51 )44)  'C?BP|*P0* ,* H h !0!P!p! *BL)40*@$lP h - 4* B h Q?L|0+@"t<Qqa 4+ B Q?H| ,B#pC ,B%h(l ,B&d$C ,B!(l,,!"t#p$l%h&d4,"X"7H,!1,!44,#T"0.,"taIWW, 4,$P#P,#p1,!0d4,%L$,$l1, h4,&H%7 ,%hI,!P4,'D&P,&dI,!p<,$1P 4BD| 0-'<- ((l()4))*`,p-.X0-@'=h((84- B(?@|0.@'<4!l(lަ(4. B(l"?<|0/@'0X()4/ B(?8|00@';8 )4#)d40 B)4?4|01@'/D))41 B)?0|02@'5 )*,42 B)?,| 3@'4,**`,3'*'*$3*`@3P*k+ A,3+,+`++,43 B* kz?(|44  2* {$|L5 :* |0{0{/|.}-~05 3* z85h*B,H,\5|5| 5@'3L,,p,5',,(5,p45O,JgK-5- -T-45 B,JYK? |@6 6,Yg))*86h,B--6|6|06@'2l-*:2.$46 B-*?|07@'1.XM]U.47 B.X>M?|\8//012l3L4,5 56789x:X;8<4=48F/L8/}480t0,7H8/l8481p0!808(t48G1 81UU48F2 82l2248FX3!83L``48F<4`84,48F5@85 }  4866 P85II80487778684888P878 489\9P H88l848Ft97 89xߖ48G:P 8:X48<;l!8;88)448F >zD@(/8?@8?48 K>Pz|P9?@??@d@A ABBBC\CD DtDEd 9>P<4?t(l9?493>P>Az} 9>P4,?*` 9>P@?493>P>?܁493>P@P=܍9@d 9>P3L@,p493>P?`>܇ 9>P9xAT(l493>PA &z}9A 9>P=@(9A493>PA<ܓߖ9@ 9>PBXA493>PA$z}9B 9>P/A)493>PC|#493>PA@% 9>PB$B493>PBz} 9B 9>P5 BB493>PCH 9C\ 9>PCC\9B9C 9>PDC493>PC 9D 9>P2lC-493>PD` 9Dt 9>P1D,.X493>PF( 493>PCz} 9>PDD493>PEP 9Ed 9>P:XEC,9'>Ph \9>P .X-,p*`))4h)4((l(9(l?@9D9*`?9,p@d9@9(A 9)B9)B9-D 9.XDt9Ed ({@UUAn *>>*>>@?x  й  й  й й й TahomaTahomaTahoma020RSRC LVINLBVW   4RSIDTLVSRhBDPW|LIviCPTMDSTMDFDSLIdsVICDversDLDRFPTD0CPMpDVITSXSTRGlICONicl8DTHPTRec1CPSTSTR LIfpFPHP0LIbdDBDHPXHISTlPRT FTAB__Pbt__tX`d_Pbb.Db.pb.`/p,^/`?`Hl`H|`L_WH_Wl`X8_Xp`X_ Y,_ Yx_ Z_ ZhL`Za[ `[T^[ `\\^\`D`\4`]_]TP`]``]_^D_^|_^__H__t`!__"`D`#a_$bT`%c`&c`'d`(d`)d]*e4`+e$`,e_-f@`.f0`/fH`0g0`1g|_2g<`3h`4h``5h`6i `7ix`8i`9j`j|x`j` jd`jaj_ k _l_lD``t`߬_ؘ_\_Basic Serial Write and Read.viThe Basic Serial Read and Write example performs a Serial Port Read, a Serial Port Write, or a combination of these actions. The user selects the actions (read or write) on the front panel. If both are selected, the VI will write the data first, read data, and then close the VISA session that is opened to the port. This VI will wait until the specified number of bytes is received at the port. Only the number of bytes specified will be read. INSTRUCTIONS: 1) Select the serial resource and configuration parameters (baud rate, data bits, parity, stop bits, flow control). 2) Select the operations to be performed. 3) Connect the serial port to your device. If no device is available, perform a loopback test by doing one of the following. Short pins 2 and 3 on a RS-232 cable or short pin 4 to pin 8 and pin 5 to pin 9 on a RS-485/422 cable. 4) Run the VI to see the data read. (The "read string" will match the "string to write" if a loopback test was performed.) Note: The parameters set for the serial port must match the parameters of the connected instrument or device. In this example, the bytes to read parameter specifies the number of bytes that the serial port reads. If there were more bytes at the port than the number specified in bytes to read, those bytes would not be read. Also, if you specify to read more bytes than the number of bytes actually read, you might receive a timeout error message. On the block diagram, the Configure Serial Port VI sets the configuration parameters. The front panel displays the controls used to configure the basic parameters, such as baud rate, data bits, and parity. Constants configure the other parameters the user probably does not need set. After the VISA Configure Serial Port VI opens the VISA session and configures the port, the VI passes the VISA resource name to other VIs that perform operations on that VISA resource. The VISA Write function sends a command to the serial device and the VISA Read function returns data based on the command. The VISA Close function then closes the reference to the serial device. It is important to close the reference; otherwise communication through with that port through protocols other than VISA might not be possible.   @pInstrVISA resource name@ baud rate@ data bits @parity@ stop bits @!write @!read@ flow control@0string to write@0 read string@ bytes to read@gNPrPPwNPp ?*?T"?UED' *몪*着*ꪯꫢ着着*+*("****ȌȌȌ ,*<~|AU|FfFdfefDfPfFdfefDfPfFdfefDfPdFdffdffFffefdfPfFdfeFDf!3?2?2?g<=?y?s=x<|q<ø08?ø0xyy6=yyyxyyyg8x???g??y? Ï??dzq?<|vx8?'|=~~?O?§'?~ϳqqy>?;<y?y?='|g?<Cp   ???(??? PǀED'? ZTU? ̌ ĠொH Hİ  ?H H ?HİĠ䯎 H  H @@H@H HĠ ?H   H ?H H HįHįH H į ?O?Ȭ  ̀h(̀ ̈,b,b..̂̃h,̀Œ̈,΢,,,̂̃,̀Œ̈,΢,,,̂̂Ȉ (̈̌b,b...,,0 ̀b,̂Èh,̀b,̂Èh,̀̈,΃ ,,! ̂̃̃̂Ȉ( (̈̌b,̢,,,,<h,̀ ̈,b,b..̂̃h,ʀ̃Œ̈,΢,,,̂̃̂Ȉ (̈̌b,b...,,<h,̀̈,΃ ,,! ̂̃̃Ƞ͡ʣʡʂʣʃʣʂ"""03?##2 < ̎̈H ̈ȈH ̈ȈH ̈HȈH ̈HȈH ̈HȈH ̈ȈH ̈ȈH ̈ȈH ̈HȈḦHȈ,̈ḦȈH ̈HȈH ̈HȈH ̈HȈH ĈHȈH ̈HȈḦHȈḦHȈ,̈ḦȈḦ(ȈḦȈ̈ḦȈḦ(ȈHLȈ ḦȈḦȈḦȈḦ(ȈḦ(ȈḦȈ鏈LḦȈḦȈḦȈHLȈḦ(ȈḦȈHLH鏈 L ψ,Bψ,BΈ,̬B̪ʈ,̬B̪ʈ,BLψ$̌Č̈Ȁ ̌b,,<̈ȞȈ( ( b,Ꮘ⪏.,,<̪ʈ,̀ *" ⨢.*(* / *⨨*𨂫   . (  𨂋*(* ਠ̀ (*   ̀ .(* ̀  .  (*  ̀   ̀  /    ̀  * (*33333333333333HȈB̈̈Č̈ ̈̌Č̈HȈ̈̌Č̌ČHČ̌ČȈ̌Č̌ČȞ̌L̀ Ȉ̌̄̈ ̈̌̈̈ ̈̌Ȉ̌̌ HB̈HHHLHȈ̈HȈ ̈HȈ̈HȈ(̈HȈ ̈HȈ ̈Ȉ̈HȈ̈HȈ ̈Ȉ̈ĀH̀ČHhhhXXό ȏ RSRC LVINLBVWl LD@ <L;A M ُ B~|yZWiLVIN'Basic Serial Write and Read (2 Port).viLVINMerge Errors.vi` 6@P @!status @code@0source error outP@@6@P @!status @code@0sourceerror inerror array inB@P @!status @code@0sourceerror in 3 (no error)B@P @!status @code@0sourceerror in 2 (no error)B@P @!status @code@0sourceerror in 1 (no error)PTH0.Utility error.llbMerge Errors.viLVINSimple Error Handler.vi   @!error?@code out@error code (no error:0)@0error source (" ")@0 source out6@P @!status @code@0source error out@0message@type of dialog (OK msg:1)@@P @!status @code@0sourceerror in (no error)PTH06Utility error.llbSimple Error Handler.viLVINVISA Configure Serial Port   @pInstrVISA resource name@timeout (10sec)(@"termination char (0xA = '\n' = LF) @!Enable Termination Char (T)*@pInstrduplicate VISA resource name@baud rate (9600)@ data bits (8)0@NoneOddEvenMarkSpaceparity (0:none)@@P @!status @code@0sourceerror in (no error)@stop bits (10: 1 bit)@flow control (0:none)6@P @!status @code@0source error outPTH07Instr _visa.llbVISA Configure Serial Port** x       @0 read string@ bytes written@ bytes read@ bytes to read&@pInstrVISA resource name (read)@0string to write(@pInstrVISA resource name (write)@ flow control@ stop bits@parity (0:none)@ data bits (8)@baud rate (9600)Pm c8 P+ cVP"@P@flg@oRt@eofudfP stop bitspdfdPtxdPoldPext P" P@@ cZP"@P@flg@oRt@eofudfP bytes to readpdfdPtxdPoldPext P cZP"@P@flg@oRt@eofudfP bytes writtenxdfdPtxdPoldPext P cXP"@P@flg@oRt@eofudfP bytes readxdfdPtxdPoldPext P clP"@P@flg@oRt@eofudfP0 read string x0dfd P0txd P0old P0extpP"@P@flg@oRt@eofudfP0string to write p0dfd P0txd P0old P0extP"@P@flg@oRt@eofudf&PpInstrVISA resource name (read)ppInstrdfdPpInstrtxdPpInstroldPpInstrext cZP"@P@flg@oRt@eofudfP flow controlxdfdPtxdPoldPext P" P@@ c\P"@P@flg@oRt@eofudfPparity (0:none)xdfdPtxdPoldPext P" P@@ cZP"@P@flg@oRt@eofudfP data bits (8)pdfdPtxdPoldPext P c^P"@P@flg@oRt@eofudfPbaud rate (9600)pdfdPtxdPoldPext P cP"@P@flg@oRt@eofudf(PpInstrVISA resource name (write)ppInstrdfdPpInstrtxdPpInstroldPpInstrext h!Enable Termination Char (T)`timeout (10sec) c c| c0 c,(@pInstrVISA resource name (write) c@@P @!status @code@0sourceerror in (no error) c@ return count c6@P @!status @code@0source error out c@0 read buffer c0@NoneOddEvenMarkSpaceparity (0:none) c@ return count@type of dialog (OK msg:1) c@0error source (" ")@0 source out@0message6@P @!status @code@0source error out c@error code (no error:0)@code outP@@6@P @!status @code@0sourceerror inerror array inB@P @!status @code@0sourceerror in 3 (no error) @!error?(@"termination char (0xA = '\n' = LF)(@"termination char (0xA = '\n' = LF)@0string to write0@NoneOddEvenMarkSpaceparity (0:none) c@ stop bits@ bytes to read@parity (0:none)@baud rate (9600)*&@pInstrVISA resource name (read)@@P @!status @code@0sourceerror in (no error) c@ flow control@ data bits (8) c cl c c\ c c c c c( c c< c< P vPvPvPvPvPvPvPvPvPvPvPvP c c < $ 8  T. p$^   8d .  *IDN?COM5%COM4' DVPX, $08    f(    L4X\$ ,L` dpx $`08     @ @| @ (@ @ $@ ,@F@4 de@ ,@FZ @4 @|Z @,@FZ @|`@@*@4 @|VIDS'Basic Serial Write and Read (2 Port).viVIDSVISA Configure Serial Port PTH0VIDSSimple Error Handler.vi(PTH0VIDSMerge Errors.vi$PTH0i386 ~code pEw~E\EPPUEd$=D=J Ð)Ӏ}!ELXCL,{PtP,RTZXC<{@tPR4ZXCtCl(Cd CT$CD{Ht$QR]Od$ZY=g CC,`C$C4C\}E$EEƅDƅ$ƅƅƅƅLƅƅ$ƅ48tQRU d$ZYɍDHHH HHHHƅ@$thh UEPtPQYXDžd~E\EPQRhPP$,{d$ZY=WuDÐÐÐQRVZYQRhPEP$P$,%d$ZYÐ}vDžhu6FQRVPd$hP,D$Xm9d$ZY=udltad;td9t DžhK~E\EPQRPVd$ZYÐ}vbDžhSd~E\QRhPEP$P$,+ d$ZYu Ðdud}v>u7dt.dxQRUhdQV^]zd$ZYƅL}$u ƅdhh UEP8d$ fxƅPQRhP,D$X;d$ZY>u.=t'=xQRUhPQV\zd$ZYƅPfx[~E\QRPEP$hhPEP$ld$ZY=tÐbƅTx1@>t7`PQYXQRP$hVOd$ZY&Dž~QRhPP$& d$ZY=uGÐÐÐQRVZYQRhP$P$ d$ZYÐDžu64 QRVP$`hPD$XhPD$X5d$ZY=umtj;t9t Dž~QRPNVd$ZYÐFDž79~QRhP$P$ d$ZYu Ðu%@>u7t.xQRUhQVYzd$ZYƅT}$u ƅhhUEP8d$ }$u ƅ hhUEP8d$ =fxƅXQRhPD$Xd$ZY@>u.=t'=xQRUhPQVYzd$ZYƅXfxZQRP$hhPEP$S ld$ZY=tÐ}vƅ\x;$ts<tsD ET ~E\EP$.UR@␐}vt}vƅ\fx"ƅ`(tsLts$Tts4dts<ltsDttsL$|tsTts\0ET~E\EP(.UR@␐}vt}vt1ƅ`fx&>48tQRUd$ZY}t}uH}v}+uvQRPE@$8ld$ZY==t p h搐ÐEw ~E\EPPUEd$=t=t=t=tEw Ew‰ppVLFX@'PUEd$=uÐP ,~P ,5~P L~ 0c~i }~Op~p @'PUEd$=uÐP`  ~P  ~^P 9~$P/s~P~P~v` !~<3 [~ ~P ~P  0 ~TPu  C~_^ZY[]Ð=t,PEP$PP~$$@ $Ðd$ =t,PEP$PP~$ $@ $Ðd$s$=t,PEP$PP6~$$$@ $Ðd$(=t,PEP$PPo~$($@ $Ðd$.Ul$SQRVWT$ QRPE@$Rld$ZY=_^ZY[]ÐDžt@ DžeDžDž@dDžDžDžDžDžDž Dž(DžDžDžPTABxxDž t @ Dž e$Dž(Dž0@d4Dž8DžHDžXdDžh@tDžxDžDžDž DžDžPTABxx1Dž$t$@ DžDžDž@@DžDžDžDžDžPTABxxDž4(t(@ 4DžP DžX DžhDžpDžx Dž Dž DžDžDž<Dž@ DžDPTABx80xQRuՕ{d$ZY(Ul$SQRVW}#uQRU #Ld$ZYk_^ZY[]ÐnUl$SQRVWQRU5)Ld$ZY_^ZY[]ÐUl$SQRVWuu~F Y~F~F~F@{~FDQRhULd$ZY_^ZY[]ÐXHH/>zH>5H / H = N H P 5    Gq~)z@X9p%l^" C 4 oZCODE Dx|p%6.1Oldest compatible LabVIEW..Wh%|/**p$PPP (@pInstrVISA resource name (write)&@pInstrVISA resource name (read)@baud rate (9600)@ data bits (8)@parity (0:none)@ flow control@0string to write@0 read string@ bytes read@ bytes written@ bytes to read@ stop bits     hNI.LV.ExampleFinder @0xml text Basic Serial Write and Read (2 Port).vi The Basic Serial Write and Read (2Port) example opens 2 VISA resources and configures one COM port to perform a write operation and the other COM port to perform a read operation. This VI will wait until the specified number of bytes (bytes to read) is received at the port. Only the number of bytes specified will be read. INSTRUCTIONS: 1) Select the serial resource and configuration parameters (baud rate, data bits, parity, stop bits, flow control). 2) Select the operations to be performed. 3) Connect a null modem RS-232 or RS-485/422 cable between the 2 ports. 4) Run the VI to see the "read string" match the "string to write". Like the Basic Serial Write and Read VI, this VI allows you perform diagnostic tests on your ports. You can use this VI to perform a wrapback test. Both serial ports must have the same basic configuration parameters. You can connect two of the ports using a null modem cable, which effectively connects one port's RX lines to the other port's TX lines. If you use a straight-through cable, one port's RX lines will be connected to the other port's RX lines, and you cannot communicate between the two ports. On the block diagram, the VI calls the VISA Configure Serial Port VI twice, once for each of the two ports. This opens two separate VISA sessions. One VISA session performs the Write operation and the other performs the Read operation. Because two VISA sessions are opened, the VI includes two separate VISA Close functions. communication instrument serial 232 485 loopback rs-232 rs-485 rs232 rs485 receivers transmitters visa control wrapback 3113 4290 LabVIEW LabVIEW PCI-232 PXI-8420 PXI-8422 PCMCIA-232 AT-232 USB-232 ENET-232 PCI-485 PXI-8421 PXI-8423 PCMCIA-485 AT-485 USB-485 ENET-485 NI.LV.ALL.VILastSavedTarget0DfltNI.LV.ALL.goodSyntaxTargets&&@0DfltThe Basic Serial Write and Read (2Port) example opens 2 VISA resources and configures one COM port to perform a write operation and the other COM port to perform a read operation. This VI will wait until the specified number of bytes (bytes to read) is received at the port. Only the number of bytes specified will be read. INSTRUCTIONS: 1) Select the serial resource and configuration parameters (baud rate, data bits, parity, stop bits, flow control). 2) Select the operations to be performed. 3) Connect a null modem RS-232 or RS-485/422 cable between the 2 ports. 4) Run the VI to see the "read string" match the "string to write". Like the Basic Serial Write and Read VI, this VI allows you perform diagnostic tests on your ports. You can use this VI to perform a wrapback test. Both serial ports must have the same basic configuration parameters. You can connect two of the ports using a null modem cable, which effectively connects one port's RX lines to the other port's TX lines. If you use a straight-through cable, one port's RX lines will be connected to the other port's RX lines, and you cannot communicate between the two ports. On the block diagram, the VI calls the VISA Configure Serial Port VI twice, once for each of the two ports. This opens two separate VISA sessions. One VISA session performs the Write operation and the other performs the Read operation. Because two VISA sessions are opened, the VI includes two separate VISA Close functions. Μ( "  >AU DTHPD`88 ~ <4(@pInstrVISA resource name (write) 76&@pInstrVISA resource name (read)$@0string to write"@ bytes to read:*@pInstrduplicate VISA resource name"@ bytes written@ bytes readF6@P @!status @code@0source error out*@flow control (0:none)*@stop bits (10: 1 bit)L@@P @!status @code@0sourceerror in (no error)<0@NoneOddEvenMarkSpaceparity (0:none)"@ data bits (8) @timeout (10sec), @!Enable Termination Char (T)&@baud rate (9600), @!Enable Termination Char (T)4(@"termination char (0xA = '\n' = LF)|p` 6@P @!status @code@0source error outP@@6@P @!status @code@0sourceerror inerror array inB@P @!status @code@0sourceerror in 3 (no error)B@P @!status @code@0sourceerror in 2 (no error)B@P @!status @code@0sourceerror in 1 (no error)RB@P @!status @code@0sourceerror in 1 (no error)RB@P @!status @code@0sourceerror in 2 (no error)RB@P @!status @code@0sourceerror in 3 (no error)\P@@6@P @!status @code@0sourceerror inerror array in @0 read buffer"@ return count, @pInstrVISA resource name   @pInstrVISA resource name@timeout (10sec)(@"termination char (0xA = '\n' = LF) @!Enable Termination Char (T)*@pInstrduplicate VISA resource name@baud rate (9600)@ data bits (8)0@NoneOddEvenMarkSpaceparity (0:none)@@P @!status @code@0sourceerror in (no error)@stop bits (10: 1 bit)@flow control (0:none)6@P @!status @code@0source error out @parity (0:none)@ stop bits"@ flow control @0 read string @byte count (0)*@0write buffer ("") @!error?@code out(@error code (no error:0)(@0error source (" ") @0 source out@0message.@type of dialog (OK msg:1):*   @!error?@code out@error code (no error:0)@0error source (" ")@0 source out6@P @!status @code@0source error out@0message@type of dialog (OK msg:1)@@P @!status @code@0sourceerror in (no error)g,,`\l\\D\ddd4P\\\\l\\D\d<hD TD t T t <h `    0\ L t    D$t$tHHHFor additional information select File >> VI Properties >> DocumentationUDFF stop bitsH %3'2H#)\+[YD)6)6 bytes to readH<#+8/+8/~D 22Select the appropriate VISA Resource Names for the two ports (read and write). Also set the port configuration parameters on the front panel (baud rate, data bits, parity, stop bits and flow control). Before executing the VI, connect a null modem cable between the two ports you would like to work with.YDP5]vP6]v bytes writtenHt4N[N[VD*?7t*@7t bytes readH\$*~7*7WD<I<I read stringH<%OO\[Divivstring to writeH/||eD//VISA resource name (read)H"XDVV flow controlH#esfsH %)]*]sDggparity (0:none)H4cqdqH&)[*[qDgt[g t[  data bits (8)H\.z)[z*[tD=Jp=Jp baud rate (9600)H2P)][P*][fD:G4:G4 VISA resource name (write)H43P^P]cDSimple Error Handler.vi[DNPMerge Errors.vioDB#Close sessions to both serial portsxD/I{/IzB!!,Perform a write operation on one serial portxD}z}yB,Perform a read operation on the second portDTSBVVVConfigure baud rate, data bits, parity, stop bits and flow control for 2 serial ports.HDd4``m`am HD#`a HD3** HDT V`cVacHD2Vc,Vc,HDW)6)6 HDT5P]P] HD,XwwHDQŌōHD3V%cV&cHD$%&gD܌܎Enable Termination Char (T)[Dtimeout (10sec)HD[HD fDklxknxVISA Configure Serial PortfDl'n'VISA Configure Serial Port1.01.52.0"NoneXON/XOFFRTS/CTSDTR/DSRNoneOddEvenMarkSpaceInstr D] Z 8Z \ 8\][]4Y\'Basic Serial Write and Read (2 Port).vi).vi).viInstrX\\\\]\\X]l],]'Basic Serial Write and Read (2 Port).vi).vi6FPHP'Basic Serial Write and Read (2 Port).vi2FPHPDL38222Ü~ 2+3<1tVV71E 2XL81=0L (\%"\ T ( L\L  (T\ "\%(00@0p04 %u|0DFX|PW@aCA"4,<xX4 FX G|4  KX $4|< 2X (]|Tp 6X 0%cq%cq%cqp 2X %br%br%br0 X $adp8hXBTa||dPstop bits specifies the number of stop bits used to indicate the end of a frame.0|$`|@PL%=4 @D,0dD4 F (7|4  2 *90|p 4 0%1cq%1cq%1cqp 4 1=br1=br1=brL : *90{u0{/|.}-~0  &=4dp8hB R ||xIf a Serial Port Read operation is performed, the Bytes to Read control dictates the bytes to read from the serial port.Bytes to read from serial port.4 !|0  4 Hd |D@ P I4` A0,   H x4 F H O4^w|4  2 H M\|p : H 0HqT}cqHqT}cqHqT}cqp : H Tq`}brTq`}brTq`}brL : H M\0{u0{/|.}-~0  H I|`dp8 h HBR x bbytes written displays the actual number of bytes written to the serial port from the write buffer0  X lL |@ P (%><  A,  @  l4 F l )>8ut|4  2 l )}8|p : l 0$n0zcq$n0zcq$n0zcqp : l 0n<zbr0n<zbr0n<zbrL : l )}80{u0{/|.}-~0  l %y<dp8 h lBR ibytes read contains the actual number of bytes read from the serial port and displayed in the read buffer0 P ||4 QT;Q, ,`4 F ;J|4 2 N|0  Jdp8hBT The String Read indicator displays the string returned from the selected serial port if the Read control is selected. The string is usually returned from the instrument or device connected to the serial port.String read from serial port.0R,|4QhLH,x4 F hw|4 2 { |0  wdp8hBTThe String To Write control contains the string written to the selected serial port if the Write control is selected. The string is normally an instrument-specific command for the device connected to the serial port.String to write to serial port.0$|8U\!0(H4 FQ0|HQ!/pW,@ 2(O  +IIJ< 2(  | p 2(+   !u_ !u_ !u_0 7(  ߳0 ( !/dp8h(B 4T||8hBT||0A string that uniquely identifies the resource to be opened and written to as well as read from. The grammar for the resource name is shown below. Optional string segments are shown in square brackets ([]) Interface Syntax VXI VXI[board]::VXI logical address[::INSTR] GPIB-VXI GPIB-VXI[board]::VXI logical address[::INSTR] GPIB GPIB[board]::primary address[::secondary address][::INSTR] Serial ASRL[board][::INSTR] The following table shows the default value for optional string segments. Optional String Segments Default Value board 0 secondary address none The following table shows examples of address strings. Address String Description VXI0::1 A VXI device at logical address 1 in VXI interface VXI0. GPIB-VXI::9 A VXI device at logical address 9 in a GPIB-VXI controlled system. GPIB::5 A GPIB device at primary address 5. ASRL1 A serial device attached to interface ASRL1.0HL4|8PW@ blEAbh,<L4 F W|4 K d tó|< 2 ( ^ |6p 6 0%cq%cq%cqp 2  %br %br %br0  $ bdp8hBTa||`Lflow control sets the type of control used by the transfer mechanism.0parity is 0 no parity (default) 1 odd parity 2 even parity 3 mark parity 4 space parity 0"B"f |p@P"\f`"%0?@,# #@#t#$T$$4 F" fu\0|4  2" y(\4|p 6" 0t%cqt%cqt%cqp 2" %br%br%brL :" y(.0{u0{/|.}-~0 " u$`dp8h"B%%R ||P<data bits is the number of bits in the incoming data.0%@% | @PB%<bq&(TO@$:,&0&d&''x''4 F% <Kq8|4  2% O(^\<|p 6% 0JV%cqJV%cqJV%cqp 2% Vb%brVb%brVb%brL :% O(^.0{u0{/|.}-~0 % K$b`dp8 h%B(,(@R  | |@ +Specifies the baud rate of the serial port.0 ((DV |8 U(9c5)+ ),)`+4 F(Q9H5@|H!(QJc*)W,")**P**+ @" 2)`O O_&IIJ<" 2)` O_D| p# 2)`+  Lcu_Lcu_Lcu_0# 7)` N_߳0# )` Jc*dp8#h)`B+X+lT#|#|8#h(B++T#|#|0#A string that uniquely identifies the resource to be opened and written to as well as read from. The grammar for the resource name is shown below. Optional string segments are shown in square brackets ([]) Interface Syntax VXI VXI[board]::VXI logical address[::INSTR] GPIB-VXI GPIB-VXI[board]::VXI logical address[::INSTR] GPIB GPIB[board]::primary address[::secondary address][::INSTR] Serial ASRL[board][::INSTR] The following table shows the default value for optional string segments. Optional String Segments Default Value board 0 secondary address none The following table shows examples of address strings. Address String Description VXI0::1 A VXI device at logical address 1 in VXI interface VXI0. GPIB-VXI::9 A VXI device at logical address 9 in a GPIB-VXI controlled system. GPIB::5 A GPIB device at primary address 5. ASRL1 A serial device attached to interface ASRL1.0#  +C0# 2T0# T0# 1T#7#  T   ( L  \   (      "\ % #l# BDHP'Basic Serial Write and Read (2 Port).viLVINMerge Errors.viPTH0LVINSimple Error Handler.vi PTH0LVINVISA Configure Serial Port68@ PTH0F BDHPD28FFF#~ 5܉#2_8[pNH,#==l\D#1P(g0,8# X(`0 # 4#3 ]# # 4#3 D^# # xX4#3 _#X # 4#3 `# # H(4#3 |a#( # 4#3 b# # 4#3 Lc# # `4#3 d#` # 4#3 e# # P@4#3 f #04# &K |D$1 Mm$#S0$@xH  $`@4$3+]me$@ $4$3*]me$ $04$3d)]me$ $x4$3(]me$x $4$34'M]U$ $hH4$3&M]U$H $(pDp4$3 %M]U$ $)l 8;4$3 l$M]U$ 4$ &KM|4% ?B|4&/ xݘ& 8  & )l X;4&0 M& 8 & *h ;4&0 Jݘ& & 2 (4&0 \Ix݀| & 4&/ &F& ( & p(p Dp4&0 p G>FB& & p04 HDp4&0 p |>FB& ( & p/8 4&0 p &.* & 4&/ ,x*J,& X (` & *h x;4&0 VBJF& X & &x 4&0 WBJF& & 2H4&0 |XxBJ|F&( & +d;4&0 Y*2.& & 't4&0 LZ*2. & & 34&0 [x*2|. &`4& .J|?B|4' |{?B|4(/d'*GJ,(`0 (004Dp4(00\?BGJCF( (0-@4(00L-7B?J;F( (0.<`4(00,/B7J3F(` (0/84(00U'B/J+F( (02PDp4(00T?*G2C.(0 (0,D4(00S/*723. ( (010 4(00TN'*/2+. (4( U?B||0)L)|D p8d0)@-@ (O__WoH4) B__n?x|0*@.<T`_$o4* B|_?t|0+@,DL$4+ B+?p|0,@&x  d_tlot4, BDU_d?l|0-@'tdtl4- BUd-?h|0.@X% 7G?<4. B (7?d|0/@ 8"\p^nf4/ BpO^?`|00@! ԅ40 Bv?\|01@$8Ӌۛh41 B8ċ?X|02@4(d$tDl442 BU$d?T|03@x\$$D4043 B$?P| 4@d,4d4d44Oۋ4H44 Bۋ?L|@5 6))*85hB5|5| 5@%,54He5@5P A,5h45 BH ?H|46  2H D|L7 :H 0{0{/|.}-~07 3H  87hHB7|7|07@#8(47 B?@||8xX 8!#8$%&x't(p)l*h+d,D-@.! p8048F078x4+nJ+J48?8Xn?2n2?n48?, lL8 8  n 8nf 9n 9  f n48?\!L8!  n   n An A >n48?#l L8#8   u u @u @v Nv N48?$8$ۛ{@{W{W{48>h% 8%uuu0u48'X&8&xFloOlO8 D48(T'08'tl.l  848)P(P8(pBU+B+8 48*L)P8)lU++8 8 48+H*P8*hF8 X 48@+P 8+d..48-$,x8,D3. 3 848. -t8-@;FWo;OWO848/.p08.<3Fo3OO8`|480/l78/8*+F+8 4810hP804BCFC8 (48FL1d7810++.48Fh2DP82C.DD.4833$782||F8( 48>4 7 83}.}||.48>$5784l4|nlJ|J8xp$4l$t$))t$)'X*((',D8166yk>(/87(8748 K68jky<|P97(778L8999:t:;D;;<\<=L 96847\97493686|=ykr|n 968%7 9688l7493686@/~49368;x2krn 968<|<49368=8.9=L 968+d=;<9 68@ 0 p |9@ 68 d8p p D0|h97(9<9>97> 9@ x@9d8L?9>98` 9@ %A9 9Bh9p9C89?x9:C 9@ AP?x9;D9?98<\E@ 9@ Ad9=LD91@@d(kH L(/49 K@ k(8|P:>>?x?BBhBC8FCDDpDE@EF4:3@ >TK(k/r+n4:3@ >"(r8x0u4:3@ ?H!(x8~0{4:3@ ? (~804:3@ A(/+:B :@ 10A4:3@ BT/k5r2n:Bh :@ XB  4:3@ B/52:B :@ BB4:3@ C$5k;r8n:C8 :@ 8Bp4:3@ C;kAr>n :C :@ !CXC4:3@ C;A> :D :@ CD4:3@ D\AkHrDn :Dp :@ D(Dp4:3@ D8rHx@u :D :@ #8D4:3@ E,8xH~@{ :E@ :@ $D84:3@ E8~H@:E :@ E`E4:3@ EAHD:F :@ 2EDp:>:B:F04:3@ F5;8:F :@ FF (@UUAn *>>*>>@?h  йo  йv  й} й йTahomaTahomaTahoma02RSRC LVINLBVWl L 4RSIDTLVSRhBDPW|LIviCPTMDSTMDFDSLIdsVICDversDLDRFPTD0CPMpDVITSXSTRGlICONicl8DTHPTRec3CPSTSTR LIfp0FPHPDLIbdXBDHPlHISTPRT FTABP]bP]t_pbab8] 4PZ8]8]9|]:8t]:X\FĈ\Lx[Md]Q\_h]_\_\`D\`\`\] aAU_ƿZTU#/?^\DEpP/'*ꪯ着*ﯨ*着+ꪯꫫ뫪ꫪꪪ뫪*//'**++)*:,ȌȌ  *CUex`@Uc|U@DQPDfDfPdFffefDffFdf!fDffFdfafDffFdfafDffFdfafDffFdfafDffFdfafDffFd&qfDfgFdfqF\f`љٙٙٙٙٙٙٙٙٙٙٙٙٙٙٙٙٙٙٙYٙٙف<<?g<=ys>|x>ϟ9s<x<x<ø08?ø08?ø08?øy6ϟx???OgG8{~x?xyx?<|?w?~Oy?<y>ø0ss=w<?g<?><󟟏=O|8|y?<|ϟ<?O~O?yy8|y~0xy?<|ϟ<?>???'?|x<?>=yxϟ?=x?x g?y?c`g`g`DD@D?f"" c&""?f"" c&""?f  g f"" g&""f"" g&""f"" g&""f"" g&""?f"" c&"^ y<<<<>3O<<ӟ||y'???3333333333333333333333333333333333333333333333333333333333_X]}}5##Q}}ݝ 0Xm[ƻF8=T    ?* /??(??? ZTU?πED'????? HLD  H H H d H`H @H ĠH@H  H HȐİ  H į H L ொH `HH? ?HH    H  ? ?HĿ HH?HHHHHHH<   H8̀b, ̂.̃H<̀ ̈,b,b..̂̃̃Ȉ ,bo&fjfĵ.b.b.,0̂Ȉ (̈̌b,b...,,0?h,̀Œ̈,΢,,,̂h,̀Œ̈,΢,,,̂̂Ȉ (Ľb,b..,,<h,̀̀b,ffjf,, ,̂Ȉ (̈̌b,b...,,0?h,̀ ̈,b,b..̂̃h,ʀ̃Œ̈,΢,,,̂̃̂Ȉ,0h,ʀ̀Œ̈,΢,,,̂̂Ȉ ,boofôbb.,<̂Ȉ ,bonfn̂bb.,<̂Ȉ (̈̌b,b..),,0h, Ȁ̀b,̂È, Ȁ̀b,̂Èh ̀̈,΃ ,,! ̂ÈȠ # ʠ ʣʀʠ ʡ ʃʠ ʠʠʡ 333̀ ̢̌,b,,,<< ̎̈H ̈ȈH ̈ȈH ̈HȈH ̈HȈH ̈HȈH ̈ȈH ̈ȈH ̈ȈH ̈HȈḦHȈ, ?̀̌ŒȈḦ̌ŒȈḦ̌ȈḦ ̈鏈( ̈̀̌̌̌̌̌̌̀Ȉ̀Č̈(̈Ȟ̌Č̈(̈̌̌̌̈( ̈Ȟ   ̎ ( ̈Ḧ(̌ʌȈḦ(̌ʌȈHĈ( ̌ﰀȈḦ Ḧ̈̀ ̈(̈̈ȞȈ (̈̀b,,΢,,0(̈(̈(̈(̈(̈̌ ̀  𨂏 * ̀ (*   ਠ̀ .興̀΢鏈̀̌Ȍ̌Ȍ̌Œp̌p̌p̌pB ̌̌̌̌  ̌̈̈̈̈̈ ̎ ( ̈Ȟ̌̌̈(̈ ̌̌Č̈(̈Ȟ    ̎  ̈̌̌̌̌̀Ľʀ. ḦȈH ̈ȈḦȈḦ(ȈḦȈḦȈ̀ Έ,̌̈(̈ ̌̌Č̈(̈ ̌   *̀ * ̀Ȉ̌̌̌̌    ,  ̌̌̌̌      , ̈H ̈ȈḦhȈ(Ȍ̌̌ȌȈ(̈ḦȈḦȈḦhȈ̠/ ̈ ̌Ľ̌̌H ̀Ȉ Č̈(ĈH ̌̌Č̈(̈̌̌̌̈̀ .̀ .̀ ̌ ̈̈̈̈,̀(.̌Ȍ̌p̌̌p̌Ȍ̌Œp̌Ƅp̌p LBΈ,̌̈(̈̌̌Č̈(LČ    *̀ /( L  ̎H 鏈Ȉ̌̌̌̌   ,  Ľ̌̌   L ̀ . , ̀ČȈ̈B̻ˈ,̌Č̈ƀ ,΢,̂̌Č̀̌Č̀B(̈ (̈    ̀ *̈̀ . ̀   ̀ * *̀    ̀鏈.̈ḦȈḦ(ȈḦȈH̀BΈ,Bψ,BΈ,BΈ,B̈ȞȈ( ( b,Ꮘ.,,<Έ,Bψ,B . ̀ . ਂ.̀  H  ⨂̀   ̀   ̀   *ਨ    ̀ (*    /   ̀ ਂ ਂ03HȈB̈̈Č̈̈̌̈HȈ̈̌Č̌ČHČ̌ČȈ̌Č̌ČȞ̌ L̀ ̌ ̀ ̀ ̀ ̀HhhhXX@ȏ?RSRC LVINLBVW D@ <Ul–DU`V ُ B~X1J tJL5 LVIN!Advanced Serial Write and Read.viLVINSimple Error Handler.vi   @!error?@code out@error code (no error:0)@0error source (" ")@0 source out6@P @!status @code@0source error out@0message@type of dialog (OK msg:1)@@P @!status @code@0sourceerror in (no error)PTH06Utility error.llbSimple Error Handler.viLVINVISA Configure Serial Port   @pInstrVISA resource name@timeout (10sec)(@"termination char (0xA = '\n' = LF) @!Enable Termination Char (T)*@pInstrduplicate VISA resource name@baud rate (9600)@ data bits (8)0@NoneOddEvenMarkSpaceparity (0:none)@@P @!status @code@0sourceerror in (no error)@stop bits (10: 1 bit)@flow control (0:none)6@P @!status @code@0source error outPTH07Instr _visa.llbVISA Configure Serial Porti     @pInstrVISA resource name@ baud rate@ bytes to read@ data bits @parity@ stop bits@ XON Character@0string to write@XOFF Character@ timeout (ms) @!write@0 read string(@!"End read on termination character?(@"termination char (0xA = '\n' = LF)@Input buffer size @!readP c8 P+ c RP"@P@flg@oRt@eofudf P!stopx!dfdP!txdP!oldP!ext c ZP"@P@flg@oRt@eofudfP flow controlxdfdPtxdPoldPext P" P@@rP"@P@flg@oRt@eofudf*P!%End write with termination character?x!dfdP!txdP!oldP!ext c^P"@P@flg@oRt@eofudfPInput buffer sizepdfdPtxdPoldPext P\P"@P@flg@oRt@eofudfPXOFF CharacterpdfdPtxdPoldPext P c ZP"@P@flg@oRt@eofudfP XON CharacterpdfdPtxdPoldPext P c pP"@P@flg@oRt@eofudf(P"termination char (0xA = '\n' = LF)pdfdPtxdPoldPext P c pP"@P@flg@oRt@eofudf(P!"End read on termination character?p!dfdP!txdP!oldP!ext cZP"@P@flg@oRt@eofudfP timeout (ms)pdfdPtxdPoldPext P cTP"@P@flg@oRt@eofudf PparityxdfdPtxdPoldPext P" P@@ cVP"@P@flg@oRt@eofudfP data bitspdfdPtxdPoldPext P cVP"@P@flg@oRt@eofudfP stop bitspdfdPtxdPoldPext cVP"@P@flg@oRt@eofudfP baud ratepdfdPtxdPoldPext PRP"@P@flg@oRt@eofudf P!writep!dfdP!txdP!oldP!ext cRP"@P@flg@oRt@eofudf P!readp!dfdP!txdP!oldP!ext cZP"@P@flg@oRt@eofudfP bytes to readpdfdPtxdPoldPext P cpP"@P@flg@oRt@eofudfP0string to write p0dfd P0txd P0old P0extlP"@P@flg@oRt@eofudfP0 read string p0dfd P0txd P0old P0extP"@P@flg@oRt@eofudf PpInstrVISA resource nameppInstrdfdPpInstrtxdPpInstroldPpInstrext P" P@@Z P$@P@0P0`*Serial Settings:Serial End Mode for Writes" P@@Z P$@P@0PZ P$@P@0PZ P$@P@0PZ P$@P@0P`millisecond multiple`I/O Receive Buffer mask c c c0 c@0string to write@byte count (0) @!status6@P @!status @code@0source error out c!@@P @!status @code@0sourceerror in (no error)0@NoneOddEvenMarkSpaceparity (0:none) @!error? c@0 read buffer@ return count c@code out c,P @!status @code@0source! c@millisecond multiple@type of dialog (OK msg:1) c c,P @!status @code@0source! c@ return count c@error code (no error:0)@ timeout (ms),(@!"End read on termination character?,(@"termination char (0xA = '\n' = LF)@ XON Character c @ bytes to read c@0message$ @pInstrVISA resource name @!read @parity @!write@ data bits@ stop bits@ baud rate6@P @!status @code@0source error out c@0 source out@ flow control.*@!%End write with termination character? @!stop@0error source (" ")@Input buffer size@XOFF Character cl c c cx c c  c< c< PvPvPvPvPvPvPvPvPvPvPvPvPvPvPvPvPvPvPvP c cP G Jd 0d h ^!$   ' %*IDN? COM1  DPX dvpx p4lx|, 8<      p|~D2PX0<> (&&    @@0@@b@@r@@@|` @$@@@@0 @0  @0@0 @0P P @0   @0 @@0 @r@T\  @0@R@0P P @0V D @0P @0P @0 r @ P @0P @0P @0P @0P @0` @0@P @0P @* @0P @0VIDS!Advanced Serial Write and Read.viVIDSVISA Configure Serial PortPTH0VIDSSimple Error Handler.viPTH0*DT'i386'B%codeT]0*EwB%E\EPPUEd$==hÐ)Ӏ}ELXt$QRT:'d$ZY=C4{8tPRZXC$C{ tPRZXtPRZX쉅tPRZXC<CDCTĉ܉Cd䉅oƅDƅlƅƅƅƅƅƅlƅ,ƅƅƅƅƅƅpƅD48tQRU茿]d$ZYɍ HHH HHHƅ thhUEPtvDž Dž u60QRVP $hhhPD$Xed$ZY  EhElI%E\QRhPEP$P $ SO?d$ZY=u u@Ð\ x)QRhPEP$P $ O?d$ZYÐ}vDž u60QRVPh?hPD$Xed$ZY=uoQRVPh?hPD$Xed$ZY=u5QRVPh?hPD$Xed$ZY xL6J%E\QRhPEP$P $ M?d$ZY= uÐ}v  =u:>u/=t(=xQRURhPQV=Rd$ZYƅ@ fx.Ehxƅ fxƅ$ >t|`u60QRVRP$hPD$Xed$ZY>u.=t'=xQRUhPQVRd$ZYƅ$ fx1ƅ( >t>Dž Dž u60QRVP $hhhPD$Xed$ZY  EhElL%E\QRhPEP$P $ K?d$ZY=u u@Ð x)QRhPEP$P $ K?d$ZYÐ}vDž u60QRVPh?hPD$Xed$ZY=u5QRVPh?hPD$XFed$ZY xLpM%E\QRhPEP$P $ J?d$ZY= uÐ}v =u:>u/=t(=xQRURhPQVRd$ZYƅ( fxƅ, ɍH HHH HƅD thhUEP ÐƅL x7F)tDž R%pdQRhPP $-ed$ZY=k uGÐ ÐÐQRe/ZYQRhPd$P $ԣed$ZYÐDž u60QRVP $hhPD$Xed$ZY=um tj ;t 9t Dž S%pdQRPid/d$ZYÐZDž K T%pQRhPd$P $ɢed$ZY u Ð u +>u7 t. xQRUh QVRd$ZYƅl fxZ$|x uP $P$d$ =Jƅp ƅp fx^uP $P$d$ =ƅd fxR |xo uP$P $Jd$ =ƅL fx: ƅP it#QRP$h'd$ZYDž W%pdQRhPP, $ed$ZY=q, uGÐ$ÐÐQRa/ZYQRhPd$P, $謟ed$ZYÐDž u60QRVP $hhPD$Xed$ZY=um tj ;t 9t Dž W%pdQRP;`/d$ZYÐTDž E LX%pQRhPd$P, $蛞ed$ZY, u Ð u >u7 t. xQRUh QVRd$ZYƅ ƅl}$u ƅd hhUEP8d$ =GfxrV |xuP`$P$d$ =Jƅ ƅ fxv4 uP`$P$9d$ =ƅ| fxj+ |x7uP$P`$d$ =ƅP fx> ƅT ƅT PXfxB ƅX u.=t'=xQRUhPQV8Rd$ZYƅ0 fx ƅ4 ts$ts$,ts4<ts<DtsDLtsL$TtsT\ts\dET\%E\EP.UR@␐}vt}vt1ƅ4 fx" 48tQRU]d$ZY}t}u@}urvQRPE@$BDd$ZY==t p h搐ÐEw \%E\EPPUEd$=t=t=t=tEw Ew‰ppVLFX@'PUEd$=uÐPx]%P+]%PB]%P%Y]%idxs]%Od0)]%5dh']%dh']%d!]%d0E]%d^%d$C)^%d$CC^%dX=]^%e~^%Ðx&&^%Ðx&^%Ðx&^%Ðx&/^%Ðx&qp^%p @'PUEd$=uÐPBx_%PM_%^P+ _%$P\ _%P! _%P&5`%vPo`%c%dBc%dIEd%dHId%bd@d%(d;+d%dh-d%d.1e%zP ke%@P.e%Pe%Pf%_^ZY[]Ð=t,PEP$PPf%$$@ $Ðd$F8=t,PEP$PPf%$$@ $Ðd$.Ul$SQRVWT$ QRPE@$R諏Dd$ZY=E_^ZY[]ÐDž|t@ |DžDžDžDžDžDžDžDžDžDž DžDžDžPTABpxpjDž t@ Dž( Dž0 Dž@DžHDžP DžX Dž` DžhlDžpDžDžDžPTABppQRu&Td$ZY(Ul$SQRVW}#uQRUI$d$ZY_^ZY[]ÐUl$SQRVWQRUn$d$ZY_^ZY[]ÐUl$SQRVWt$ 0SHHHpH=!HK5a$)&S&&B''B%M#:R6# "\~ D ""N" "!f!!,!xt"p#b'j'r'z''%Ke y :'U R2Lf0M#&$CODET]D0*%6.1Oldest compatible LabVIEW.Q@WP_<^pPPP@0string to write@0 read string@ bytes to read@ baud rate @pInstrVISA resource name @!write @!read@ data bits @parity@ stop bits@ timeout (ms)(@!"End read on termination character?(@"termination char (0xA = '\n' = LF)@ XON Character@XOFF Character@Input buffer size*@!%End write with termination character?@ flow control @!stop:    [example finder@0xml text instrument control,serial Hardware Input and Output\Serial NI.LV.ExampleFinder@0xml text Advanced Serial Write and Read.vi The Advanced Serial Read and Write example performs a Serial Port Read, a Serial Port Write, or a combination of these actions while setting some advanced serial features like buffer size, termination characters, and XON/XOFF flow control. The user selects the actions (read or write) on the front panel. If both are selected, the VI will write the data first, read the data and then close the VISA session that is opened to the port. communication instrument serial transmitters receivers handshaking control 232 485 flow loopback rs-232 rs-485 rs232 rs485 wrapback visa 3113 4290 LabVIEW LabVIEW PCI-232 PXI-8420 PXI-8422 PCMCIA-232 AT-232 USB-232 ENET-232 PCI-485 PXI-8421 PXI-8423 PCMCIA-485 AT-485 USB-485 ENET-485 NI.LV.ALL.VILastSavedTarget0DfltNI.LV.ALL.goodSyntaxTargets&&@0DfltThe Advanced Serial Read and Write example performs a Serial Port Read, a Serial Port Write, or a combination of these actions while setting some advanced serial features like buffer size, termination characters, and XON/XOFF flow control. The user selects the actions (read or write) on the front panel. If both are selected, the VI will write the data first, read the data and then close the VISA session that is opened to the port. The parameters set for the serial port must match the parameters of the connected instrument or device. In this example, the bytes to read parameter specifies the number of bytes that the serial port reads. If there were more bytes at the port than the number specified in bytes to read, those bytes would not be read. Also, if you specify to read more bytes than the number of bytes actually read, you might receive a timeout error message. INSTRUCTIONS: 1) Select the serial resource and configuration parameters (baud rate, data bits, parity, stop bits, flow control). 2) Termination character can be enabled and set. Also, set the required input buffer size prior to running the example. 3) Select the operations to be performed. 4) Connect the serial port to your device. If no device is available, perform a loopback test by doing one of the following. Short pins 2 and 3 on a RS-232 cable or short pin 4 to pin 8 and pin 5 to pin 9 on a RS-485/422 cable. 5) Run the VI to see the data read. (The "read string" will match the "string to write" if a loopback test was performed.) This example exposes several advanced features that you may need for your application. Not all applications need all the features shown in this example. The input buffer size is likely an important setting that you want to control in your application. This example expands upon the flow control option for XON and XOFF, allowing the user to choose those control characters. The timeout parameter has been brought to the front panel so a user can specify the time period the VISA Read will wait for the number of bytes to read before timing out. Also, the user has several controls for the termination character, which is discussed later. Note that you can press the write and read buttons and change the bytes to read parameters on the fly, while the example is running. However, you must stop the example to change the other configuration parameters after the example has started running, and then run again. Set the I/O buffer size slightly higher the amount of data you expect to receive. This is very important for applications that don't use flow control, as you may lose characters if the receive buffer overflows. Setting the timeout period ensures that the operation returns with a timeout error if the operation cannot be performed in the specified time period. Some devices require a termination character in order to identify the end of command strings. Some devices send a termination character to signify the end of data to be read. This example shows how you can end the Read operation once a termination character is detected in the buffer and/or append a termination character at the end of the Write data. To enable the Read to end on a termination character, use the VISA Configure Serial Port or use the VISA Properties Serial End Mode for Reads, Termination Character Enable, and Termination Character. To end the Write with a termination character, use the VISA Properties Serial End Mode for Writes, the Send End Enable, and Termination Character. In this example, the same termination character is used for both the Read and the Write. You can specify two different characters for your application, if desired. Your application may require specific characters for the XON/XOFF Flow Control. You can specify these characters with the VISA Properties Flow Control XOFF Character and Flow Control XON Character. Note that if the standard XON and XOFF characters are used, then decimal 17 and 19 are unavailable for data values. Remember that using flow control and setting an adequate buffer size allow you to prevent buffer overflows. @dY=ZV!݀@CD8AADTHPD!88~ < @0 read string$@0string to write 7F6@P @!status @code@0sourceerror IO:*@pInstrduplicate VISA resource name, @pInstrVISA resource name"@ bytes to read4(@"termination char (0xA = '\n' = LF)F6@P @!status @code@0source error outL@@P @!status @code@0sourceerror in (no error)!@! Send End En8,P @!status @code@0source @!read @!stop*@flow control (0:none) @parity*@stop bits (10: 1 bit)<0@NoneOddEvenMarkSpaceparity (0:none)"@ data bits (8) @byte count (0) @0 read buffer"@ return count.@type of dialog (OK msg:1)@ data bits @!write@TermChar*@millisecond multiple@ baud rate(@millisecond timer value @!status*@0write buffer ("")@0message @0 source out&@baud rate (9600)(@0error source (" ")(@error code (no error:0)@code out @!error?:*   @!error?@code out@error code (no error:0)@0error source (" ")@0 source out6@P @!status @code@0source error out@0message@type of dialog (OK msg:1)@@P @!status @code@0sourceerror in (no error), @!Enable Termination Char (T) @timeout (10sec)   @pInstrVISA resource name@timeout (10sec)(@"termination char (0xA = '\n' = LF) @!Enable Termination Char (T)*@pInstrduplicate VISA resource name@baud rate (9600)@ data bits (8)0@NoneOddEvenMarkSpaceparity (0:none)@@P @!status @code@0sourceerror in (no error)@stop bits (10: 1 bit)@flow control (0:none)6@P @!status @code@0source error out:*@!%End write with termination character?"@ flow control4(@!"End read on termination character?@ stop bits"@ timeout (ms)@XON Char@ XOFF Char @XOFF Character"@ XON Character&@Input buffer size@ mask (16)@size (0)(@I/O Receive Buffer mask"@ ASRL End Out<0@*Serial Settings:Serial End Mode for Writes\$<8|888,8D8\l8|\\|0|Pp8<8,   4Px8xDD48p|\8(P\x80   T T t t  |8  < <  \ \ |8 |8 8 PD5K6KstopH$"%H2c%I2cXD66 flow controlH^ESFSH^ = = qD$c-d.%End write with termination character?DrUrUHFor additional information select File >> VI Properties >> Documentation]D$pqInput buffer sizeH2rt [DMM XOFF CharacterH0=< ZDII XON CharacterH,<; nD$pq""termination char (0xA = '\n' = LF)H[}ש~ש nD$Tg|Th{"End read on termination character?XDst timeout (ms)H-wy RD.;.;parityHPbCEPSCFPSH6C P=C P= UD'' data bitsH4/!< !< UD.. baud rateHl1; ; QDXqYqwritePDt#:t$:readYDrr bytes to readH|bLJ [D##string to writeH4-T WD read stringH4@^D]]VISA resource nameH/ W W Dol,,CSelect the serial resource and the operations to be performed. If all are selected, the VI will write the data first, read data and then close the VISA session that is opened to the port. This VI will wait until the specified number of bytes is received at the port until the timeout period is met. Only the specified number of bytes will be read unless the read ends on a termination character. The termination character can be enabled and set. Also, set the required input buffer size prior to running the example. Note: The example loops until the STOP button is pressed.Hap }#@#*Serial Settings:Serial End Mode for WritesHD^7D7DHD^&3&3RE True aDN[N[ BSet Input Buffer SizedDBAVISA Set I/O Buffer Size`DBWrite bytes to port.HD"VEњҚ No Error REYfYf True aD3Read bytes from port.iD . -BRead the bytes in the buffer.HDb:o;oHD#>>yDVDX5B---Error occurred reading Bytes at Serial PortVE == No Error REYf2Yf2 True HDQ+S8l+T8lHDV+8+8`DHUHUmillisecond multipleHD^XeXeHD^$1$1DNuONuNB::TSet the ASRL End out property to termination character to append term char on write.bBClose session to port.HD#stHDVsՇt HDtQst HD$stHDpVs"t"HDXdsqdtqHDQstHD0a4sN4tN#HD$a  cD I/O Receive Buffer maskHDVHDaklHD^8sE8tEHDx#;<HD-;ó |d-p 6 0cqcqcqp 2 brbrbr0  Bdp8hBTa||`Lflow control sets the type of control used by the transfer mechanism.0h0|r4ObI i,0d , 4 Gb.| 2V4?jjKK4?KKjj4?ddjj4?KKjj4?ddjj /mDik/mDik/mDik/mDik/mDik 7Y/mID/mID/mI/mID/mI\ 7X*hIhl*hIhl8 hBR This enables the serial port to end the write operation with a termination character so the connected device can detect the end of the operation.4 qV|0  ́ D2 |pD@ P b H~Ad,  L $ 4 F  o|4  2 qó |p 2  0bncqbncqbncqp 2  bnbrbnbrbnbrL :  qw0{u0{/|.}-~0  mdp8 h BR H 2Sets the number of bytes for the input buffer size0 zp |s@ PN<}B, @t4 F N|4  2 >ó |p 6 0cqcqcqp 2 brbrbrL 2  /|u0{/|.}-~0  Bdp8hBR XOFF is the software flow control character that signifies transmission should be temporarily suspended when the receive buffer is full.0| |s@PضJ\{Bt,`L4 F J|4  2 =ó |p 2 0cqcqcqp 2 brbrbrL 2  /|u0{/|.}-~0  Adp8hBR pYXON is the software flow control character that signifies that transmission can continue.0$p8|o@PgxqB, |8h4 F8 o|4  28 |تó |p 28 0gscqgscqgscqp 28 gsbrgsbrgsbrL 28 v|/|u0{/|.}-~0 8 rܮdp8h8BR ||termination char calls for termination of the read operation. The read operation terminates when the termination char is read from the serial device.0l|o|4OSfm,$X |4 GSf}| 2VjjddjjddjjKKjjddjj nikniknikniknik 7YnnDnnDn\ 7Xzihlzihl8hBR xaThis enables the serial port to end the read operation when it detects the termination character.0\sp|o@P,grA,D$p4 Fp r|4  2p vó |p 6p 0gscqgscqgscqp 2p gsbrgsbrgsbrL :p v|0{u0{/|.}-~0 p rdp8hpBR XBtimeout sets the timeout value for the write and read operations. 0`t, |nPPW0-UB"5@B`Hr, $ X !!t!4 Ft -<|4 Jt BDQTó|< 2t BQ>ó |`bp 2t 0=Icq=Icq=Icqp 2t IUbrIUbrIUbr0 t >UBdp8htB!!Ta|||eparity is 0 no parity (default) 1 odd parity 2 even parity 3 mark parity 4 space parity 0"4"l|m@P"&A#%T1@,#0#d#$$x$$4 F" (}4  2" "=ó |p 6" 0cqcqcqp 2" &br&br&brL :" " 0{u0{/|.}-~0 " &Adp8h"B%,%@R ||P<data bits is the number of bits in the incoming data.0%oD|n8hDBTa0&PC&dp|m$@PB& @&(L@,&''8'((d(4 F&d /4  2&d <ó p 4&d 0cqcqcqp 4&d brbrbrL :&d  0{u0{/|.}-~0 &d @dp8h&dBR X+Specifies the baud rate of the serial port.Serial baud rate.0)T2)h|Y4O)$F),3,))*+,+, 4 G)hWrH| 2)hVixjjddixjjixddjjixKKjjixddjj )hK}ikK}ikK}ikK}ikK}ik 7)hYKKDKKDK\ 7)hXFhlFhl8h)hB,X,lR ||`If this is selected, the data in the String to Write control will be written to the serial port.Write data to serial port?0-D-X4|Z4O-sM-0p=,--.//04 G-Xs";  2-XV4Cjjdd4Cjj4Cddjj4CKKjj4Cddjj -XHikHikHikHikHik 7-XYMMDMMDM\ 7-XX}Mhl}Mhl8h-XB0H0\R ||If this is selected, the VI will try to read at least the number of bytes specified in the Bytes To Read control from the serial port.Read data from serial port?01\1p|IX@P1,q13M@$,122D23$3p34 F1p q4  21p ó @|p! 41p 0cqcqcqp! 41p brbrbrL! :1p 0{ 0{/|.}-~0! 1p dp 8!h1pBR !xIf a Serial Port Read operation is performed, the Bytes to Read control dictates the bytes to read from the serial port.Bytes to read from serial port.0!44D !|,x4!Q4Y56B,!545h554! F4 $4" 24 Uó 0# 4 Ydp8#h4BT#The String To Write control contains the string written to the selected serial port if the Write control is selected. The string is normally an instrument-specific command for the device connected to the serial port.String to write to serial port.0#7H7ddv#|H4#Q7E78,#778,8\4# F7d 4$ 27d A0% 7d Edp8%h7dBT %The String Read indicator displays the string returned from the selected serial port if the Read control is selected. The string is usually returned from the instrument or device connected to the serial port.String read from serial port.0%9K9%|m8%U9m:<%:8:l|>?X ,===>><>\ =@@=Xi?= =@@=Xe@" =@@=Xf@l t =@@=X`@" =@@=XaAD t,=@@l@AD=>B,==X>?A==?0=>?H,=?t?@L@A$ =B???t0=.=X?;GA=?tT$= =B?A@"0=-=X@0=?TD= =B?BD@l t0=-=X@կ޸ٳ=@LTd> =B?A@"0=-=XA=@T>< =B?BDAD t0=-=XAt"=A$T>\=ABD4=>B(APBBx7=H=BDٳ=@LA$,==XCST=C$X=,BC|D(60D\DISp< X,=CCCD =@@C$UI= =@@C$WK C =@@C$V JH> =@@C$TJ>4= JC$?3|,>K JHJ>DP,>C$DH|Kl,>IXDHE04> D!/?B|4?/DEd8@?EF FtFGDGH ?E0NEC4?0E0E/084?E ?E0F,F 4?0E0F`.084?F ?E0MFFt4?0E0F-084?Ft ?E0OFD4?0E0G0,084?F ?E0KGdC4?0E0G+ ?GD ?E0LGG4?0E0H*  ?G ?E0L0H4D4?0E0Hh)  ?H?HE00?DH,?HIXIJ(JK0?@HM7Ft9 YII$4? BH 9p?|0@@HL1,IX I4@ BIX??| ABHKI=0A.C$J 6AIQC ABHOJH>0A-C$JxAJ(QC ABHL0J>0A-C$JAJQD ABHNK K0A-C$KP@AKRC,AKL0LMNO4ADLKPCHAKAIGD4ADLLd7DHAL0AJH4ADMLBAL  AIXG4ADNM0FAMI4IAFtH4ADONPEAN4AEK4ADPO7GAO4AFJ(,AC$PQ4R$AQ4A PUE?B|BQH0BPQx,BQQQR BBQHR@I= BBQHRJH> BBQHRJ> BBQHR@K RBR@R4BPRRtPHHBR@BQR4BPSTS 7IHBRBQQ| CSC$0CBS,CT$TDTdTT CBS?T$ CBSU@" CBST@l t CBSV AD t CBSW@",CTUV W4CBUlU$7?HCTٳCTdD4CBVUP>HCUCTDC4CBWVT7ACV CCT4CBWWPP@CWCCTA,F[H[|[[\,4F JZ GV?|4G 2Z Wf|LH :Z Xd0{0{/|.}-~0H 3Z Vg8HhZB H"Xb\4H"\7@;H\d T H"Xc\m4H"](7@;H\ t0H@X^ ]D1A9]t4H B]D#2?| I"Xa]m4I"]MVQI] I"X`^8"4I"^l`MVQI^ LI ^_`abcdefghi4I!__!(I^99"I]D<4I!``!.I_ 7I< YP4I!aaP+I`QI><:^4I!ba7,IaQI>\]4I!cbP&Ib;I\d"4I!dc7'Ic;I\"p4I!ed!#IdAbAIY"4I!feP*IeWI"P=4I!gf7)IfٳWI"0>4I!hg!-IgI;T<4I!ih%Ih^^IZ|:(4I!ji!$IiAAIZ=I4I MvP?B|4J ?B|4K/kTKkpkl@ Kk pk"4K0k k Kkp Kk tk"4K0k l, Kk Kk ul`m4K0k l  Kl@0KlLKm$mmnPnoo|opDprsss0K@lL& m$smT4K Bm$r?|0L@ll9mrm4L Bmr?|0M@l{p"mrn4M Bmr?|0N@l0nPrn4N BnPr?|0O@l%n#r3+n4O Bnr#?|0P@l,orrzoH4P Bocrr?|0Q@lo|r/'o4Q Bo|r?|0R@loOr_Wp4R Bo3rO?|0S@l pD pt4S BpD ?$ T@lpp,Tlpq` Tp@TPpqHA,Tqtqqr(rX4T Bq ?|4U  2q $|LV :q 0{0{/|.}-~0V 3q 8VhqBrrV|V|0V@lrjzr4V Brj ? |0W@l<XsFrVNsL4W Bs7rF?0X@l}Ls :0Z(Js4X Bs: ?0Y@l~Hs: ZJt4Y Bs:?d||Ztuvwxyz{p|P}L~HD@<ЇplL4ZutPZtQZ k4Zvu7ZuQZ l@4Zwv7Zv;Z t4Zw7Zw004Zyxx7ZxGZ L,4ZztyPZyGZ l4ZpzPZz04Z{Z{p4Z}0|PZ|P;Z T4Z~,} Z}L(J(ZsX4Z(~|Z~HJZs4Z$xPZDZ$$4Z t7Z@Z\4ZTp Z<N$N$4ZPZW$W$W4Z܃0! ZzZr 4Z؄, ZZpD\4Zԅ( ZZp4Z$!Z'*'*4ZtZzz4Z8Z++4ZZ4ZPPZpZkp04ZD7Zl4Z䋀ZL,ZDp, x;DZ14fx8[ZHZ4Z KX`|P[HЎl( d|l [Xl|m[4[3Xe [XЍo [Xo4[3Xd!4[3XXb'-*[l [X$o|4[3Xhc!'$ [Xw\m4[3XX[( [XLm$[4[3Xa-40[ [X`4[3X&[ [X{pm4[3X%-404[3XHT-40 [X,4[3X$ [ [X4[3XP#-40 [d [Xd[[ [XБ4[3X! [ [Xn4[3Xh!'$ [| [X<4s4[3X`'-*4[3X! [X4[3XX-40[l [Xz$<[lX hk  |[X ss s 4 hrppDjoo|onnPmjk mm$[mH[[o[o [o|l[ [m$([m [nP[n[s|[l , (߀IUUAn Q8>Q8>:>:>I?h  йo  йv  й} й йTahomaTahomaTahoma02RSRC LVINLBVW  0 4 RSID`LVSRtBDPWLIviCPTMDSTMDFDSLIdsVICDversDLDR(FPTDtV?<\!@#A[BD[CdXD 2ExVF3G[Ht[I3J bKL$LTMd[NWObPH87QbR\.S, Tx6UV,&Wx/X`Y\$Z\\a[|%^$,]L 4*p]5P7'<%D7[/`pP2l`]xhW0R$`l/!Advanced Serial Write and Read.viThe Advanced Serial Read and Write example performs a Serial Port Read, a Serial Port Write, or a combination of these actions while setting some advanced serial features like buffer size, termination characters, and XON/XOFF flow control. The user selects the actions (read or write) on the front panel. If both are selected, the VI will write the data first, read the data and then close the VISA session that is opened to the port. The parameters set for the serial port must match the parameters of the connected instrument or device. In this example, the bytes to read parameter specifies the number of bytes that the serial port reads. If there were more bytes at the port than the number specified in bytes to read, those bytes would not be read. Also, if you specify to read more bytes than the number of bytes actually read, you might receive a timeout error message. INSTRUCTIONS: 1) Select the serial resource and configuration parameters (baud rate, data bits, parity, stop bits, flow control). 2) Termination character can be enabled and set. Also, set the required input buffer size prior to running the example. 3) Select the operations to be performed. 4) Connect the serial port to your device. If no device is available, perform a loopback test by doing one of the following. Short pins 2 and 3 on a RS-232 cable or short pin 4 to pin 8 and pin 5 to pin 9 on a RS-485/422 cable. 5) Run the VI to see the data read. (The "read string" will match the "string to write" if a loopback test was performed.) This example exposes several advanced features that you may need for your application. Not all applications need all the features shown in this example. The input buffer size is likely an important setting that you want to control in your application. This example expands upon the flow control option for XON and XOFF, allowing the user to choose those control characters. The timeout parameter has been brought to the front panel so a user can specify the time period the VISA Read will wait for the number of bytes to read before timing out. Also, the user has several controls for the termination character, which is discussed later. Note that you can press the write and read buttons and change the bytes to read parameters on the fly, while the example is running. However, you must stop the example to change the other configuration parameters after the example has started running, and then run again. Set the I/O buffer size slightly higher the amount of data you expect to receive. This is very important for applications that don't use flow control, as you may lose characters if the receive buffer overflows. Setting the timeout period ensures that the operation returns with a timeout error if the operation cannot be performed in the specified time period. Some devices require a termination character in order to identify the end of command strings. Some devices send a termination character to signify the end of data to be read. This example shows how you can end the Read operation once a termination character is detected in the buffer and/or append a termination character at the end of the Write data. To enable the Read to end on a termination character, use the VISA Configure Serial Port or use the VISA Properties Serial End Mode for Reads, Termination Character Enable, and Termination Character. To end the Write with a termination character, use the VISA Properties Serial End Mode for Writes, the Send End Enable, and Termination Character. In this example, the same termination character is used for both the Read and the Write. You can specify two different characters for your application, if desired. Your application may require specific characters for the XON/XOFF Flow Control. You can specify these characters with the VISA Properties Flow Control XOFF Character and Flow Control XON Character. Note that if the standard XON and XOFF characters are used, then decimal 17 and 19 are unavailable for data values. Remember that using flow control and setting an adequate buffer size allow you to prevent buffer overflows.      @pInstrVISA resource name@ baud rate@ bytes to read@ data bits @parity@ stop bits@ XON Character@0string to write@XOFF Character@ timeout (ms) @!write@0 read string(@!"End read on termination character?(@"termination char (0xA = '\n' = LF)@Input buffer size @!read@dY=ZV!݀@CD8AAThis example illustrates how to detect a break in the data line during serial communication. The VISA Enable Event.vi is used to enable an event for break. The VISA Wait on Event.vi is used to with a timeout of 5000 milliseconds to wait for a break. This vi can be run alongside the "Set Break.vi" on a separate serial port to introduce the breaks. INSTRUCTIONS: 1) Select the serial resource and configuration parameters (baud rate, data bits, parity, stop bits). 2) Connect the serial port to your device. If no device is available, perform a loopback test by doing one of the following. Short pins 2 and 3 on a RS-232 cable or short pin 4 to pin 8 and pin 5 to pin 9 on a RS-485/422 cable. 4) Run the vi. The serial port can set a serial break on the transmission lines. The serial port can detect that a serial break has occurred through the use of VISA Events. These events are notifications that allow a user to take action once the events have been detected. Note that all platforms allow the serial port to assert a break and receive notification of I/O Completion. However, the other serial events are valid only on Windows and platforms on which National Instruments supports ENET serial products. This example shows how the user can detect that the break character has come across the transmission lines. The serial break event is specified by x3FFF2023, as discussed later. First, the event is enabled with VISA Enable Event. Then, the VISA Wait on Event waits for the event type specified, in this case the x3FFF2023 or serial break event. The VISA Wait on Event will wait for the specified timeout period. The expected timeout VISA error is -1073807339. For the example, this timeout is ignored, so that the user has adequate time to see a break event detected. Also, for this example, the number of breaks detected is displayed. The VISA Discard Event ensures that all event types and mechanisms are cleared. To see other VISA events, view the Help for VISA Enable Event.6nWTTQ=/?+ꪯꫢﯨꫪ*''**ȌȌ  Ό̸ ,Ό̈  Ό̈  Ό  Έ;;;;33;33333+3333323333333;;233222<! =>?<yy8ُ矇y<?~><???~<?<y>8q=?!xY|??{X{~sq?|y?q?g?{?=_y>c?g}ǟ}yxϳ< ??f"" "3DDD3LD3DD@1LDD3DD@1LDD3DD@1 @3@@O y<<3O<<<~>><>?=C{q1133333333333333333333333333333323333333333??،fQ#>@8@8df8B8B8BXXT$3 XX!%E|x@@ ?(? ^QQE/?/???ǀED' Ľ̌̀ĠDH H @H H @H ?H ` LH  H HࠊH L Hࠊ?ொHHHHH??< ( 8̀Œ̈,΢,,,̂̃̃Ȉ ,̂o&fkfkb$NÑ̃Ȉ (̈̌b,b...,,<H<̀̈,΃ ,,!̂̃̃H<̃ŒḦ,΢,,,̂̃̃Ȉ (̈̌b,̢,,,,<̃Ȉ8 (Ľb,̢,,,,<̃Ȉ( ,΢,,<̃Ȉ ,̂o&fjfjb$NÑ` 332<Ȭ  ̌̌ČČČ̌Č̌Č@̌Č퀈̌퀈̌ČČČČ̌BȠ ̀̌̌̌̌ ̀ ̈ Ȉ ̈L Ȉ ̈ Ȉ̈ Ȉ̈ Ȉ̈( Ȉ̈ Ȉ̈ Ȉ̈ Ȉ( ̈̌̌̌̌ ̀Ȉ̌̈(̈Ȟ̌̌̈ / ̎ȈȌ̌ȌLŒ` ̌̌̌ ̀ ̀΢(̈ḦȈḦȈḦȈ̠ ḦȈḦȈḦ( ȈH ̈H ȈḦ ȈḦ ȈȌ̌Ȍ̌ƌ` Ḧ ȈḦ ȈḦh ȈH ̈H ȈḦ ȈḦ ȈȌȌ̌ƌ` ̌̌̌Ȍ̌Ȍ ̈ȞʌȈψ,B̈ȞȈh ( b,Ꮘ.,,0̈ȞȈh ( b,Ꮘ⪏.,,0(̈H (̈H (̈ (̈ ̈ȞȈh ( b,Ꮘ⻏.,,<ψ,̌ȌȀ ̌ČȈ̀B̈ȞȈ ̌r,0<(̈̀b,,΢,,0̌   ̀ (** @ ̌ (/ *̌   *̀    ̀ * ̈ ̀    ̀ *  ̀  ̈ ̀Ȉ BΈ,Bψ,̌Č̈€ ,΢,̂̃̌Č̈Ȁ ̌b,,<ψ,̌Č̈ˀ  ,̢.b,̂̃̌Č̈€ ,΢,̂̃  *̀      *     *( ⨂333333333Ȉ,̌̌ȈȞȈ̈HĽČ̌ȈȈ ̈HȈ̈HČ ̈HȈ(̈HȈ ̈Ȉ ̈Ȉ̈HLȈ̈HČ ̈Ȉ̈ ̀Ȉ̀ ̀ ̀ ̀ ̀hhhXXό  @?RSRC LVINLBVWT 4D@ < Ld`Gx}& ُ B~-LAՉoqi`LVINDetect Break Event.viLVINGeneral Error Handler.vi   @[error code] (0)$@@[user-defined codes].@@0ser-defined descriptions] @!error?@0[error source] (" ")@code out@0 source out@type of dialog (OK msg:1)@0message@@P @!status @code@0sourceerror in (no error) @xception action] (none:0)@[exception code]@0[exception source]6@P @!status @code@0source error outPTH07Utility error.llbGeneral Error Handler.viLVCCSelect Event Type.ctlHZpSelect Event Type.ctl@ Event TypePTH02Instr _visa.llbSelect Event Type.ctlLVINVISA Configure Serial Port   @pInstrVISA resource name@timeout (10sec)(@"termination char (0xA = '\n' = LF) @!Enable Termination Char (T)*@pInstrduplicate VISA resource name@baud rate (9600)@ data bits (8)0@NoneOddEvenMarkSpaceparity (0:none)@@P @!status @code@0sourceerror in (no error)@stop bits (10: 1 bit)@flow control (0:none)6@P @!status @code@0source error outPTH07Instr _visa.llbVISA Configure Serial PortPj c8 P+\P"@P@flg@oRt@eofudfPBreaks DetectedxdfdPtxdPoldPext PVP"@P@flg@oRt@eofudfP!Timeout?x!dfdP!txdP!oldP!ext cVP"@P@flg@oRt@eofudfP baud ratepdfdPtxdPoldPext P cP"@P@flg@oRt@eofudf PpInstrVISA resource nameppInstrdfdPpInstrtxdPpInstroldPpInstrext cVP"@P@flg@oRt@eofudfP data bitspdfdPtxdPoldPext P cTP"@P@flg@oRt@eofudf PparityxdfdPtxdPoldPext P" P@@ cVP"@P@flg@oRt@eofudfP stop bitspdfdPtxdPoldPext P" P@@RP"@P@flg@oRt@eofudf P!stopx!dfdP!txdP!oldP!ext c\P"@P@flg@oRt@eofudfP!Break Detected?x!dfdP!txdP!oldP!extZ P$@P@0P`millisecond multiple` timeout (0) `code.`HZpSelect Event Type.ctl Event Type" P@@`timeout (10sec) h!Enable Termination Char (T)h flow control" P@@h timeout (0) c c$ c0 c6@P @!status @code@0source error out c.@@0ser-defined descriptions]$@@[user-defined codes]@ timeout (0)@[error code] (0)@code out@0[error source] (" ")@@P @!status @code@0sourceerror in (no error) c*@pInstrduplicate VISA resource name@ event type!@0[exception source] c@millisecond multiple c@mechanism (1: VI_QUEUE)@mechanism (1: VI_QUEUE) @!error? c@[exception code]@@P @!status @code@0sourceerror in (no error) c@ baud rate@ data bits @!stop@ stop bits @parity$ @pInstrVISA resource name@Breaks Detected @pInstrVISA resource name@type of dialog (OK msg:1) c@0 source out0@NoneOddEvenMarkSpaceparity (0:none) c@0message!(@"termination char (0xA = '\n' = LF) c @xception action] (none:0) c c c c cD c c , P vPvPvPvPvPvPvPvPvP c\ # h D:ZwrN8 %COM1  ? #? ? ? !? ? ? ? ? ? "?? #? $? )? *? ,? .? 5'0~<>("|dpx$08x0x@@0 |@@ y}@ ~ h lH@ a4eNh li^mhHh Hh NZ@ (@Hh VIDSDetect Break Event.viVIDSVISA Configure Serial PortPTH0VIDSGeneral Error Handler.viPTH0\4i386@|codeWHEwd|E\EPPUEd$=t1=+Ð)Ӏ}t}uE$EE48tQRUtDžDDžHu6h QRVPD$hh+nd$ZYHH1DEhEl|E\QRhPEP$PL$D{d$ZY=uLuDÐ ÐÐDx)QRhPEP$PL$D2{d$ZYÐ}vtGu6h QRVhPf$mKd$ZYHDxL|E\QRhPEP$PL$D{d$ZY=:LuÐ}v<>u7Ht.HxQRUhHQVxd$ZYƅfx ƅ>tDžPDžTu6h QRVPP$hh%ld$ZYTT.PEhEl|E\QRhPEP$PX$P~{d$ZY=uXuDÐÐÐPx)QRhPEP$PX$P,{d$ZYÐ}vtDu6h QRhhVemNd$ZYTPxL|E\QRhPEP$PX$P{d$ZY==XuÐ}v9>u7Tt.TxQRUhTQVvd$ZYƅfx"ƅƅP(RZXfx& ƅi9ȸtƅ}$u ƅhhUEP8d$ fx*ƅ (ƅ4ƅ4fxBEhx`ƅ$PRZX}$u ƅhhUEP8d$ fx2ƅ(>tDž\Dž`u6h QRVP\$hh@hd$ZY``,\EhEl|E\QRhPEP$Pd$\{d$ZY=uduDÐ7ÐÐ\x)QRhPEP$Pd$\G{d$ZYÐ}vtBu6h QRVPf$mHd$ZY`\xLe|E\QRhPEP$Pd$\{d$ZY=?duÐ}vtZ>u7`t.`xQRUh`QVrd$ZYƅ(fx6|E\QRPEP$hhPEP$&d$ZY=tÐ}vx7P Detect Break Event.vi This example illustrates how to detect a break in the data line during serial communication. The VISA Enable Event.vi is used to enable an event for break. The VISA Wait on Event.vi is used to with a timeout of 2000 milliseconds to wait for a break. This vi can be run alongside the "Set Break.vi" to introduce the breaks. INSTRUCTIONS: 1) Select the serial resource and configuration parameters (baud rate, data bits, parity, stop bits). 2) Connect the serial port to your device. If no device is available, perform a loopback test by doing one of the following. Short pins 2 and 3 on a RS-232 cable or short pin 4 to pin 8 and pin 5 to pin 9 on a RS-485/422 cable. 4) Run the vi. The serial port can set a serial break on the transmission lines. The serial port can detect that a serial break has occurred through the use of VISA Events. These events are notifications that allow a user to take action once the events have been detected. Note that all platforms allow the serial port to assert a break and receive notification of I/O Completion. However, the other serial events are valid only on Windows and platforms on which National Instruments supports ENET serial products. This example shows how the user can detect that the break character has come across the transmission lines. The serial break event is specified by x3FFF2023, as discussed later. First, the event is enabled with VISA Enable Event. Then, the VISA Wait on Event waits for the event type specified, in this case the x3FFF2023 or serial break event. The VISA Wait on Event will wait for the specified timeout period. The expected timeout VISA error is -1073807339. For the example, this timeout is ignored, so that the user has adequate time to see a break event detected. Also, for this example, the number of breaks detected is displayed. The VISA Discard Event ensures that all event types and mechanisms are cleared. To see other VISA events, view the Help for VISA Enable Event. communication instrument serial 232 485 rs-232 rs-485 rs232 rs485 receivers visa events control 3113 4290 LabVIEW LabVIEW PCI-232 PXI-8420 PXI-8422 PCMCIA-232 AT-232 USB-232 ENET-232 PCI-485 PXI-8421 PXI-8423 PCMCIA-485 AT-485 USB-485 ENET-485 NI.LV.ALL.VILastSavedTarget0DfltNI.LV.ALL.goodSyntaxTargets&&@0DfltThis example illustrates how to detect a break in the data line during serial communication. The VISA Enable Event.vi is used to enable an event for break. The VISA Wait on Event.vi is used to with a timeout of 5000 milliseconds to wait for a break. This vi can be run alongside the "Set Break.vi" on a separate serial port to introduce the breaks. INSTRUCTIONS: 1) Select the serial resource and configuration parameters (baud rate, data bits, parity, stop bits). 2) Connect the serial port to your device. If no device is available, perform a loopback test by doing one of the following. Short pins 2 and 3 on a RS-232 cable or short pin 4 to pin 8 and pin 5 to pin 9 on a RS-485/422 cable. 4) Run the vi. The serial port can set a serial break on the transmission lines. The serial port can detect that a serial break has occurred through the use of VISA Events. These events are notifications that allow a user to take action once the events have been detected. Note that all platforms allow the serial port to assert a break and receive notification of I/O Completion. However, the other serial events are valid only on Windows and platforms on which National Instruments supports ENET serial products. This example shows how the user can detect that the break character has come across the transmission lines. The serial break event is specified by x3FFF2023, as discussed later. First, the event is enabled with VISA Enable Event. Then, the VISA Wait on Event waits for the event type specified, in this case the x3FFF2023 or serial break event. The VISA Wait on Event will wait for the specified timeout period. The expected timeout VISA error is -1073807339. For the example, this timeout is ignored, so that the user has adequate time to see a break event detected. Also, for this example, the number of breaks detected is displayed. The VISA Discard Event ensures that all event types and mechanisms are cleared. To see other VISA events, view the Help for VISA Enable Event.!!fc”!!Ą!rs2A ;JA:!Pp ?* DTHPD\88 ~ F6@P @!status @code@0source error out:*@pInstrduplicate VISA resource name"@ flow control, @!Enable Termination Char (T) @timeout (10sec)*@flow control (0:none)*@stop bits (10: 1 bit)(@0[exception source]&@[exception code], @xception action] (none:0)L@@P @!status @code@0sourceerror in (no error)@0message.@type of dialog (OK msg:1) @0 source out@code out.@0[error source] (" ") @!error?>.@@0ser-defined descriptions]0$@@[user-defined codes]&@[error code] (0)   @[error code] (0)$@@[user-defined codes].@@0ser-defined descriptions] @!error?@0[error source] (" ")@code out@0 source out@type of dialog (OK msg:1)@0message@@P @!status @code@0sourceerror in (no error) @xception action] (none:0)@[exception code]@0[exception source]6@P @!status @code@0source error out@ baud rate, @pInstrVISA resource name 7@ data bits @parity<0@NoneOddEvenMarkSpaceparity (0:none)"@ data bits (8)>.@HZpSelect Event Type.ctl Event Type! @!stop@ stop bits@ event type @!Break Detected?.@mechanism (1: VI_QUEUE)&@baud rate (9600), @!Enable Termination Char (T)4(@"termination char (0xA = '\n' = LF)   @pInstrVISA resource name@timeout (10sec)(@"termination char (0xA = '\n' = LF) @!Enable Termination Char (T)*@pInstrduplicate VISA resource name@baud rate (9600)@ data bits (8)0@NoneOddEvenMarkSpaceparity (0:none)@@P @!status @code@0sourceerror in (no error)@stop bits (10: 1 bit)@flow control (0:none)6@P @!status @code@0source error out.@event type (all enabled)@ timeout (0) @!status(@millisecond timer value*@millisecond multiple.@mechanism (1: VI_QUEUE)J:@P @!status @code@0source error cluster @code@!Timeout? @Breaks Detectedr$4ll(Pt4$Tp$ D,,HtH$$XXhh44X$48dH4 4 44 4 44 `4 ` X X [D$99Breaks DetectedH]'9'9TD2 ?52 ?5Timeout?UD`a baud rateH"gh^DXYVISA resource nameH^fgUD\] data bitsHdbg#h#RD,[9x,\9xparityH[>K>KH %>gL>hKUDX[eX\e stop bitsH#cqepH#kgxkixPDS`S`stopH$2mz-mz-[DGGBreak Detected?DSS> VI Properties >> DocumentationdDGeneral Error Handler.vi+DQ:xQHDU `DCEmillisecond multipleHD"WD timeout (0)HDXb¢Ͻ¤ϼPD<I<IcodeHD8[LYLY HDb4BAn4CAnHDb/ <Y/ <YVDtv Event TypeNDt}v| HD]t}v|HD^uwHD$4GG HD"xxHD,AA HDb33[Dwdwctimeout (10sec)HD`87gDUcUbEnable Termination Char (T)HDT5'4@'4@ XDJWQJWP flow controlHD|$kxkxHDpbZg3Zg2WDP]+P]* timeout (0)HD_`!m*`#m)fDRQVISA Configure Serial PortInstrV2x143P3\#\!#bDetect Break Event.vit.viNoneOddEvenMarkSpace1.01.52.0 STOPServiceRequestTriggerClear VXI-SignalVXI/VME-InterruptVXI/VME-SysfailVXI/VME-SysresetGPIB-CIC GPIB-Talk GPIB-Listen PXI-Interrupt AllEnabled Serial-BreakSerial-TermChar Serial-CTS Serial-DSR Serial-DCD Serial-RISerial-Character"NoneXON/XOFFRTS/CTSDTR/DSR$FPHPDetect Break Event.vi#,FPHPD'8#$#$#+~W" b^\HD#XL8t"P=B!< 4tP L Pt4 !!@!t!0l|-x@P,>Dk@,pH44 F :d|4  2 (:p < 0 cq cq cqp <  ,br ,br ,brL : ( 0{u0{/|.}-~0  ,>dp8hBlR ||P'Indicates the number of breaks detectedBreaks Detected0f(0|,4O1^6\Lg,T4 G(1@6 (D\(lhKKD\(KKlhD\(ddlhD\(KKlhD\(ddlh 7(WB^+eofB^+feoB^+eoB^+eoB^+eo8h(B$8R||8$Indicates whether a Timeout occurred0$|D@PW X@D,4h | 4 F _|4  2 f|p 4 0WccqWccqWccqp 4 WcbrWcbrWcbrL : fl0{u0{/|.}-~0  bdp8hB 0 DR ||X+Specifies the baud rate of the serial port.Serial baud rate.0  d|E 8U W , ! H | 4 F QW|H QW W, 0 l <@ 2 |O IIJ< 2 | e| p 2 |+  \cu_\cu_\cu_0 7 | [d߳0  | Wdp8 h |B t T | |8 h B T | |T A string that uniquely identifies the resource to be opened and written to as well as read from. The grammar for the resource name is shown below. Optional string segments are shown in square brackets ([]) Interface Syntax VXI VXI[board]::VXI logical address[::INSTR] GPIB-VXI GPIB-VXI[board]::VXI logical address[::INSTR] GPIB GPIB[board]::primary address[::secondary address][::INSTR] Serial ASRL[board][::INSTR] The following table shows the default value for optional string segments. Optional String Segments Default Value board 0 secondary address none The following table shows examples of address strings. Address String Description VXI0::1 A VXI device at logical address 1 in VXI interface VXI0. GPIB-VXI::9 A VXI device at logical address 9 in a GPIB-VXI controlled system. GPIB::5 A GPIB device at primary address 5. ASRL1 A serial device attached to interface ASRL1.Resource Name of serial port.0 " |Ep@ PPW($#@, 4hH4 F [|4  2 f$l|p 2 0WccqWccqWccqp 2 W(cbrW(cbrW(cbrL : f$l0{u0{/|.}-~0  b(dp8 hBR  | |P <data bits is the number of bits in the incoming data.0 $ |EP Wt+WQH0@Zl, 4hH4 F +Z:yP|4 J =LóX|< 2 =fM|H4p 6 08WDccq8WDccq8WDccqp 2 DWPcbrDWPcbrDWPcbr0  9bQdp8hB 4Ta|||fparity is 0 no parity (default) 1 odd parity 2 even parity 3 mark parity 4 space parity 01|IPW@WW}XWA,(84 F WZf|4 K ~brT|< 2 jfy`|\p 6 0eWqccqeWqccqeWqccqp 2 qW}cbrqW}cbrqW}cbr0  fb}dp8hBpTa||dPstop bits specifies the number of stop bits used to indicate the end of a frame.0,.@"|$4Od@t/,4 O@Ra<  v@l{.|`] @d@뼼d@d@d@d@8h@BR||,Stops the VI operation0d6x0~|#4O4H 5,  <4 GxH| x 2lhKK 2KKlh 2ddlh 2KKlh 2ddlh 7xW7eof7feo7eo7eo7eo8hxB t R||D/Indicates whether the Serial Break was detected0 >T0 [T4 R8|4  m|0 KC7,  ,4@x! BDHPDetect Break Event.viLVINGeneral Error Handler.vi PTH0LVCCSelect Event Type.ctl.@40pS]ea p<40ppT]ea  p3 -40pU]ea  p?< H40p@V]ea 4/ H/  T 40TMĠ TC, ( 40T \N Dc H 2"  !8! @ p; 4b p!$K2" @ p8!X!84b p!L"!8 @ p:!!4b p!a"1)!!X!< "`Tp pT0 H"\"#P#$$|&d(L(),)* ,,--x- @"`# "0$#<8CSK" @"`1(#p$0%#78H@#P0@"`64<(\ L#4 B# <?0@"`1($'$H4 B$?| @"`C,$$|,"`$O$a4$|@P$%PA,%H%|%%&,4 J$ B?\|4 2$ L! :$ 0{0{/|.}-~0! 3$ 8!h$B !@"`@8&&d,!"`&Y&eN!&d@!P&ѿ'XA,!'0'd''(4! J& ?|4" 2& о|L# :& œ΢0{0{/|.}-~0# 3& ѿ8#h&B #""`?<(lZ4#"(9B=#(L H #""`>@(_D4#")Z9B=#( h #""`=D)LZ4#")2R[V#), #""`2$)4#")[R[V#) #@"`9*,* ,#"`*Xc*li^#* @#P*,J[*`@,#*+ +@++4# J*l ;J?4$ 2*l KZD|L% :*l LX0{0{/|.}-~0% 3*l J[8%h*lB+,%|%|0%@"`7LBARaJQ,L4% B,3ABo?| &"`4, 8&(,naKm[gO,&, &-( &"`5-(-4&'-\ma9mIgE,&- 0&@"`4-x=M'E-4& B-x.=Z? '@"`3 --,'"`.(*.<mh'-@'d$-s.|+^'../4' N.<Js|8(h.@?<@8A4B0C,4, H21\! ,1(@,$#P4, H32XP,2$V,)4, H43TL,3      a  L L  ,,-4, H55,4hgOEhOhE,,-x4, H65,5ggEh,-4, H76!,6 LL-8-8,#`4, H87!,7JJQ,L,4, H98!,8,!84, H:9,9ROO,* 4, H;:,:)E)E,!4, H<;P,;"", D 4, H=(<7H,<, |4, H>$=x7,=DV,L),4, H? >tP,>@=a,(4, H@?p7,?<=a,(L4, HA@l,@8ȯȨ,&d 4, HBAhP,A4y, L4, HCBd7,B0y,L 4, HD C`,C,,$| ,,0,Dl<, DE EpEF8HHIJ0L0,@D ;YSt\Z4;3Y\;;\ ;YX\xD;]<4;3Y](<;\X ;Y]]<4;3Y]);] ;YN]\Ep4;3Y_(4;3Y\: ;Y]^,4;3Y^' ;^ ;YV^L^4;3Y^& ;^ ;Y^^;^,;_D ;Y`h_D4;3Y_  ;_ ;YU4_dI4;3Y`  ;` ;YTT_J04;3Ya4;3Y_0% ;Y`4`4;3Y`;a ;YR`_D,;DQ8>Q8>:>I?h  йo  йv  й} й йTahomaTahomaTahoma02RSRC LVINLBVWT 4  4RSIDTLVSRhBDPW|LIviCPTMDSTMDFDSLIdsVICDversDLDRFPTD0CPMpDVITSXSTRGlICONicl8DTHPTRec3STR CPSTLIfpDFPHPXLIbdlBDHPHISTPRT FTABbXQPbt !؜]$Hb`-%6p-6tV6V7x27x1E43MlPM3Q\_#`<\!`#`baϟy?|<ϟy'#=gqx??矇'|?~'y?~<?8sqy>?y><§OOOϟ?ُ~s<<?><?33333333333333333333333333333333_QWu?#Q}}ݝXHRXIRXJYLZHZ|x@@EUQ'? ?(?? PDD?? ZTU? HL Ġ H  H ொ H HĠD H ϐ Ġ?H `ĠĠ@HĠİHİ?H 䠎 䠎 ? H  H  ?HH HHHĿHAȬ   π Ȉ( (̈̌b,̢,,,,<̂Ȉ ,b,,,,<?h,̀ ,b,̢,,,,0h,Ȁ̀̀b, Bﮫbﮫb̃?h,̀̀b, Bﮪbﮪb̃?h,ʀ̀Œ̈,΢,,,̂̂ ,̢,,0̂ ,̢,,0̂Ȉ( (̈b,b,b..̂h,̀ ,b,̢,,,,<̂Ȉ <(̈Čb,b...,,<h,ʀ̀Œ̈,΢,,,̂̀Ȉ ̌r<̢̀.΢, ,,,0,0     3<Ȭ  ̌̌̌ČČČ̌̌̌Č̌ČB ̈Ḧ ȈḦ Ȉ(Ƞ   Ḧ( ̌ʌȈḦ( ̌ʌȈ̈( ̌ŒȈ̀̌.̈ḦȈḦ(ȈḦȈ/ ̈ ̌̌̌̌̌ ̀Ȉ ̈(̈̌̌Č̈(̈Ȟ̌̌̈̀ .  ̎ ̀̌Ȍ̌p̌Ȍ̌Œp̌p̌p ̀B(̈(̈(̈(̈ . ̀ .  *̀ .興̀΢/ ̈ ̌̌̌̌̌ ̀Ȉ ̈(̈Ȟ̌̌̈(̈ĽČ̈̀ . ̀ ḦȈH ̈ȈḦȈḦȈḦ(ȈḦ(ȈḦLȈ ̌̌̌Bψ,̌̌  ⨂̀  ̀ .̀  ਂ , Έ,Bψ,BΈ,Bψ,̌Č̈€ ,΢,̂̃̌Č̈Ȁ ̌b,,<̻ˈ,̼Bψ,   ̀ *( .   ̀ +   *    ̀ (*   ̀   *(  + . ̀ .  ̀   *(  *(333337333̪Ȉ,̌̌ȈH ̌ Ȉ̈ ̌ČLȈ Ȉ ̈H Ȉ̈  ̈H Ȉ(̈ Ȉ ̈Ȉ ̈ Ȉ̈H Ȉ̈ Č ̈ Ȉ̈L̀Ȉ̀ ̀ ̀ ̀ ̀hhhXX  RSRC LVINLBVW A D@ <iDNd'u ُ B~E"+Ӈz LVIN NI RS-485 Transceiver Control.viLVINSimple Error Handler.vi   @!error?@code out@error code (no error:0)@0error source (" ")@0 source out6@P @!status @code@0source error out@0message@type of dialog (OK msg:1)@@P @!status @code@0sourceerror in (no error)PTH06Utility error.llbSimple Error Handler.viLVINVISA Configure Serial Port   @pInstrVISA resource name@timeout (10sec)(@"termination char (0xA = '\n' = LF) @!Enable Termination Char (T)*@pInstrduplicate VISA resource name@baud rate (9600)@ data bits (8)0@NoneOddEvenMarkSpaceparity (0:none)@@P @!status @code@0sourceerror in (no error)@stop bits (10: 1 bit)@flow control (0:none)6@P @!status @code@0source error outPTH07Instr _visa.llbVISA Configure Serial Port     @pInstrVISA resource name@ stop bits @!read@0string to write@ baud rate@0 read string@ bytes to read@ data bits @!write @parity@ flow control@RS-485 transceiver mode@! Assert DTR?""PM c8 P+ cZP"@P@flg@oRt@eofudfP flow controlxdfdPtxdPoldPext P" P@@XP"@P@flg@oRt@eofudfP! Assert DTR?p!dfdP!txdP!oldP!ext c fP"@P@flg@oRt@eofudfPRS-485 transceiver modexdfdPtxdPoldPext P" P@@RP"@P@flg@oRt@eofudf P!writep!dfdP!txdP!oldP!ext cRP"@P@flg@oRt@eofudf P!readp!dfdP!txdP!oldP!ext cZP"@P@flg@oRt@eofudfP bytes to readpdfdPtxdPoldPext P cpP"@P@flg@oRt@eofudfP0string to write p0dfd P0txd P0old P0extlP"@P@flg@oRt@eofudfP0 read string x0dfd P0txd P0old P0ext cVP"@P@flg@oRt@eofudfP stop bitspdfdPtxdPoldPext P" P@@ cTP"@P@flg@oRt@eofudf PparityxdfdPtxdPoldPext P" P@@ cVP"@P@flg@oRt@eofudfP data bitspdfdPtxdPoldPext P cVP"@P@flg@oRt@eofudfP baud ratepdfdPtxdPoldPext P cP"@P@flg@oRt@eofudf PpInstrVISA resource nameppInstrdfdPpInstrtxdPpInstroldPpInstrextZ P$@P@0PZ P$@P@0P`timeout (10sec) h!Enable Termination Char (T) c c c c cl@@P @!status @code@0sourceerror in (no error) c$ @pInstrVISA resource name@0 read buffer@ bytes to read @!read@0string to write @!write"@RS-485 transceiver mode c c@ baud rate@ data bits0@NoneOddEvenMarkSpaceparity (0:none) c@ stop bits@ flow control@! Assert DTR? @parity c< c c< c< P vPvPvPvPvPvPvPvPvPvPvPvPvP c c0h &  0 p^x < l p t   *IDN?  %COM1'Lt PV\^p|~ P LX\d  jX ,8< Z`  \     L@( @d@@P@: d@ X@ dh@`@ \@  @d@d@d@d@d@@d@d@d@d@@@dVIDS NI RS-485 Transceiver Control.viVIDSVISA Configure Serial Port PTH0VIDSSimple Error Handler.viPTH0@i386 Z|code(_EwDZ|E\EPPUEd$==(Ð)Ӏ}kELXC<{@t$QR{d$ZY=CLC\{`tPRZXCDLC{ tPRZXCl{ptPR]ZXC4{8tPR}ZXCdPCtdC$X`C|\ƅƅƅƅƅƅPƅpƅƅLƅ ƅ,ƅƅ48tQRUZd$ZYɍpHHH HHHƅlthhUEPt<DžDžu6dQRVP$hhhPD$X]ܹd$ZYEhEl_|E\QRhPEP$P$8d$ZY=uu@Ð x)QRhPEP$P$h8d$ZYÐ}vDžu6dQRVPh?hPD$XWd$ZY=u3QRVPh?hPD$Xd$ZYxL`|E\QRhPEP$P$7d$ZY=uÐ}v=u:>u/=t(=xQRURhPQV榃d$ZYƅxfx ƅ|tDž:b|E\EPQRhPP$䔹d$ZY=VuDÐÐÐQRVZYQRhPEP$P$莔d$ZYÐ}vDžu6dQRVP$hhPD$X׿d$ZY=udta;t9t Džb|E\EPQRP,Ud$ZYÐ}vcDžTRc|E\QRhPEP$P$蕓d$ZYu Ðu}v0>u7t.xQRUhQV㦃d$ZYƅfx.Ehx$ƅ|fx,ƅt#QRP$h{d$ZYDž$e|E\EPQRhPP,$d$ZY=i,uDÐÐÐQRSZYQRhPEP$P,$褑d$ZYÐ}vDžu6dQRVP$hhPD$XhPD$X誼d$ZY=udta;t9t Dže|E\EPQRP/Rd$ZYÐ}vPDžAOf|E\QRhPEP$P,$蘐d$ZY,u Ðu}v3>u7t.xQRUhQVঃd$ZYƅƅ}$u ƅ hhUEP8d$ =fx:EhxƅfxƅQRhPD$Xqd$ZY>u.=t'=xQRUhPQVߦd$ZYƅfxƅts4ts$<ts4Lts<TtsD\tsL$dtsTlts\tETOh|E\EP.UR@␐}vt}vt1ƅfx"48tQRUڛd$ZY}t}u@}urvQRPE@$d$ZY==t p h搐ÐEw h|E\EPPUEd$=t=t=t=tEw Ew‰ppVLFX@'PUEd$=uÐPlTi|Plki|Pli|Pli|iPl"i|OPlhi|5i|Ðx&j|Ðx&yp&j|p @'PUEd$=uÐPl Dj|Pl {j|^Pylj|$Plj|Pl )k|Psl ck|vP l k|

p|Fo|FwZ|F@`p|FDQRhUxd$ZY_^ZY[]ÐX_6""66T"HHe> Ht e  H  Hb =  Hq  5D b,~ Z|*D :t"\UNV^fn%4.  E\snCODE(_D%6.1Oldest compatible LabVIEW.]NxQ@blpPPP @0string to write@0 read string@ bytes to read@ baud rate @pInstrVISA resource name @!write @!read@ data bits @parity@ stop bits@RS-485 transceiver mode@! Assert DTR?@ flow control"  example finder@0xml text instrument control,serial Hardware Input and Output\Serial NI.LV.ExampleFinder @0xml text i NI RS-485 Transceiver Control.vi The NI RS-485 Transceiver Control example sets the RS-485 transceiver control modes for the specified port and performs a Serial Port Read, a Serial Port Write, or a combination of these actions. If all are selected, the VI will write the data first, read data and then close the VISA session that is opened to the port. This VI will wait until the specified number of bytes is received at the port. Only the number of bytes specified will be read. Note: This example will work only with National Instruments RS-485 interfaces. INSTRUCTIONS: 1) Select the serial resource and configuration parameters (baud rate, data bits, parity, stop bits, flow control). 2) Set the required RS-485 transceiver mode. Set the DTR switch to the appropriate setting, depending on whether the transceiver mode is DTR controlled. 3) Select the operations to be performed. 4) Connect the serial port to your device. If no device is available, perform a loopback test by doing the following. Short pin 4 to pin 8 and pin 5 to pin 9 on a RS-485 cable. 5) Run the VI to see the data read. (The "read string" will match the "string to write" if a loopback test was performed.) This example demonstrates the transceiver control modes available when using a National Instruments RS-485 product. When connecting one or several devices via RS-485, a user may want to cut down on the amount of wiring. Alternatively, some devices offer a certain wiring configuration that you may need to match. Determine the wiring needs of the connected serial device to determine which NI RS-485 transceiver control mode to choose. Note: When you are communicating with a two-wire device, National Instruments recommends that you use the two-wire Auto Control mode. Because this mode handles the transmitter/receiver enabling for a two-wire connection in your hardware, it reduces the software overhead required to perform this operation in your application program. communication instrument serial 485 rs-485 rs485 mode wiring receivers transmitters visa control 3113 4290 LabVIEW LabVIEW PCI-485 PXI-8421 PXI-8423 PCMCIA-485 AT-485 USB-485 ENET-485 NI.LV.ALL.VILastSavedTarget0DfltNI.LV.ALL.goodSyntaxTargets&&@0DfltThe NI RS-485 Transceiver Control example sets the RS-485 transceiver control modes for the specified port and performs a Serial Port Read, a Serial Port Write, or a combination of these actions. If all are selected, the VI will write the data first, read data and then close the VISA session that is opened to the port. This VI will wait until the specified number of bytes is received at the port. Only the number of bytes specified will be read. Note: This example will work only with National Instruments RS-485 interfaces. INSTRUCTIONS: 1) Select the serial resource and configuration parameters (baud rate, data bits, parity, stop bits, flow control). 2) Set the required RS-485 transceiver mode. Set the DTR switch to the appropriate setting, depending on whether the transceiver mode is DTR controlled. 3) Select the operations to be performed. 4) Connect the serial port to your device. If no device is available, perform a loopback test by doing the following. Short pin 4 to pin 8 and pin 5 to pin 9 on a RS-485 cable. 5) Run the VI to see the data read. (The "read string" will match the "string to write" if a loopback test was performed.) This example demonstrates the transceiver control modes available when using a National Instruments RS-485 product. When connecting one or several devices via RS-485, a user may want to cut down on the amount of wiring. Alternatively, some devices offer a certain wiring configuration that you may need to match. Determine the wiring needs of the connected serial device to determine which NI RS-485 transceiver control mode to choose. Note: When you are communicating with a two-wire device, National Instruments recommends that you use the two-wire Auto Control mode. Because this mode handles the transmitter/receiver enabling for a two-wire connection in your hardware, it reduces the software overhead required to perform this operation in your application program.p= 4 T 9 p9Pp ?*     @pInstrVISA resource name@ stop bits  @!read@0string to write@ baud rate@0 read string@ bytes to read@ data bits @!write @parity@ flow control@RS-485 wire mode@! Assert DTR? XDTHPDX88 P W~ @0 read string$@0string to write 7F6@P @!status @code@0source error out, @pInstrVISA resource name"@ bytes to read*@flow control (0:none)*@stop bits (10: 1 bit):*@pInstrduplicate VISA resource nameL@@P @!status @code@0sourceerror in (no error)! @!read@! Assert DTR? @!write<0@NoneOddEvenMarkSpaceparity (0:none) @parity"@ data bits (8).@RS-485 transceiver mode&@baud rate (9600), @!Enable Termination Char (T)4(@"termination char (0xA = '\n' = LF) @byte count (0) @0 read buffer"@ return count@ data bits @timeout (10sec)@ DTR State@ Wire Mode, @!Enable Termination Char (T)   @pInstrVISA resource name@timeout (10sec)(@"termination char (0xA = '\n' = LF) @!Enable Termination Char (T)*@pInstrduplicate VISA resource name@baud rate (9600)@ data bits (8)0@NoneOddEvenMarkSpaceparity (0:none)@@P @!status @code@0sourceerror in (no error)@stop bits (10: 1 bit)@flow control (0:none)6@P @!status @code@0source error out@ baud rate@ stop bits"@ flow control*@0write buffer ("").@type of dialog (OK msg:1)@0message @0 source out(@0error source (" ")(@error code (no error:0)@code out @!error?:*   @!error?@code out@error code (no error:0)@0error source (" ")@0 source out6@P @!status @code@0source error out@0message@type of dialog (OK msg:1)@@P @!status @code@0sourceerror in (no error)]$<,d<<,<<,<d H`,,0,@d,`<H,<d,,@,HHddd,,<,d<<d XDA A flow controlH\P^Q^H<^HHD^^HFor additional information select File >> VI Properties >> DocumentationWD   Assert DTR?HD$\:G:G\Dff RS-485 wire modedDŋŋRS-485 transceiver modeH#H@3`_ QDwriteHD$_PDvǃvȃreadHD$4/ǜYD bytes to readHl^ [DGG string to writeHpVR WDt8t8 read stringHb VDer3er3 stop bits VDer3er3 stop bits H_HPwHwG RD;H$;H$parityRD;H$;H$parityH[NO[]NP[]HPWN]GN[G UD#1#1 data bitsH&(5G(5G UD66 baud rateHX_ G G ^DffVISA resource nameHp_}} DTTFSelect the serial resource and the operations (Read, Write or both) to be performed. If all are selected, the VI will write the data first, read the data and then close the VISA session that is opened to the port. This VI will wait until the specified number of bytes is received at the port. If more bytes than specified are at the port, all will be read. Set the required RS-485 wire mode. Set the DTR switch to the appropriate setting, depending on whether the transceiver mode is DTR controlled. Note: This example will work only with National Instruments RS-485 interfaces. cD&%Simple Error Handler.viiDBSet DTR to either ON or OFF .lD.-B Set the RS-485 transceiver mode.DhUhTB ZConfigure Serial port settings (baud rate, data bits, parity, flow control and stop bits). ]? _>BcccNote: Closing the serial port allows it to be used by other applications without quitting LabVIEW.`DxzBWrite bytes to port.HD`_ķRE True hDQSBWait for the bytes to arriveHDLطHD4'  REǟ True HDh&HD."" HD^<U=UHD^,,HD(' HDbHDV''[Djwjw timeout (10sec)HD^zzÇgDIVIIVHEnable Termination Char (T)HD.))HD|33@3@HD(/=J=JfD0ٰ2ٯVISA Configure Serial Port"NoneXON/XOFFRTS/CTSDTR/DSROFFONOFFON1Wire4 Wire2/EchoDTR Wire2/CtrlDTR Wire2/AutoOFFONOFFONOFFONOFFON1.01.52.0NoneOddEvenMarkSpaceInstrd info>NI.LV.ExampleFinder @0xml text i flow control sets the type of control used by the transfer mechanism.4 _|0Z|54OX \,',0l4 G |<  f9H ha PasPּ`tPּas1=ּ1=ּ 5Y\_u\ᳳ^v\ᳳ_u1N峳1N峳0 4V/@lh8 hBR  | |h RControls whether the DTR line is asserted for the DTR Controlled transceiver modes0 , |5DP W݌ ( @B"H4<  d <  L4 NR  g|4 F  ƌ|4 J  < 2 aó |t!p 6 0cqcqcqp 2 brbrbr0  edp8hBTa0Sets the transceiver mode0 2 PV |/4O  ,, X ` (4 G |<  f 4|S  asټ`tټasټټ 5 Y_u糳^v糳_u 쳳 쳳0 4 Vlh8h B`tR ||`If this is selected, the data in the String to Write control will be written to the serial port.Write data to serial port?0L`p|0 4Ou3,0`4 G`uƄ|<  f``|4" `asؼ`tؼasʪؼʪؼ 5`Y_u泳^v泳_u볳볳0 4`VǮlh8h`BR ||If this is selected, the VI will try to read at least the number of bytes specified in the Bytes To Read control from the serial port.Read data from serial port?0|' @PB 0XM@h,\4 4 F |4  2 ó |p 4 0cqcqcqp 4  br br brL : 0{u0{/|.}-~0   dp8hBR xIf a Serial Port Read operation is performed, the Bytes to Read control dictates the bytes to read from the serial port.Bytes to read from serial port.08T|P4QWB,L4 FT H}4 2T Só 0 T Wdp8hTBTThe String To Write control contains the string written to the selected serial port if the Write control is selected. The string is normally an instrument-specific command for the device connected to the serial port.String to write to serial port.0|'4Qs ,Dx4 F s9H|4 2  0   dp8hBT The String Read indicator displays the string returned from the selected serial port if the Read control is selected. The string is usually returned from the instrument or device connected to the serial port.String read from serial port.0PDd j|1LPW@ dMEA"(<$X84 NdR ds44 Fd ds4@|4  Kd < 2d vIó 2p 6d 0q}cqq}cqq}cqp 2d }br}br}br0 d rMdp 8hdBTadPstop bits specifies the number of stop bits used to indicate the end of a frame.0L |0PWt:bL!5@bRhd<Dx  !,4 NR :I%4 F :I%|4! J MN\^ó|<" 2 M^Hó X|6p$ 6 0HTcqHTcqHTcqp$ 2 T`brT`brT`br0$  IbLdp 8$hB!d!xTa$|$||$fparity is 0 no parity (default) 1 odd parity 2 even parity 3 mark parity 4 space parity 0$"84"L $|0@$P":L"$1@,$""# #$$L$|4$ F"L $2T|4%  2"L '6Hó p& 6"L 0".cq".cq".cqp& 2"L .:br.:br.:brL& :"L '60{u0{/|.}-~0& "L #:Ldp8&h"LB$$R &|&|P&<data bits is the number of bits in the incoming data.0&%\C%p&|.@&P%,L%'L@X,&%&&D&'$'p'4& F%p 7,4'  2%p Hó |p( 4%p 0cqcqcqp( 4%p brbrbrL( :%p 0{u0{/|.}-~0( %p Ldp8(h%pBR X(+Specifies the baud rate of the serial port.Serial baud rate.0((`K(tt(|/X8(U(0(+,(((*4( F(tQgH)(tQ)DW,*)p))*\**@* 2(O ~IIJ<* 2( ~ó H| p+ 6(+  u_u_u_0+ 7( ߳0+ ( dp8+h(BT8+h(tBTT+A string that uniquely identifies the resource to be opened and written to as well as read from. The grammar for the resource name is shown below. Optional string segments are shown in square brackets ([]) Interface Syntax VXI VXI[board]::VXI logical address[::INSTR] GPIB-VXI GPIB-VXI[board]::VXI logical address[::INSTR] GPIB GPIB[board]::primary address[::secondary address][::INSTR] Serial ASRL[board][::INSTR] The following table shows the default value for optional string segments. Optional String Segments Default Value board 0 secondary address none The following table shows examples of address strings. Address String Description VXI0::1 A VXI device at logical address 1 in VXI interface VXI0. GPIB-VXI::9 A VXI device at logical address 9 in a GPIB-VXI controlled system. GPIB::5 A GPIB device at primary address 5. ASRL1 A serial device attached to interface ASRL1.Resource Name of serial port.4+ Sd|0, LC0, T0, bT0, jT,7, (0   %,    "  t    X ,H3, InstrBDHP NI RS-485 Transceiver Control.viLVINSimple Error Handler.vi PTH0LVINVISA Configure Serial PortKxPTH0T @BDHPDD_8TTT,~(_K'o\D_|'dt,,RR6pD,1P]X8, X(`0 , 4,3 \, , 4,3 D[, , xX4,3 Z,X , 4,3 Y, , H(4,3 |X,( , 4,3 W, , 4,3 LV, , `4,3 U,` , 4,3 T, , 7PP4,3 J ,04, K 'D|4- ?B4. 𫇺/?B|4/ gV?B|40/9YE0 0h;400h(DOIE0 0h?<5400hp0DOIE0d0!ٻ  | Instr~,1x @  1A4/X01d>ٻ1 1=/X01=1x 1@P01 ,<1 1> `P01 ;1 @ 1: 5D81 :?1 1; 081 h7 ?1 1 0 14 `41  \@?B42/ |2 < 2 7 \P420 2 < 2 El P420 |2 2 Dp ,/X420 ` | 2 X2, ̞g'm!  $,2  8 X x 2@@ tH`/ 2@@ t9P 2@@ t=/X 2@@ t>P 2@@ tFh`/X,2`2 \,2 t   22402 d,2h@ 2B4/02. tgok20 2B4P02- tL2  2B4/X02- tgpk2h 8 2B4P02- t$gpk2 X 2B4`/X02- tN2@ x242 72k2h@42 @PH2k2,2 t4 ,2P42 \w?B\|43/\,3HP 3Ph X430O3H 3430P3 3`8 8430lQ3 3\ X430R3 3TP430@.x<<t0 14> B0?x|0?@.xC 1L(801|4? B1L(?| @@.x811,@.x1G2d@1@@P1i2PFA,@2|22303`4@ B2 ix?\|4A  22 y(LB :2 z0{0{/|.}-~0B 32 x8Bh2B33B|B| B@.xB33,B.x4 ?4 hB34BO3HeJ4TAB4p444B B4 HWJ?||@C 64 We))*8Ch4 B550C|C|0C@.x:5D ~5t4C B5D*? |0D@.x?X5A~QI54D B52~A?|0E@.x=6 K[S6<4E B6 <K?|lF6789:;<<==>?@ABCDpElFhGdH`I\J<4FT7F624F87PF7F <04FS8F8994F:x9PF9DF (4F;t: F:F5D 4F< ; \F;IF 4FT >07F=kFx 84F??,PF>kF @ X4F@@(! F?IIF54FTtA$PF@KUU4FSB7FAK4FSB! FB^E^E4FTQ8>Q8>:>I?h  йo  йv  й} й йTahomaTahomaTahoma02RSRC LVINLBVW A  4 RSIDlLVSRBDPWLIviCPTMDSTMDFDSLIdsVICD vers DLDR4FPTDHCPMp\VITSpSTRGICONicl8CPCTDTHPTRec<CPSTSTR 8LIfpLFPHP`OMIdtLIbdBDHPHISTPRT FTABؤ4VPbt ]$ _P_X|%5t/5hW5[6 46D7E,]L6M0]Q4RRP\$]^^87^Tb^ ^_8T _\a _0# `@L$ `dX`[a@3ababb8\!b#b\c03cPc43d8x1d2dVeq@-?r<^@r^Ar`Bs4^Cs^Ds\Et8x6Ft-Gt_u