NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

DLL-Error 17004 when trying to execute UseMathFunction.seq

Hi.

I�m searching for a way to calculate exponents, logarithms etc in TestStand 2.0.1f1 (under Windows 2000). Therefor I�ve downloaded the file �MathFunction.zip� from the page:
http://sine.ni.com/apps/we/niepd_web_display.DISPLAY_EPD4?p_guid=B45EACE3EE7B56A4E034080020E74861&p_node=DZ52203&p_submitted=N&p_rank=&p_answer=&p_source=External
When I try to execute the sequencefile �UseMathFunction.seq� I get the error-message:

Details:
Error executing substep 'Post'.
Could not load DLL or external library 'c:\ETAS\Automation1.4\TestStand\Components\User\StepTypes\Math\MathFunction.dll'.
Win32 Error Code = '127'
This DLL might be attempting to load another DLL. When DLL1 loads DLL2, Windows searches for the subsidiary DLL2 according to the Windows DLL search algorithm. To ensure that Windows locates DLL2, you can place DLL2 in one of the following locations:
1) The directory that contains DLL1.
2) The directory of the application executable, i.e. C:\TestStand\Bin\.
3) The system search path. The system search path includes the system directory (ie. C:\WinNT\System32\ or C:\Windows\System\), the Windows directory (ie. C:\WinNT\ or C:\Windows\), and the directories that are listed in the PATH environment variable.

Error Code:
-17004; Could not load DLL or library.

Location:
Step 'Exponent' of sequence 'MainSequence' in 'UseMathFunction.seq'

I�ve already copied the �MathFunction.dll� and the �MathFunction.uir� in the �C:\WINNT\system32\� and the �C:\...\TestStand\Bin� directory. Of course both files are in the directory where the sequencefile is executed, too.

At the end of the article on the page
http://zone.ni.com/devzone/conceptd.nsf/webmain/D356AAF6898BDF7D8625683C006B4BDB?opendocument
the author writes something about the tool �Depends� which comes with Visual Studio 6.0. I�m not very familiar with this tool. But after checking �MathFunction.dll� I get the message that �cvirte.dll� is a module with one or more missing export functions. I�m not sure if this failure has something to do with my TestStand problem.

Any suggestions? Thanks in advance!

Date
0 Kudos
Message 1 of 6
(3,771 Views)
Hi,

I have tried this step type and ran the example and it worked fine by just creating the folder 'C:\TestStand\Components\User\' and then pasting the contains of the zip file into this folder. I then opened the sequencefile from that folder.

You might try adding the 'c:\ETAS\Automation1.4' to your TestStand search paths and include sub directories.

Or Edit the Step Type in the file UseMathFunction.seq and relink the dll functions.

Regards
Ray Farmer
Regards
Ray Farmer
0 Kudos
Message 2 of 6
(3,771 Views)
Date,
This example is written in CVI 6.0 and so it needs CVI 6.0 runtime engine on your computer to run.
This is why you are not able to load this dll.
You can get the CVI 6.0 runtime from this location

http://digital.ni.com/softlib.nsf/websearch/56E74D08EFDEFE2386256AE700639CB9?opendocument

Thanks
Message 3 of 6
(3,771 Views)
Hi,
you could try to find the DLL, and right click on it, and if you've got quickview installed, you can open it with this, (right click on it in explorer and select quickview) and view the imports table - it's like a manual version of "depends".
Looking at the DLL, it uses the following :
advapi32.dll (installed with the OS)
user32.dll (OS)
kernel32.dll (OS)
gdi32.dll
cvirte.dll (CVI 6.0 run-time engine)

if you need the run-time engine - you can download it here :

http://digital.ni.com/softlib.nsf/websearch/56E74D08EFDEFE2386256AE700639CB9?opendocument

Hope this helps

S.
// it takes almost no time to rate an answer Smiley Wink
Message 4 of 6
(3,771 Views)
This is the best answer I've seen so far since it mentions depends and quick view and doesn't try and guess at what the actual problem is. Depends is the ultimate way to resolve errors of this nature since it will tell you exactly what the actual problem is in a matter of seconds. It might even take someone a matter of minutes analyse the report from depends.

Steve
0 Kudos
Message 5 of 6
(3,771 Views)
Hi.

After installing the CVI 6.0 run-time engine everything works fine.

Thanks to all!!
0 Kudos
Message 6 of 6
(3,771 Views)