RSRC LVINLBVW x`<@I3M*CA!) ViE1qُ B~@0ُ B~KFGY؇wX e1~dkH~i  LVINRDASTelemCalcRes.viVIVI%VISA Configure Serial Port (Instr).viPTH0BInstr _visa.llb%VISA Configure Serial Port (Instr).viVIVIReadOneFrame.viPTH0,e80DesktopE80 VIsReadOneFrame.viVIVIAnalyzeFrame.viPTH0,e80DesktopE80 VIsAnalyzeFrame.viVIVIVoltToResist.viPTH0,e80DesktopE80 VIsVoltToResist.viVIVISimple Error Handler.viPTH06Utility error.llbSimple Error Handler.viVIVI"Write To Spreadsheet File (DBL).viPTH0@Utilityfile.llb"Write To Spreadsheet File (DBL).viVIPVVISA Configure Serial PortPTH07Instr _visa.llbVISA Configure Serial PortVIPVWrite To Spreadsheet File.viPTH0:Utilityfile.llbWrite To Spreadsheet File.vi . 000  00 00 00 8 8000( 8(000 08 0 8 00080(( ( ( ( ( 88 0 00000xWiLU>ހ"jVh2,,uC(D6 iLKlLk1F#nFJ[[n4jb? D/a彙a@@oo{={ϙGDlj;y{|<|&#DK@t#p.D'Sh3~JVЯd!1"&9|46/J>qpi`,S.d"liNs.5򚯞%ʛ隚jnsHhjY;Pc-=06h\zڤ(` @4RleZgG %SZnE)Ov;hrvF./3t4ƨMX/ Wj҄Sc;GvTϷq}.XygVY499S盱qR/д ՗~;>\ U!w Y.p<ֿ7YziW@,HYh+BrE\HQ-BoA㍪v5 HLp|g%uw8&l%G(zsfʆ;w(W]۴R)'tÂY.XS*Jׂź̪!EŇ0׽ |& cMz֍3ưnm.kYbB蚬TL5x3 5xtcz]mi M,hsŵnW~ # 0l~!K^6נ= JWrWZWZo豗7AUj2ewbu=rWgsߟq ~<3F+sԪ{sȜWy8O jQ;`#yԥ$סҥ[mpڐt#Ab}qqv/T~s9oz\'=uc0\kO"I; ^ }OywZ\xUώ-[z;a_ 䜨WQI85QF4C?._6 T]uyXYOMmJ68Z6NMPTjͺ_v8_?q!a,­5_hxU,*[w}#4}^=dxÎlƊ#9cA1cS{}0uf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,Hw݈|R WL$~ ot*`r>_smlDXY]"pp1mtlZMF}xj9x L;?[Nbe%#+L2xkzim1nU 4;yyCş_ϯcwy4i]*!ϐM飓TBR;eĭ0I]JJ3=#dEhP2ӓ O`C^@ވ2ғA^ B o֓7mm7 U[I.^3 M aH7/vYs .y2RyD*kTf̰RYk1|ɳgg{݆gGͧ n@0}l'yȒ8k$]o.OA|*R?z^+0|@' b!7:%S"T7Fzt-ml4Df̶yeTcmq.uCs$?o/lh3-ĵfejq6w<OQpHf3%LfμYVL:yl=#wy'!OVu[,Xg۳CO~@1b>Qo?1Vݧc`c)4޾lMU-a%b\Qٹk*RDP,5@+pawKt{:xc0o`:f)⤖[#u$MmҖw+qİ~Dg8(:sA?tw[ _:kPwı4'@ˁ A:ۆ_W7p{}YУ0:P[J@t wv}=m&]lׇإG71x S Am05loԛ LW _4y(ӳ@?z0`zGk#Yc +`{`4oŻ+[1L1~]X>lkNdl~_'ٜo'9@>q4oNrzvӉi\NOrzgGB?V{?x岽+@Th /xfBkx[:_}s9ߟ&ꯠC++`dUbS)*T猄ScRJRFg9kHΤ.6*wkxh3|3~=#4#&ody_SӼ佗?s♫gnLR7@kWcf fgyf}ss~>Ҭ?ϊ/XVpfo>{d¯R[4E?)zhybks\ŷ{׋g|ɒJ]9;786x^ݼ捛n_XZ^N]p߂. mm mE/zf;FQ_ŗ/(JI]ů.~{%ZryIjk=I+R_]t[Y"ġxE `8.6AnalyzeFrame.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. 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. 1DIJ!4NQI1@ U]"! @  ##################################### "FPHPRDASTelemCalcRes.vi pt pzrz 5{5 `}` CPCT `R`T` classString`0?*::(INSTR|SOCKET) displayFilter` typeClass`0Instr@xZ lǕ].e,YC[Kuiˎ%˱!ԉk9l%JdE$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5KN>`9$_ƮC9׶w'-c n1W`\¼gcJX|czruX 2Ҳ{^$ex!+b"rҷ*Zh%p"v9_sFnQ9^RZ$tt,J1MSɌ> :*clJ4~J8)b4ȸ"S=_|B#&';< q? qI)i4!>ϣ /;99HfKa=8HKn8-5dߙ}|h;!^^pce51y<3(2UGu+i;QbW 0y7\׹_q?Co"ז%ԁ:\LmUMaP3)4?$K|Ϧ~ Oy7h50WիWF!T |Π5pm@{j*kjO!OC=mpg=? /kM8jF'QruУ }5BM(u}N. 1.*NwVּ%K([bγ c7|mA_GN \W a='JY_hl : u0R 5:

Cڜ6u 6܈v"! :;аa~岃|mk`ZНssg ߪ!mA{UM+ h=i o*W<7w3f$`A3V@D{7 sS@jA7Kq{1zc=LYK;k_tPo=bz7bUtility error.llbSimple Error Handler.vi PTH0PUPVVISA Configure Serial PortPTH07Instr _visa.llbVISA Configure Serial Port7PTH0IUVI%VISA Configure Serial Port (Instr).viPTH0BInstr _visa.llb%VISA Configure Serial Port (Instr).vi7PTH0IUVIReadOneFrame.viPTH0,e80DesktopE80 VIsReadOneFrame.viJPTH0IUVIAnalyzeFrame.viPTH0,e80DesktopE80 VIsAnalyzeFrame.viPTH0IUVIVoltToResist.viPTH0,e80DesktopE80 VIsVoltToResist.viPTH0PUPVWrite To Spreadsheet File.viPTH0:Utilityfile.llbWrite To Spreadsheet File.viPTH0IUVI"Write To Spreadsheet File (DBL).viPTH0@Utilityfile.llb"Write To Spreadsheet File (DBL).viPTH0.x} `U{[DyAv"hq@!IpEI5֥Vkۯmj-~uŭbkE.mxI޽󝙻ݛ47̙39:*6o\ŞU\#eT+k@d ,` H;Ax6spLS-M5 ͛F':IU21Om[AIa:*ı<G]5NXgB<؍'"mr!'C^ddr C[ش%ZU1jpYKFِFceSmѫm oXH/ciSP:mfڼZq`"ϰ4H?GUu T5)t]yș&F\$Cۦq l~n D.MspllB$f 4Q1>d&y]ڴ.3x8$TTUh)(YE~d(}Qq; 0iH|o $*Xx5tftH[(~ļju׺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GU=xW>}#!G!D?C Th xQThq'j4 i66& DA.Ek-+'~"p_H*/t*H4ͦ` ! \$rH{4r$icw:i OK] Ka<~?P|?kGŇ|w{ZF~ ". -+ @&#%~$]+d|PXDCڢIaI0NYgr;(O6:St:^e83yȕu{-k |b=>E-Y7SWbe:<1)ng$,B,kG"j+ ,pB 1~DoWaMW`5\RhZ= C^KQ#iSJ } H\Fy% nԇW_i7iUz>BE3kt#lط^.{ƓP/űQsTөt% ZkqV_ A\O^,Ր _0&s^ tǂxr ֛t*J`rE4TB[%%"E|mFhGg=Ѡ/hG7؜)(g$F4u܉R4 H9~^ϴ(b5&r~/QTF 8ֈ[6-߱U"ܠAhZnHijW0]EXEԐvF}205G /q s ? B^`Q2 a=5}ne|א` }WN0}~H!<뭋4Ul6-09nyt$LMiY8|XB{u{ǥE%va}[)R:b+QkgUMWGFOtdt@ $c,>R+I6 '6_2.ChfIL _0Q-E`$FQ_qVͤa6'bk#/}#202Vɬe8c9~ " <Ӵ>c u^C/ب!j5רj܏Rm' ed|y2'1l/j#CYf{u(ŹHT)2u% G!J6E? z=YO䓔eCڡP(O!Di.y/@1"Pč%/c 8C?^ߒ\wx$ *+e","Kar91YM4G;hlm!~ }i>7,eeqr/ԢT䝴D©Vc|eyDyU\unw#fb3qD#}1%¾' ׅ{/d/CHه/#P^-R1_k4 CnfB1|"na]-Y }|s(+\d; F i Q4ZJY4/nOhA|n3q.N:i-t fI"ڌfB{S?:x[[Es-b/J[£\mtnnhñ4&*\'~.^^oVor^OeagJnXէ1㺌#Mp{% T>>XF Ju)ɫ k]IX> ‰[^yqO}_;⺎g;ޗސv)/_JD)W$ϣk/ϥ >u%g %*NQztK$-=C"2}W5BY D9~+p\ap9O:Kx.99}trl$kSqz6z8;szxjjAqUt~Rە$8t cydp* 5 zJ :=$ 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. 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. communication instrument serial transmitters receivers handshaking control visa write read RS-485 RS-232 3113 4290 LabVIEW LabVIEW LabVIEW AllSerial PCI-232 PCI-8430 PCI-8432 PXI-8420 PXI-8422 PXI-8430 PXI-8432 PCMCIA-232 AT-232 USB-232 ENET-232 PCI-485 PCI-8431 PCI-8433 PXI-8421 PXI-8423 PXI-8431 PXI-8433 PCMCIA-485 AT-485 USB-485 ENET-485 NI.LV.ALL.VILastSavedTarget`0DfltNI.LV.ALL.goodSyntaxTargets`0 @Dflt Localized`&@0Localization Status (string)Localize P(IUUAn Q8>Q8>:>:>I? :xX |U&l6ImI86-&MbEEtw T>YEQ}@('VIQ@R E}~3{{{i5IM5R%2Ƞ׺x;%o:f.8DZj܂Mfd3j n\hfm?ڹ\c. ͅ3&V E{[1G*ӓ}nG2t2?V&-\-쩜ہc^Օ!Yfũ1g Jf u[&+:\lv'j',Na uY+xuK&`Los9ȸ;jfY˔q 6ɧS̙'|x͒$YYe^orU=`#Bi@ 0LCxNGnZA+ ZEgB9U@Rq=|ݥrQӥȖaǦ& 6$m>9d*!{8wv9'<~9l@85:)uʹuǒiHNnn "魣sTJu8ch~֮jo(PթamrB(:Q I2I΍Ԉ׈3@N9Kt>]L|MzP=JoZƩ|lUf9d^(Ke}XtlA"DURRRRgK9Bϣ-|XKDdؐ ы\[!W ?8@" ,,Q1M'e[{;x68yӕ=z%\}/g9/ɣI٠QFVTdBj|@)PrJz jp!ZH $KMR`K)c%,@앂)B2 $Ѡ̹J @\GR.B/UPuGt fNQ\AJ`Bz-A)һIj-;VY5 *{ESyOi*zR\Ao&wQ{e*+ޥ(Eng4\αג%`-{m9kgnz>@GQN:b\wVrΞ0˔J%ǧLe/,BJ>F(ؓ~f]B 8g_%<>ϼҧ,' N7gЎ0<%@e|_M|+䣾vQ{cLb`B؉R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