Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

labview & testo toolbox

Solved!
Go to solution

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.

0 Kudos
Message 1 of 68
(11,854 Views)

Hi

 

probably the excel class is not registered.

Is microsoft office installed on this pc?

greetings from the Netherlands
0 Kudos
Message 2 of 68
(11,813 Views)
It would be related to excel if that is what you are trying to open. I would guess that it's some ActiveX component that Testo provides. Look in the VI and see what ActiveX reference it is trying to open.
0 Kudos
Message 3 of 68
(11,804 Views)

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)

Download All
0 Kudos
Message 4 of 68
(11,797 Views)

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' 

0 Kudos
Message 5 of 68
(11,792 Views)

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

0 Kudos
Message 6 of 68
(11,785 Views)
See if there is an ocx file that the vendor provides. If so, register that. You might also try contacting their vendor and ask them about registering.
0 Kudos
Message 7 of 68
(11,756 Views)

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

0 Kudos
Message 8 of 68
(11,725 Views)

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!

 

 

 

0 Kudos
Message 9 of 68
(11,518 Views)

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

0 Kudos
Message 10 of 68
(11,485 Views)