LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

About MScomm receive data

Hi All,

  I use MSCOMM to make a serial port communication. The callback function is for serial port receiving.

But I don't know how many characters the callback function trigger receiving. And which symbol it

 recognize as a finishing slash.

Amanda
0 Kudos
Message 1 of 3
(3,209 Views)

Add a picture to make it more clear.

Amanda
0 Kudos
Message 2 of 3
(3,202 Views)

Hi Amanda,

 

Termination characters are device specific and can generally be found in the manual for your specific serial device. What device are you communicating with?

 

Also, I was wondering why you chose to use MSCOMM instead of National Instruments' VISA driver (found here). The VISA driver handles serial communication very well in LabVIEW, while MSCOMM seems to be older.

 

Otherwise, here's an example that uses MSCOMM.

 

Using the MSCOmm32.ocx in LabVIEW

 

Try running this code (you will need to make some modifications).

 

Have a great day!

 

Tanya

Tanya Visser
National Instruments
LabVIEW Group Manager
0 Kudos
Message 3 of 3
(3,160 Views)