Link to home
Start Free TrialLog in
Avatar of razevedo
razevedo

asked on

How to import mesurement data from an instrument into an ACCSS 2007 database via serial USB port

I can transfer mesument data from a mesurement instrument to an ACCSS 2003 database via a serial port using the AXCOM object. The problem is that in the ACCESS 2007 version this object is not recognized and an error occurs. Maybe I'm not using the correct object or method to access data adequate to this version? Is there another object or method that implements this communication? I suspect that the ACCESS 2007 version allredy has an integrated object from the MSCOM library that  implements this function. Is it true an, if so, how can I use it to produce the code? Many thanks. Rui
Avatar of Bill Prew
Bill Prew

What is "AXCOM"? Do you mean the mscomm32.ocx control, or are you referring to something else?

I can assure you that Access does not have an "integrated object" that will allow you to interact with USB or Serial ports. You can use the API to do so, but it can get to be a very dicey prospect.

Does your instrument come with any programming instructions or examples? Generally those sorts of things would be included with your instrument, or would be available through the support division of the manufacturer.

Avatar of razevedo

ASKER

Thank you for your kind and quick answers.

In fact, I'm refering to the MSCOMM32.OCX control. axcom is the name that ACCESS uses by default to the control when it is included in a form.

In fact I'm allready using the MSCOMM32.OCX object to transfer data between the instrument and the ACCESS database. The problem stands when I need to use the 2007 version and not the 2003 version.

The instrument is an Yokogawa power analiser and it has no additional software to implement this communication. The supplier was allready contacted and he has no device driver to make possible in an easy way the communication through the serail port. So I had to devellop the code to transfer data from the instrument to the database and it works correctely using the MSCOMM32.OCX object. But when I want to use the ACCESS 2007 database it does not work at all and generates an error because it does not recognize the refferred object.
Do you have a solution for this communication on an ACCESS 2007 databse?

Thank you in advance for your kind attention.

Rui
ASKER CERTIFIED SOLUTION
Avatar of Scott McDaniel (EE MVE )
Scott McDaniel (EE MVE )
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial