Dear all !
Firstly I'm using labview 6.0 for 5 days so I'm not yet skilled ( I
hope that one day I will be ). I have a program which should talk to
the serial port and read from it . Thermometer Lakeshore 201 is
connected to the serial port. I have looked into the manual of
Thermometer and there I have found a qbasic program which is doing a
same thing I wont to do in labview . There I have found a parameters
to configure a VISA serial port . But the program which I wrote is not
working . It is giving me all the time just zero . I don't know what I
have done badly . I check also this small program in qbasic and it is
working well. labview is not giving me any error , but result is
always zero. I have looked for any possible explanation but without
succe
ss ( But I'm a mere novice) . Special commend for an instrument
is WS . That I have found as well in the manual .
Any help would be greatly appreciated
Regards
Alexandra
STARTUP: OPEN "COM1:300,O,7,RS" FOR RANDOM AS #1
PRINT "TYPE 'QUIT' TO EXIT"
RESTART: PRINT
INPUT "ENTER COMMAND"; A$
IF A$ = "QUIT" THEN GOTO FINISH
A$ = A$ + CHR$(13) + CHR$(10)
PRINT #1, A$;
R = INSTR(A$, "W")
IF R = 0 THEN GOTO REJUMP
FOR Z = 1 TO 500: NEXT Z
LINE INPUT #1, B$
PRINT B$
REJUMP: GOTO RESTART
FINISH: CLOSE #1
END