AnsweredAssumed Answered

AW: vrf serial interfaces, switch COM1 COM2

Question asked by VRFuser on Dec 6, 2001
Hi Stuart,

Thank you very much for your response. The advantage of reading data with
"BINARY x BYTE ARRAY :a" is speed but it gets trapped on "
" whilst this
binary read. I can't investigate the data in advance. Nevertheless thanks.
May be there is somebody else who had a similar problem and got a fast
solution
to work.


     Best regards,
__________________________________________________________
Horst Kunkel        Tel.:   49(0)711 1614-346
HANSA Metallwerke AG   FAX:    49(0)711 1614-446
IP PC 2                Mobil:  01752601133 HANSA 6671-346
email: kunkel@hansametall.com   hansa_elab@compuserve.com
__________________________________________________________


> -----Ursprngliche Nachricht-----
> Von:     Stuart Roberts [SMTP:Stuart.Roberts@siemens-datatrak.com]
> Gesendet am:     Donnerstag, 6. Dezember 2001 11:58
> An:     'Kunkel, Horst'
> Cc:     Vee Reflector (E-mail)
> Betreff:     RE: vrf serial interfaces, switch COM1 COM2
>
> Hi Horst,
>
> This might be of some help.
>
> The way it works is;
>
> Look for data on the serial port COM1.
> If data is there then read one byte at a time in to an accumulator.
> Whilst reading data I then look for "LF" (ASCII 10) if that is there then
> break.
> Also there is a TOKEN EXCLUDE to filter out the "CR&LF" characters.
>
> I hope this is of use, please let me know if it is.
>
> Best regards,
>
> Stuart Roberts
>
> Validation Analyst
>
> Siemens Datatrak Location & Information Systems Ltd
> Wiltshire House,
> County Park,
> Swindon,
> WILTS.
> SN1 2NR
>
> t       :       +44(1793)508315
> f       :       +44(1793)500101
> e       :       stuart.roberts@siemens-datatrak.com
> www     :       www.siemens-datatrak.com
>
>
>
>
> -----Original Message-----
> From: Kunkel, Horst [ <mailto:Kunkel@HansaMetall.com>]
> Sent: 06 December 2001 07:40
> To: 'Agilent reflector'
> Subject: WG: vrf serial interfaces, switch COM1 COM2
>
>
> > Hello All,
> >
> > I got no reply to my question below. Has anybody got this email? In few
> > words:
> > I only need a method to receive binary data from serial devices which
> > doesn't stop receiving when a LF is within the stream. This happens
> > after a EXECUTE CLOSE or after switching between COM1 and COM2
> > with "READ BINARY x BYTE ARRAY :a".
> >
> > A solution or at least a hint would help me very much and greatly
> > appreciated.
> > Best Regards,
> >
> >
> >
> >
>         Mit freundlichen Gren
> __________________________________________________________
> Horst Kunkel        Tel.:   49(0)711 1614-346
> HANSA Metallwerke AG   FAX:    49(0)711 1614-446
> IP PC 2                Mobil:  01752601133 HANSA 6671-346
> email: kunkel@hansametall.com   hansa_elab@compuserve.com
> __________________________________________________________
>
>
> -----Ursprngliche Nachricht-----
> Von:    Kunkel, Horst [SMTP:Kunkel@HansaMetall.com]
> Gesendet am:    Mittwoch, 5. Dezember 2001 10:23
> An:     'Agilent reflector'
> Betreff:        vrf serial interfaces, switch COM1 COM2
>
>
>
>
>
> > Hello all VEE reflectors,
> >
> > Seems that I have a serious problem with switching serial Interfaces
> from
> > COM1 to COM2 and vice versa.
> >
> > I have to read binary data from a data logging device. From time to time
> a
> >
> > lot of up to 2Mb.
> > Now the problem is that after switching from one device on COM1 to an
> > other
> > on
> > COM2 and a read with Direct IO like "READ BINARY x BYTE ARRAY :a" the
> > second task stops when the default terminator "
" is received
> > (what naturally happens within binary data sometimes) despite of the
> fact
> > that
> > the Read Terminator for all serial devices is switched to "".
> >
> > After closing VEE and restart the Application COM2 works normally. But
> > then
> > the
> > same happens when switching again to COM1 on COM1.   :o(
> >
> > The same happens when I perform a EXECUTE CLOSE with Direct IO an all
> > serial
> >
> > interfaces.
> >
> > The VEE.io and the Advanced Instrument Properties are set correctly, at
> > least in my opinion.
> >
> > To read the data within a Direct IO loop with "READ BINARY x BYTE"
> > functions
> > every time
> > but is incredibly four times slower.
> > As refernce my vee.io and the extract comERROR.vee (VEE 6.0) which I
> > generated for
> > test purposes to find out what happens.
> >
> >       Any hints???
> >
> >
> >  <<vee.io>>  <<comERROR.vee>>
> > _________________________________________________________
> > Horst Kunkel        Tel.:   49(0)711 1614-346
> > HANSA Metallwerke AG   FAX:    49(0)711 1614-446
> > IP PC 2                Mobil:  01752601133 HANSA 6671-346
> > email: kunkel@hansametall.com   hansa_elab@compuserve.com
> > __________________________________________________________
> >
> >  <<vee.io>>  <<comERROR.vee>>
>
>    << Datei: Loc_comms.vee >>
---------------------------------------------------------------------
This is the "vrf" maillist, managed by Majordomo.  To send messages to
this maillist, just email to "vrf@lvld.agilent.com".  Subscriptions and
unsubscriptions are done through the address "vrf-request@lvld.agilent.com".
If you need details, just send a message containing the text "help"
to "vrf-request@lvld.agilent.com".
---------------------------------------------------------------------

Outcomes