Hi all,
I have to convert an old pascal program using serial in labview, but I 'm not good with serial, so I need help.
The Code in Pascal is:
with reg do
begin
writeln(' fichier de travail: ',nom);
ah:=$00;
dx:=$01; It is initialisation of the serial
al:=$A3;
Intr($14,reg);
writeln('Attente de donn‚es');
repeat
ah:=$02;
dx:=$00;
intr($14,reg);
until ah=0;
repeat
ah:=$02;
dx:=$00;
Intr($14,reg)
until al=4;
writeln(' R‚
ception of datas:');
Chaine:='';
data:=0;
k:=0;
Somme:=0;
SommeCarre:=0;
repeat
inc(k);
repeat
ah:=$02; this code is my problem
dx:=$00;
Intr($14,reg);
if al=4 then begin
{$r-}
Val(Chaine,Intensite,Erreur);
chaine:='';
{$r+}
End;
if (al<>13) and (al<>10) and (al<>32)
and (al<>0) and (al<>4) then Begin
chaine:=chaine+chr(al);
end;
until al=4;
So if anyone can convert to labview this code, it will be helpfull for me.
My problem is the reception of data
Great thanks.
Greg S.
CNRS
LV 7.1 8.2 8.6 2009 2011 2012 2013 2014
LPMC - CNRSN'oubliez pas de complimenter cela fait toujours plaisir.