LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

OnComm event from MSComm Control

I'm trying to get to the OnComm Event generated by the MsComm control.  I can get to the properties, but not the events generated by the control. 
 
Any ideas?
 
Thanks in  advance,
Doug Gordon
C-Cor
0 Kudos
Message 1 of 4
(3,360 Views)
Hi Doug:

Are you using Measurement Studio? If so, are you using the Visual Studio 6.0 or the .NET version.

Thank you

Nandini
NI
0 Kudos
Message 2 of 4
(3,347 Views)

Hi Nandini,

I'm trying to do this strictly through LabView.  Here's the whole deal:

One of the guys I'm working with has a unique serial comm application.  Some of our legacy equipment uses 9 bit serial data comm.  Comm is one byte at a time, but the port must be serviced immediately.  In the past, he was able to interpret the 9 bits by looking at the parity bit and attach it to the byte that came across the serial port.   Now apparently, LV7 insists on replacing the byte sent with a "replacement byte" whenever there's a parity error (app previously built in an older version).  He's tried a few workarounds with little success.  Oh, and he has to do this on two serial ports simultaneously at 115K baud.
 
He's now using a third party serial port driver that he may have some success with by polling the ports.  I'm trying to use the native Windows stuff and make it Event driven.  The problem is I don't think I can uncover the OnComm Event through LabView.  It looks like the event's available through .Net 2.0 (not available through .Net 1.1), but there are compatibility issues with 2.0 and 7.1.  Compatibility issues are fixed in LV8 or with LV7.1.1 and patches.
 
At this point, I think we'll probably just wait for 8.0 to show up and take another swipe at it using .Net 2.0.
 
0 Kudos
Message 3 of 4
(3,331 Views)
You would need to use LV 8 regardless because that is the version where .NET event support was added. Don't forget that you can download the full version of LV 8 for a 30-day evaluation if you want to try it out.
0 Kudos
Message 4 of 4
(3,324 Views)