09-09-2009 01:01 PM
Hi,
I have a TESTO 350-S gas analyzer I wish to connect to a PC with Labview. I have downloaded the testo toolbox witch was very helpfull and even comes with the perfect example for me to test communication with de device I mentioned.
The gas analyzer is connected to the PC via serial cable.
The problem is that when I run the example VI, I get this error that is very common and general for what I have gathered here in the forums.
I get the message "Class not registered in testo serial init.vi", with the code -2147221164 and obviously I get no data from the 350-S. 😞
From what I have read here, this is somehow related to excel?? or to active x controls from excel?
I am not a programmer and I have never worked with active x controls before, so I have no idea how to solve this.
Can someone help me, please?
Thanks in advance,
Antonio.
PS: I can post here everything necessary to replicate the error, if you wish... I get the error even in another machine that is not connected to the gas analyzer.
Solved! Go to Solution.
09-09-2009 01:14 PM
09-09-2009 02:12 PM
09-09-2009 04:53 PM
I don't know if I can explain correctly what my problem is, but I don't think that anything is trying to open excel. I had to add a class witch is a .dll that I think is the driver for the gas analyzer. I followed the instructions on the toolbox pdf:
"3.2 National Instruments LabView
When changing version, it may be necessary to update the “Library” setting of all “Property” and
“Invoke” nodes. Proceed as follows:
Select the “Automation Refnum” symbol with the name “tcddka.Itcddk” on the front panel of a VI
(virtual instrument), cut it out and paste it in again. Set “tcddka.Itcddk” in the “Select ActiveX Class”
context menu.
Check the “Property” and “Invoke” nodes in the diagram overview. In the context menu (right mouse
button), you will either see “Features” (if it is a property node) or “Methods” (if is an Invoke node).
Ensure that the entry in the respective submenu is marked with a suitable method or property name."
After doing this, all errors in compilation desapeared but when I run the VI, I get error I mentioned earlier from the "Invoke node".
Maybe I have to do something to install or register the .dll
I think the VI is not initializing the driver, not in the machine that has connected the gas analizer, and not in this one from I am writing (laptop).
I have office 2007 in both machines and labview 8.6 in the first and 8.5 in my laptop.
Greetings and thanks for your answers.
Antonio
PS: I attached the files needed to verify what I'm talking about (the zipped file is the dll)
09-09-2009 05:03 PM
The ActiveX reference is called Tcddka.Itcddk Control and it's pretty obvious that it's not Excel.
Yes, you have to register the ActiveX control before you can use it anywhere. LabVIEW will not do that for you. From the DOS prompt, use 'regsrvr32 dllname'
09-09-2009 05:31 PM
Thanks for your prompt answer, Dennis.
C:\Testo\Toolbox\DLL>regsvr32 tcddka.dll -> is this it?
I did what you told me, but I got "LoadLibrary("tcddka.dll) failed - The specified module could not be found"
Greetings
Antonio
09-10-2009 06:35 AM
09-11-2009 05:14 AM
I will do just that, since I don't have any an ocx file in the tollbox.
Thanks for your help, guys. I will post a solution if and when I have one!
Greetings
Antonio
10-01-2009 05:06 PM
Was this issue ever resolved? I am encountering the same problem, and unfortunately Testo offers no support for their libraries. I'm not sure what is relevant, but I am running Labview v8.6.1 on Windows XP (2002, service pack 3). I have tried registering the .dll files using regsvr32, and CCRP Registration Utility (which allows you to browse directories, so it rules out mistyping the file path). Either way, the registration of the library fails. I have attached the full toolbox from the testo.com site, which can also be downloaded at:
http://www.testo.com/online/abaxx-?$part=PORTAL.USA.Applications&$event=show-from-content&externalid=opencms:/Sites/INT/SharedDocuments/DownloadsINT/SamplesCVBLabviewProtokoll/
I appreciate any help with this. Thanks!
10-02-2009 12:34 PM
No, I'm afraid I haven't solved this problem yet. But I contacted some people from TESTO here in Portugal and I have received an answer to the problem. But the wrong answer. They sent me a new .dll, but it's t35n.dll, not the one I needed:tcddka.dll.
So I'm waiting again for an answer from them.
I was waiting for a solution to post it here, since there are some people with identical problems.
regards,
António