RSRC LVINLBVW ¨`<s9j%qN5Jܘ f%Mw8!s) ُ B~"A ?rLVINMy LabVIEW Serial.viLVINGeneral Error Handler.vi   @[error code] (0)$@@[user-defined codes].@@0ser-defined descriptions] @!error?@0[error source] (" ")@code out@0 source out6@DialogType.ctltype 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.viPOLYVISA Configure Serial Port{'t PTH07Instr _visa.llbVISA Configure Serial PortLVIN%VISA Configure Serial Port (Instr).vi   @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 outPTH0BInstr _visa.llb%VISA Configure Serial Port (Instr).vi  P6 cL P d-` cpP"@P@flg@oRt@eofudfP0String To Write p0dfd P0txd P0old P0extlP"@P@flg@oRt@eofudfP0 Read String x0dfd P0txd P0old P0extZP"@P@flg@oRt@eofudfP Bytes to ReadpdfdPtxdPoldPext^P"@P@flg@oRt@eofudfPBaud Rate (9600)pdfdPtxdPoldPextP"@P@flg@oRt@eofudfPpInstr Resource NameppInstrdfdPpInstrtxdPpInstroldPpInstrext c RP"@P@flg@oRt@eofudf P!Writep!dfdP!txdP!oldP!ext cRP"@P@flg@oRt@eofudf P!Readp!dfdP!txdP!oldP!ext cRP"@P@flg@oRt@eofudf P!Closep!dfdP!txdP!oldP!ext P PZ P$@P@0PZ P$@P@0PZ P$@P@0P 0 c c$ c c c@@P @!status @code@0sourceerror in (no error) c @pInstrVISA resource name! c@0 read buffer@byte count (0)! c@ Bytes to Read@0String To Write! c@0String To Write c c@Baud Rate (9600)@pInstr Resource Name @!Write @!Close @!Read cD c c< c< dP``` dDPH"xR^ ~*IDN? 2% ASRL1::INST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SQRVWQRUӠfd$ZY_^ZY[]ÐUl$SQRVWu F {F3F7F@FDQRhU螆fd$ZY_^ZY[]ÐXaBHH_>HH%NH=T H  5! ! B?p+)K3Umc%n*  X *D^xCODEp"KT(`q7.0b71Oldest compatible LabVIEW.KJpJJpPPP@0String To Write@0 Read String@ Bytes to Read@Baud Rate (9600)@pInstr Resource Name @!Write @!Read @!Closeexample finder@0xml text instrument,control,serial Hardware Input and Output\Serial NI.LV.ExampleFinder@0xml text LabVIEW <-> Serial.vi The Simple Serial VI performs a Serial Port Read, a Serial Port Write, or closes the serial port, or a combination of these actions. The user selects the actions (read, write or close) on the front panel. control instrument serial 3113 LabVIEW LabVIEW Localized$@0TagNameLocalizeNI.LV.ALL.VILastSavedTarget0DfltNI.LV.ALL.goodSyntaxTargets&@0DfltThe Simple Serial VI performs a Serial Port Read, a Serial Port Write, or closes the serial port, or a combination of these actions. The user selects the actions (read, write or close) on the front panel.%d%d"(Q.QPp ?*0BTр'eQEQcDр 4DTHPDLJ88 , 3~ @0 Read String$@0String To Write 7   @[error code] (0)$@@[user-defined codes].@@0ser-defined descriptions] @!error?@0[error source] (" ")@code out@0 source out6@DialogType.ctltype 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 outF6@P @!status @code@0source error out*@pInstr Resource Name"@ Bytes to Read:*@pInstrduplicate VISA resource nameL@@P @!status @code@0sourceerror in (no error)! @!Read(@0[exception source] @!Write @!error?&@[exception code]*@flow control (0:none), @xception action] (none:0)*@stop bits (10: 1 bit)>.@@0ser-defined descriptions]0$@@[user-defined codes]&@[error code] (0)@0messageF6@DialogType.ctltype of dialog (OK msg:1) @byte count (0) @0 read buffer"@ return count @0 source out @!Close@code out.@0[error source] (" ")   @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, @pInstrVISA resource name @timeout (10sec)4(@"termination char (0xA = '\n' = LF), @!Enable Termination Char (T)&@baud rate (9600)&@Baud Rate (9600)"@ data bits (8)<0@NoneOddEvenMarkSpaceparity (0:none)*@0write buffer ("")0lV,DDDDDDTDDTd|DD0\0tDTd (T @ l    4 T  D  D7^i7^iNote: Default parameters are used for the serial port setup. This includes 8 data bits, 1 stop bit, no parity, and no flow control.HD$J HD$J  D  Select 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.QD55WritePD?L4?L4ReadQD55Close[D%n&nString To WriteH,J)/*/WD@%M^@&M^ Read StringHĚJU*/U+b/YDXOeXPe Bytes to ReadYD3@F3@F Resource NameHJLZsL Ys\D:Gh:GhBaud Rate (9600)D<=iiIf the VISA Session is not closed when communications are finished, non VISA communications with the port may not be possible.HD$ _D " "Read bytes at port.bClose session to port.RE True RE True RE True HD(JHDPJU oV oHDhJ k ldD:<General Error Handler.vifDVISA Configure Serial PortOFFONOFFONOFFONOFFONOFFONOFFON Analog Input) |@"@4< :72#My LabVIEW Serial.vierial.vi$FPHPMy LabVIEW Serial.vi" FPHP쌐J8#(! Rz",  0 d$2|0 D|0L d|X4 6_jKXL "LX(<7<  fKJ<  fKhJ,   @ , @L|0ChX+Specifies the baud rate of the serial port.Serial baud rate.|0DK 4 K|||&|4 G6K0 4V1l|02R  .a .` .a . . 8hBR  5Y <_ <^ <_ A A |'x4 Gt>M5K0 4tVe}1l0 t |8 htBpR tP .aP .`P .ah y. h y. 5tYP <_P <^P <_h A h A 0 4V1l | |'4 G6K8 hB pR  .a .` .a .  . 5Y *<_ *<^ *<_ A  A 0  4 4 Q$4 4B,  0 d 4 F d $oK8 h dBT4 2 d (0K0  d $4d4 Q?$4 H,  ` (4 F  ?$N_K8 h BT4 2 T)0K0  P%4d@PWA0M@!\4 F  WNf Kp 4  0gAsMcgAsMcgAsMcp 4  sAMbsAMbsAMbL :  lP{V0u0/.-0  hLd8h BR @PB9 _iTL@-n8UX2_L,h4 F Q2AGHK< 2 K[tK <OA|0 7 J[pH@ 2O Kt[mmn0  F_dp 2+  G^uG^uG^u8h BT8hBT4 F 9HiK0  H_Jd8hBR p 4 0G ScG ScG Scp 4 S _bS _bS _bL : L[0u0/.-4 ;dK<  ftjyKTJ,0d`If this is selected, the data in the String to Write control will be written to the serial port.Write data to serial port?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?jIf selected, the VI will close the VISA session opened to the port indicated in the Resource Name control."Close VISA session to serial port?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.TA 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.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. 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.,T48 2 lP{~KKܬ,8d8 2 L[FKKXX QF_DW$  <O>A3<O 4*AP5~p"8JԆJLJ/_AKp3zD0 ,LT<X 40 ,LT!";i 1;i 1;i 1;i 1;i  1;i L  4X` BDHPMy LabVIEW Serial.viLVINGeneral Error Handler.vi3pPTH0LVIN%VISA Configure Serial Port (Instr).vi<0PTH0POLYVISA Configure Serial Port<0PTH0P BDHP2p J8P;4SzP(,C B:0D3D0@M4 B#cK0@44 B3cLK4!.7 !04D(@P 0H4!!P'0P  0@DdX4 BXcK4@ X<0. t$4 B9cK B<; l4/8P"40<O",|L || -\408Q"40P" )Xll40J L O8<K )$40(9  40pI  0@p Qqa` <t Bd;4/@T  <H0@T0 h 40 @/40 t.  040 -  P40 ,  $$40 T+ h   H  Dd  40 )   D $40 D*  $PDdlP < Bh;4DP4tDP @@ x; B-\;lPX,D$t+%$"\"94DCx)4 J7 Bl8 ;d @@;4 8DcK0@p,XSsc4 B<cK4 DCH*87   l#4 /!P  p   d4 @DH%,P  < ,  x`0 !4  P0 !$H ! B$ ; F  F4  HP4 @ #chK!8<4! !cĽK" <P0"- x \ X",D$+U%O%8Y" p !0 "B< AX",D,+K%E.<0y4"d","X,"NLO0" +" 80". "Bd0"8N<"$1P 4K #<  #B# #@@0`0#-BKF #BddA0#-p #Bd4; #B)$4;4#8+,P# #BA#0 #@@ A #BA#d #BddA0#- #B)XA#l #@@.4;4# ,7 #@@.hA0#- x< 4#Dl17 #8l0#-"LUP #@@ ;,#84#DD 7 0#-NBKF#l#,# ,#ExEE 0#\#@0#. #Bl0#@EL<#$1P 4DK $Bt$t $@@0 $BllhA$  $BhA$ H $@@ hA0$-,0$- $Bl8; $BD;$$ $@@;H$  $BllA $@@ xA0$-LUP $B <A $@@A4$@DP $#0 $!0$8 $"$4$0  $h" $P $###,$!l#,$ x( #d $B<"\! $B"\"$!""< $@@ x0"\"<0$. x" 1%<$$1 xP 4ԼK 4%0  4%0 4%!$,&P!%#0h0%- x!l %B< #A %B#0#A %@@ x:#A%#% p#,%" P#,%"< #4%@D t7,%H$ <,%h %%D0%@p0`&#&4% B&cHKH&#0H&0&@p0'xTtd'4& B'xTpc K0'@p0 4'j( z( 4' B' jcK(P((L4(8(Gh74(8)FP( a(,c('x,(d(F(0 zv v,(0lt(8PP4(8 x-7(-\F,(44(DCJP4(DCIl7(h(&(_t>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