LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Error loading 3D graph for built application

Hello all,
I have an application in LabVIEW 6.1 that I build and then distribute with the installer. However, when the installed program is started, the user receives the error "3Dcwgraph: Error loading control. A newer version is needed."

I have made sure that the 3D graph support option is checked in the Application Builder. I've also tried manually replacing the 3D control in the VI it exists in. No luck.

By the way, I also have LabVIEW 7 installed on the machine that builds it. Could this have something to do with it? I can't upgrade the application, though, because my client wants to keep the source code in LV 6.1.

Thanks in advance for your help,

David Moerman, Advanced Measurements Inc
0 Kudos
Message 1 of 3
(2,862 Views)
David,
Having both versions of LabVIEW installed is probably what is causing the error. 3dcwgraph.ocx gets installed in C:\Windows\System (or System32 on Windows NT/2000). When you install new LabVIEW version, your existing ocx will be overwritten.
To see what version of the ComponentWorks 3D Graph .ocx you have, right-click on it, select Properties from the pop-up menu, and then select the Version tab.
I have only LabVIEW 7 on my machine, and this ocx file version is 6.0.3.601. I am attaching the version 6.0.3.588.
The easiest way to fix this is to take the attached ocx, and place it in the Target machines Windows system directory (replace existing file = yes). After that, the ocx needs to be registered with the system. You register the ocx by sele
cting Start >> Run, and then you type: regsvr32 , then you drag the ocx from the system folder into the run field (Windows will then automatically put the proper path into the run line). Alternatively, you can select Start >> Run, and type in: regsvr32 "path to ocx", with the path in quotes (example: regsvr32 "c:\windows\system"). If you want a much more subtle approach, there is a KB 2D5BNHDT entry that describes how to use some of the features of Application Builder, to automate the process as part of the installation of the exe onto the Target machine. This doc has step by step instruction on how to replicate and fix the problem.
Message 2 of 3
(2,862 Views)
Hi, Zvezdana,

I just read your reply to David's question. I am troubled by the cw3D Surface Graph, too. I have LV 6.1 installed on my machine and 3D surface graph often crashes the whole VI and LV. Do you have any fix for this available?
I just test-downloaded LabVIEW 7.0 to see how my VI will work in that environment, but now I'm concerned about this conflict of LV 6.1 and LV 7.0 you were talking about in your answer.
I'm afraid that the glitches with 3D Surface Graph would not be mitigated even if I upgrade to LV 7.0. However, I think that it makes more sense to make a fix for that glitch since other objects/components seem to work flawlessly.
Thanks,
Miroslav
0 Kudos
Message 3 of 3
(2,862 Views)