LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Communicating with digital multimeter MAS-345

Hi,
I have got a special problem with the digital multimeter MAS-345. Perhaps
anybody has some experience with it?!
I would like to get the value on the display (i.e. the temperature) into
LabVIEW through the serial RS232 port. I have an example Basic code, which
works. Perhaps someone can "translate" the code into labview and send me a
vi. Here is the code:

10 Open"COM2:600,N,7,2,RS,CS,DS,CD" AS#2
20 A$="A" ;any data is okay
30 PRINT #2,A$
40 IN$=INPUT$(14,#2)
50 PRINT IN$
60 FOR I=1 to 900000! : NEXT I ; delay timing over 1 second
70 GOTO 30
80 CLOSE #2
90 END

Thank you very much!
Oliver.
0 Kudos
Message 1 of 2
(3,632 Views)
You don't specify what version of LabVIEW you're using so all I did was attach a picture but you should be able to recreate it withaout any problems. I don't remember enough basic to know what the flow control is so you may have to play with that a little (the first line is setting basic comm parameters such as baud rate, parity, etc.) and I'm guessing about the termination character for the serial write. Most serial instruments need something so if the carriage return doesn't work, try soemthing else. The instrument manual should tell you. Also, there are some serial examples that ship with LabVIEW. Have a look at those.
0 Kudos
Message 2 of 2
(3,632 Views)