AnsweredAssumed Answered

vrf hhhmmmmmm

Question asked by Dr_joel Employee on Sep 21, 2005
Latest reply on Sep 21, 2005 by Dr_joel
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><HTML><HEAD><META http-equiv=Content-Type content="text/html; charset=us-ascii"><META content="MSHTML 6.00.2900.2722" name=GENERATOR><STYLE></STYLE></HEAD><BODY bgColor=#ffffff><DIV dir=ltr align=left><SPAN class=728550918-22092005><FONT face=Arial color=#0000ff size=2>Hello all, </FONT></SPAN></DIV><DIV dir=ltr align=left><SPAN class=728550918-22092005>    <FONT face=Arial color=#0000ff size=2>Well, it's nice to see someone else have the same problem as I had, several months ago.</FONT></SPAN></DIV><DIV dir=ltr align=left><SPAN class=728550918-22092005><FONT face=Arial color=#0000ff size=2>In that situation, I was reading using the STR in several transactions.  When all the transactions were in the same Direct I/O box, everything worked correctly.</FONT></SPAN></DIV><DIV dir=ltr align=left><SPAN class=728550918-22092005><FONT face=Arial color=#0000ff size=2>When I separated them into different I/O boxes I got problems.  I was reading characters without a CR/LF in the batch (big strings of ascii data).</FONT></SPAN></DIV><DIV dir=ltr align=left><SPAN class=728550918-22092005><FONT face=Arial color=#0000ff size=2></FONT></SPAN> </DIV><DIV dir=ltr align=left><SPAN class=728550918-22092005><FONT face=Arial color=#0000ff size=2>My conclusion:  the read str reads 1024 characters (as stated below) and buffers them up.  If you pick out less than 1024, the buffer is still there for the next transaction, so no harm.</FONT></SPAN></DIV><DIV dir=ltr align=left><SPAN class=728550918-22092005><FONT face=Arial color=#0000ff size=2></FONT></SPAN> </DIV><DIV dir=ltr align=left><SPAN class=728550918-22092005><FONT face=Arial color=#0000ff size=2>But, if you go to a different transaction box, the buffer must be cleared, so your next read picks up the 1025th character. </FONT></SPAN></DIV><DIV dir=ltr align=left><SPAN class=728550918-22092005><FONT face=Arial color=#0000ff size=2></FONT></SPAN> </DIV><DIV dir=ltr align=left><SPAN class=728550918-22092005><FONT face=Arial color=#0000ff size=2>I completely agree with Warren:   Read Str == bad thing</FONT></SPAN></DIV><DIV dir=ltr align=left><SPAN class=728550918-22092005><FONT face=Arial color=#0000ff size=2></FONT></SPAN> </DIV><DIV dir=ltr align=left><SPAN class=728550918-22092005><FONT face=Arial color=#0000ff size=2>Joel</FONT></SPAN></DIV><BR><DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left><HR tabIndex=-1><FONT face=Tahoma size=2><B>From:</B> Kjeld Alexander [mailto:k.alexander@get2net.dk] <BR><B>Sent:</B> Thursday, September 22, 2005 1:54 AM<BR><B>To:</B> VRF<BR><B>Subject:</B> Re: [vrf] hhhmmmmmm<BR></FONT><BR></DIV><DIV></DIV><DIV><FONT face=Arial size=2>Thanks Warren I needed that !</FONT></DIV><DIV><FONT face=Arial size=2></FONT> </DIV><DIV><FONT face=Arial size=2>Thinking I was going mad !</FONT></DIV><DIV><FONT face=Arial size=2></FONT> </DIV><DIV><FONT face=Arial size=2>I will wait 24 hour to see what others have to say.</FONT></DIV><DIV><FONT face=Arial size=2></FONT> </DIV><DIV><FONT face=Arial size=2>Kjeld</FONT></DIV><DIV><FONT face=Arial size=2></FONT> </DIV><DIV><FONT face=Arial size=2></FONT> </DIV><BLOCKQUOTE style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">  <DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>  <DIV   style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>   <A title=Warren.Pickles@tycoelectronics.com   href="mailto:Warren.Pickles@tycoelectronics.com">Pickles, Warren</A> </DIV>  <DIV style="FONT: 10pt arial"><B>To:</B> <A title=vrf@agilent.com   href="mailto:vrf@agilent.com">VRF</A> </DIV>  <DIV style="FONT: 10pt arial"><B>Sent:</B> Thursday, September 22, 2005 9:40   AM</DIV>  <DIV style="FONT: 10pt arial"><B>Subject:</B> RE: [vrf] hhhmmmmmm</DIV>  <DIV><BR></DIV>  <DIV><FONT face=Arial color=#0000ff size=2><SPAN   class=752053207-22092005>Kjeld,</SPAN></FONT></DIV>  <DIV><FONT face=Arial color=#0000ff size=2><SPAN   class=752053207-22092005></SPAN></FONT> </DIV>  <DIV><FONT face=Arial color=#0000ff size=2><SPAN class=752053207-22092005>I   see what you mean.  Defintely something iffy going on.  Try it with   C:WINDOWSMedia     ada.wav (because chances are we all have that one).    Now b, c, d show the 5th, 6th, 7th bytes but e shows something else   altogether.  Once again, replacing READ TEXT with READ CHAR fixes   it.</SPAN></FONT></DIV>  <DIV><FONT face=Arial color=#0000ff size=2><SPAN   class=752053207-22092005></SPAN></FONT> </DIV>  <DIV><FONT face=Arial color=#0000ff size=2><SPAN class=752053207-22092005>I   think it's one for Agilent.</SPAN></FONT></DIV>  <DIV><FONT face=Arial color=#0000ff size=2><SPAN   class=752053207-22092005></SPAN></FONT> </DIV>  <DIV><FONT face=Arial color=#0000ff size=2><SPAN   class=752053207-22092005>Regards,</SPAN></FONT></DIV>  <DIV><FONT face=Arial color=#0000ff size=2><SPAN   class=752053207-22092005>Warren</SPAN></FONT></DIV>  <DIV><FONT face=Arial color=#0000ff size=2><SPAN   class=752053207-22092005></SPAN></FONT> </DIV>  <DIV><FONT face=Arial color=#0000ff size=2><SPAN   class=752053207-22092005></SPAN></FONT> </DIV>  <BLOCKQUOTE>    <DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma     size=2>-----Original Message-----<BR><B>From:</B> Kjeld Alexander     [mailto:k.alexander@get2net.dk]<BR><B>Sent:</B> 22 September 2005     07:52<BR><B>To:</B> VRF<BR><B>Subject:</B> Fw: [vrf]     hhhmmmmmm<BR><BR></FONT></DIV>    <DIV><FONT face=Arial size=2>Hi guys,</FONT></DIV>    <DIV><FONT face=Arial size=2></FONT> </DIV>    <DIV><FONT face=Arial size=2>Nobody comment on this !!!!!!!!</FONT></DIV>    <DIV><FONT face=Arial size=2></FONT> </DIV>    <DIV><FONT face=Arial size=2>>>Data on b,c,d and e are (Probed)     84,90,153 and 0, it indicate that only 4 byte are read. I still do not see     any reason why it should go wrong</FONT></DIV>    <DIV><FONT face=Arial size=2></FONT> </DIV>    <DIV><FONT face=Arial size=2>As I see it , having the correct data  on     b,c,d and e indicate that only 4 byte are read in the first READ     transaction. If not, what am I missing ???????</FONT></DIV>    <DIV><FONT face=Arial size=2></FONT> </DIV>    <DIV><FONT face=Arial size=2>Please explain attached</FONT></DIV>    <DIV><FONT face=Arial size=2></FONT> </DIV>    <DIV><FONT face=Arial size=2></FONT> </DIV>    <DIV>----- Original Message ----- </DIV>    <BLOCKQUOTE     style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">      <DIV       style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>       <A title=Warren.Pickles@tycoelectronics.com       href="mailto:Warren.Pickles@tycoelectronics.com">Pickles, Warren</A> </DIV>      <DIV style="FONT: 10pt arial"><B>To:</B> <A title=vrf@agilent.com       href="mailto:vrf@agilent.com">VRF</A> </DIV>      <DIV style="FONT: 10pt arial"><B>Sent:</B> Wednesday, September 21, 2005       11:39 AM</DIV>      <DIV style="FONT: 10pt arial"><B>Subject:</B> RE: [vrf] hhhmmmmmm</DIV>      <DIV><BR></DIV>      <DIV><FONT face=Arial color=#0000ff size=2><SPAN       class=890002709-21092005>Kjeld,</SPAN></FONT></DIV>      <DIV><FONT face=Arial color=#0000ff size=2><SPAN       class=890002709-21092005></SPAN></FONT> </DIV>      <DIV><FONT face=Arial color=#0000ff size=2><SPAN       class=890002709-21092005>If you're trying to read WAV files why not try       Georg Nied's program posted a few years ago.  Search the archive for       "WAV File Library".</SPAN></FONT></DIV>      <DIV><FONT face=Arial color=#0000ff size=2><SPAN       class=890002709-21092005></SPAN></FONT> </DIV>      <DIV><FONT face=Arial color=#0000ff size=2><SPAN       class=890002709-21092005>Regarding your question, I agree it looks like       the two displays should match.  But does "READ TEXT X STR MAXFW:4"       read only 4 bytes?  Might it not read until it gets "
", or       something like that?  Try changing that to "READ BINARY X BYTE       ARRAY:4".  Bet it works.  Alternatively "READ TEXT X CHAR:4"       ought to work as well.</SPAN></FONT></DIV>      <DIV><FONT face=Arial color=#0000ff size=2><SPAN       class=890002709-21092005></SPAN></FONT> </DIV>      <DIV><FONT face=Arial color=#0000ff size=2><SPAN       class=890002709-21092005>Regards,</SPAN></FONT></DIV>      <DIV><FONT face=Arial color=#0000ff size=2><SPAN       class=890002709-21092005>Warren</SPAN></FONT></DIV>      <BLOCKQUOTE>        <DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma         size=2>-----Original Message-----<BR><B>From:</B> Kjeld Alexander         [mailto:k.alexander@get2net.dk]<BR><B>Sent:</B> 21 September 2005         10:15<BR><B>To:</B> VRF<BR><B>Subject:</B> [vrf]         hhhmmmmmm<BR><BR></FONT></DIV>        <DIV><FONT face=Arial>Hi,</FONT></DIV>        <DIV><FONT face=Arial></FONT> </DIV>        <DIV><FONT face=Arial>Can anyone tell what is wrong with this "picture"         !</FONT></DIV>        <DIV><FONT face=Arial></FONT> </DIV>        <DIV><SPAN style="FONT-SIZE: 13px; COLOR: #626262"><FONT face=Arial         color=#000000 size=3>Should'nt there be a relationship between data in         the to displays. (besides the first 8 byte )</FONT></SPAN></DIV>        <DIV><SPAN style="FONT-SIZE: 13px; COLOR: #626262"><FONT         face=Arial></FONT></SPAN> </DIV>        <DIV><SPAN style="FONT-SIZE: 13px; COLOR: #626262"><FONT face=Arial         color=#000000 size=3>Also the file size are different 10050140 comp. to         8+100+10049015 = 10049123</FONT></SPAN></DIV>        <DIV><SPAN style="FONT-SIZE: 13px; COLOR: #626262"><FONT         face=Arial></FONT></SPAN> </DIV>        <DIV><SPAN style="FONT-SIZE: 13px; COLOR: #626262"><FONT         face=Arial><FONT color=#000000><FONT size=3>File size seems to have an         influence</FONT></FONT></FONT></SPAN></DIV>        <DIV><SPAN style="FONT-SIZE: 13px; COLOR: #626262"></SPAN> </DIV>        <DIV><SPAN style="FONT-SIZE: 13px; COLOR: #626262"><FONT face=Arial         color=#000000 size=3>Best regards</FONT></SPAN></DIV>        <DIV><SPAN style="FONT-SIZE: 13px; COLOR: #626262"><FONT         face=Arial></FONT></SPAN> </DIV>        <DIV><SPAN style="FONT-SIZE: 13px; COLOR: #626262"><FONT face=Arial         color=#000000 size=3>Kjeld Alexander</FONT></SPAN></DIV><BR>--- <BR>You         are currently subscribed to vrf as: Warren.Pickles@tycoelectronics.com         <BR>To subscribe send a blank email to         "join-vrf@it.lists.it.agilent.com". <BR>To unsubscribe send a blank         email to "leave-vrf@it.lists.it.agilent.com". <BR>To send messages to         this mailing list, email "vrf@agilent.com". <BR>If you need help with         the mailing list send a message to "owner-vrf@it.lists.it.agilent.com".         <BR>Search the "unofficial vrf archive" at         "www.oswegosw.com/vrf_archive/". </BLOCKQUOTE><BR>--- <BR>You are       currently subscribed to vrf as: k.alexander@get2net.dk <BR>To subscribe       send a blank email to "join-vrf@it.lists.it.agilent.com". <BR>To       unsubscribe send a blank email to "leave-vrf@it.lists.it.agilent.com".       <BR>To send messages to this mailing list, email "vrf@agilent.com". <BR>If       you need help with the mailing list send a message to       "owner-vrf@it.lists.it.agilent.com". <BR>Search the "unofficial vrf       archive" at "www.oswegosw.com/vrf_archive/". </BLOCKQUOTE><BR>--- <BR>You     are currently subscribed to vrf as: k.alexander@get2net.dk <BR>To subscribe     send a blank email to "join-vrf@it.lists.it.agilent.com". <BR>To unsubscribe     send a blank email to "leave-vrf@it.lists.it.agilent.com". <BR>To send     messages to this mailing list, email "vrf@agilent.com". <BR>If you need help     with the mailing list send a message to "owner-vrf@it.lists.it.agilent.com".     <BR>Search the "unofficial vrf archive" at "www.oswegosw.com/vrf_archive/".     <BR>--- <BR>You are currently subscribed to vrf as:     Warren.Pickles@tycoelectronics.com <BR>To subscribe send a blank email to     "join-vrf@it.lists.it.agilent.com". <BR>To unsubscribe send a blank email to     "leave-vrf@it.lists.it.agilent.com". <BR>To send messages to this mailing     list, email "vrf@agilent.com". <BR>If you need help with the mailing list     send a message to "owner-vrf@it.lists.it.agilent.com". <BR>Search the     "unofficial vrf archive" at "www.oswegosw.com/vrf_archive/".   </BLOCKQUOTE><BR>--- <BR>You are currently subscribed to vrf as:   k.alexander@get2net.dk <BR>To subscribe send a blank email to   "join-vrf@it.lists.it.agilent.com". <BR>To unsubscribe send a blank email to   "leave-vrf@it.lists.it.agilent.com". <BR>To send messages to this mailing   list, email "vrf@agilent.com". <BR>If you need help with the mailing list send   a message to "owner-vrf@it.lists.it.agilent.com". <BR>Search the "unofficial   vrf archive" at "www.oswegosw.com/vrf_archive/". </BLOCKQUOTE><BR>--- <BR>You are currently subscribed to vrf as: joel_dunsmore@agilent.com <BR>To subscribe send a blank email to "join-vrf@it.lists.it.agilent.com". <BR>To unsubscribe send a blank email to "leave-vrf@it.lists.it.agilent.com". <BR>To send messages to this mailing list, email "vrf@agilent.com". <BR>If you need help with the mailing list send a message to "owner-vrf@it.lists.it.agilent.com". <BR>Search the "unofficial vrf archive" at "www.oswegosw.com/vrf_archive/". <BR>---<BR>You are currently subscribed to vrf as: rsb@soco.agilent.com<BR>To subscribe send a blank email to "join-vrf@it.lists.it.agilent.com".<BR>To unsubscribe send a blank email to "leave-vrf@it.lists.it.agilent.com".<BR>To send messages to this mailing list,  email "vrf@agilent.com".  <BR>If you need help with the mailing list send a message to "owner-vrf@it.lists.it.agilent.com".<BR>Search the "unofficial vrf archive" at "www.oswegosw.com/vrf_archive/".</BODY></HTML>  

Outcomes