LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How does ActiveX retrieve counter data from an application?

I'm using a label making application to print a serialized label. This serial number is from an incremented counter, the data from which I wish to retrieve. I'm not sure how to do this using ActiveX. Your help, as always, is greatly appreciated.
0 Kudos
Message 1 of 14
(4,515 Views)
A little clarification please:
You are trying to have the app store the last serial number, and when run increment that number, print the new number and save it for next use?
0 Kudos
Message 2 of 14
(4,509 Views)
What is the name of the activex control that you are using?? If it isn't installed on our computers, it won't show up when we open your vi file.
0 Kudos
Message 3 of 14
(4,503 Views)
The label making software stores the incremented serial number in the counter when the label is printed. I just need to retrieved this number for use in my Labview application. Thank you!!!
0 Kudos
Message 4 of 14
(4,499 Views)
In such case, it will be challenging to help, as we don't have the activeX control (as mentioned previously by a fellow wireworker).

Is the application free? If it is, provide a link and I am sure that a few people will dig around for you and find it.

Likely, if you have access to the data via activeX, it will be accessible via the property nodes.

This is unfortunately as much information as I can give you without having the control on my box.


Also, as a suggestion, be absolutely sure to close all of the references individually, not just the last one. (I.E. You have an application reference, a documents reference and a printer reference that remain open upon code completion. Each of these should be closed using the "Close Reference" VI that you are using with the IDocument reference.

Message Edited by MattH on 06-14-2006 11:52 AM

Message 5 of 14
(4,496 Views)
I'm new to using ActiveX and I don't understand your question. Please clarify. Thank you so much.
0 Kudos
Message 6 of 14
(4,491 Views)
The application you are calling via ActiveX must be installed on my computer to be able to help you. If this application is free, I can download it... if it is not... well then that is an issue.

As for the comment I made about references, Please see the attached VI.
Message 7 of 14
(4,482 Views)
I'm using Codesoft by Teklynx. They have a free demo which can be downloaded from the "Download Center" tab of the following web page: http://www.teklynx.com/index.html
Thank you again!!!
0 Kudos
Message 8 of 14
(4,481 Views)
Hi test99,
 
I downloaded the demo from teklynx for Codesoft 8. I also noticed they have ActiveX examples for just about every other programming language besides LabVIEW! Smiley Surprised I looked all over for some good documentation on this ActiveX object, but I didn't have much luck. I was able, however, to find two ways of getting to the 'Count' property. I have attached code below that demonstrates this. Since I am unfamiliar with this applicaiton I'm not sure if this is what you are looking for or not.
 
Something I might suggest is that if you can find an ActiveX example in another programming language (say VB script or VB) that performs what you want to do in LabVIEW, we could just "translate" the code.
 
For those of you out there that want to download & test, I think this link will keep you from having to register your email address (& other personal information):
 
 
Hope this helps! 
Charlie S.

Visit ni.com/gettingstarted for step-by-step help in setting up your system
Message 9 of 14
(4,455 Views)

Hi Charlie,

Thank you for downloading the demo and for providing a better download link. I tried the example you sent, but I'm still getting the wrong count. I've been looking through the Codesoft programming reference guide and I found some information, which I've attached, on the counter object property called "Counter.Increment". I believe this is the correct property, but I don't understand how to use it in Labview to retrieve the incremented counter data. Any help would be greatly appreciated.

Tim D.

 

 

Download All
0 Kudos
Message 10 of 14
(4,433 Views)