11-09-2010 12:35 AM
Hi ,
I want to use MSCOMM32 instand of VISA serial port.
I download MSCOMM.ocx and then added this file to the System directory and registered it using the following command: "regsvr32 C:\Windows\system32\MSCOMM.OCX".but when i import ActiveX(Microsoft communication control, version 6.0), it popup a dialog box as picture1 showing."class is not licensed for use".
I google some solution. some tips suggests me to use vb6cli.exe(a utility designed to fix License problems with ActiveX Controls). http://support.microsoft.com/kb/194751
so bad, when i install vb6cli.exe, it shows"Visual Basic 6.0 is not detected on this system".
I donot know whether i should install Visual Basic 6.0 Enginee?
I can not believe a AciveX is so difficult to install before i can use!!
Anyone can provide me any solution.
Solved! Go to Solution.
11-09-2010 01:39 AM
Oooh , still nobody can help me.....
11-09-2010 03:12 AM
Registering the ActiveX makes it available for use at run-time, not design-time (i.e. programming).
To program with MSCOMM32 you need to install VB6.
11-09-2010 12:37 PM
11-09-2010 01:13 PM
the .Net api may be easier to use. If you click the link in my signature, I have them posted on my website.
NOTE: I implemented them to talk to a very basic serial device, nothing complicated and allows you to NOT install the VISA runtime if you are ONLY doing serial communication. This said, they have not been robustly debugged. But any issues should be able to be resolved using MSDN.
BR
-p
11-09-2010 09:05 PM
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.
11-09-2010 09:06 PM
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.
11-09-2010 09:18 PM
Yeah, I slove it with microsoft web tips.
run a register file as below information:
Any way, I make it.
Thanks for all of you
Nice day, nice beginning...
11-09-2010 09:22 PM
Unless, of course, you use VISA events.
11-10-2010 10:13 AM
@Dennis Knutson wrote:
Unless, of course, you use VISA events.
Like the example shown in this KB article: http://digital.ni.com/public.nsf/allkb/179E61F87CF8B340862571EA0037CFA3