LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Import ActiveX MSCOMM32 Error

Solved!
Go to solution

.Net supports events as well... I believe I put together a simple example of doing that in my VIs

 


@amandarila wrote:

Because VISA serial port use inquiry mode to read serial data, that wastes too much CPU timeslice.

However MScomm32 support event-triggered, it will work efficiently.


 


Paul
0 Kudos
Message 11 of 13
(734 Views)

Hi Paul,

Yeah, I feel it still don't work as I expected.

I have download and checked your DoNet serial port example, but it seems we should define a user Event about how many data received.

However, MSCOMM32 will trigger if the serial port have one character in the buffer. both of them can not recognize the end of line. and I also can not

get all the buffer at one time as I expected.

I donot want to use while loop and time-wait to re-pick the buffer data.so I am not satisfied. they are not fixable as MSCOMM in Visual C++.

so do anybody have better idea?

Amanda
0 Kudos
Message 12 of 13
(720 Views)

Yes.

 

Use the VISA functions like Dennis and Smercurio pointed out in messages 9 and 10.

0 Kudos
Message 13 of 13
(711 Views)