LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How does ActiveX retrieve counter data from an application?

Hi test99,
 
I'm happy to do what I can to help out. Unfortunately, I'm not an expert with this particular ActiveX control. The documentation you found looks like it is far better than what I could dig up on Google. The key to using ActiveX in LabVIEW is the hierarchy that is shown in those word documents. For your particular example you can follow it all the way down the tree:
 
Application >> Documents >> Document >> Variables >> Counters >> Counter.
 
Each of these steps is represented by a refnum wire on the LabVIEW block diagram. In some cases, objects are just members of parent objects. In other cases, you have to actually create an object using an invoke node. (I know these probably are the technical terms that MS uses, but hopefully you understand what I mean).
 
I have attached a modified version of the code we were working with. It shows the different property and invoke nodes and how they relate to the hiearchy mentioned above. The only piece I cannot figure out is the Counters.Item method -- it has a "Key" input, but I don't know what this is or what it represents. I'm happy to help you with the LabVIEW side of this, but you'll need someone with Codesoft expertise to explain the intricacies of the ActiveX objects. Someone from their technical support group actually proactively contacted me yesterday after I downloaded the trial. It might be worth your while to give them a call. They seemed more than willing to help answer questions.
 
I hope this helps!
Charlie S.

Visit ni.com/gettingstarted for step-by-step help in setting up your system
Message 11 of 14
(905 Views)
Hi Charlie,
 
Thank you for your time and effort. I forgot to mention that I'm running Labview (7.1). Would it be possible for you to send your example as a 7.1 vi. instead of Labview 8. Thank you also for your advice to contact Teklynx customer support, should I need further assistance with their side of ActiveX.
 
Tim D.
0 Kudos
Message 12 of 14
(903 Views)

Hi test99,

My apologies. I have attached the VI in 7.1 format. Sorry for the confusion!

Charlie S.

Visit ni.com/gettingstarted for step-by-step help in setting up your system
Message 13 of 14
(885 Views)

Hi Charlie,

Thank you for the example vi. I'm going to call Teklynx about the "Key" input parameter. I'll let you know what they say. Thanks again.

Tim D.

  

 

0 Kudos
Message 14 of 14
(879 Views)