LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

communication problem with mgc+ via catman activex server

Hi,

I have an application which communicates to a HBM MGC+ via ActiveX software from HBM. The application consists of several GUIs to measure values with the MGC+. All measuring and data transferring works fine.

But when the application runs and no measuring is done for quite a long time ( not exact determined ) the ActiveX CATMAN server transfers only zero values. The only workaround is to quit the application and restart the Labview application. Then everything works fine again.

Has anyone a solution for this problem?

The ActiveX reference is opened at program start and set to a global variable.

Thanks in advance for your help!
0 Kudos
Message 1 of 5
(3,695 Views)

Hello Bernhardt,

can you explain the role of the CATMAN Server in your Application? I'm not familiar with this Software, maybe it will go into some kind of idle mode.

Can you send commands to the software, what will keep her awake?

 

I found some general links to ActiveX and some HBM visa drivers, maybe this helps, otherwise please give us some detailed information and maybe your VI.

 

How Do I Manually Register Type Libraries, ActiveX Controls, and ActiveX Servers?

HBM MGC Plus

 

regards,

Tobias

 

 

 

0 Kudos
Message 2 of 5
(3,673 Views)

Hello,

 

 this is a copy of the ActiveX Reference documentation:

This document describes how to use the functions exposed by the catman ActiveX interface. Since version 4.0 catman makes available a large number of internal functions via a standardadized COM interface.

Users of the catman ActiveX interface usually belong to two different groups:

1. Programmers writing their own data acquisitions applications using catman as a large server library. These developers usually are not interested in the catman user interface and may not necessarily be familiar with the catman user philosophy.

2. Programmers who want to extend the catman functionality. In general these programmers are very familiar with catman and the catman scripting language.

 

I am User 1. :smileyhappy:

The communication to the HBM MGC+ instrument is performed via the ActiveX commands. I open the ActiveX reference and do all communication with the ActiveX properties and methods. The workaround of sending commands  to the instrument is done in the measuremnt GUI after initializing the instrument. But in configuration and data analysis GUIs I can not send commands periodically. 

 

Markus Bernhardt

Somatec

 

0 Kudos
Message 3 of 5
(3,665 Views)

Hello,

 

I deleted the use of a global variable for the ActiveX reference and substituted  the global with normal Labview data lines. Since that the problem didn't happen again.

 

Is it posible that Labview has a problem with global variables when the program runs for a longer time?

 

Markus Bernhardt

Somatec

 

0 Kudos
Message 4 of 5
(3,654 Views)

Hi Marcus

 

as I could read your message , you are very familiar with Catman ActiveX..

 

I would like to ask you that Are we able to communicate with Hbm DK38 by using catman ActiveX ...

 

if we know do you have any suggesstion about reading data from dk38...

 

Iif you could help we would be pleased...

 

thank you, best regards

 

Not: you may reply to sinablack@hotmail.com 

0 Kudos
Message 5 of 5
(3,025 Views)