NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Could not load DLL or external library

 
When I open my TS781784.seq file, I receive the following Run-Time error(s):
 
Run Time Error #1
 
Details:
Could not load DLL or external library 'C:\EADS\DKH\TADS_3584\Development\TestProgramSets\PTS\TS781784\Sequence\TS781784.dll'.
Error Code:
-17004; Could not load DLL or library.
 
Location(s):
Step 'Display_Screen' of sequence 'SequenceFileLoad' in 'TS781784.seq'

 

Run Time Error #2

Details:
Could not load DLL or external library 'C:\EADS\DKH\TADS_3584\Development\TestProgramSets\PTS\TS781784\Sequence\TS781784.dll'.
 
Error Code:
-17004; Could not load DLL or library.
 
Location(s):
Step 'Discard_Screen' of sequence 'SequenceFileLoad' in 'TS781784.seq'

 

I click on Continue cleanup and it will then let me edit my sequence.

The TS781784.dll is located in the Sequence directory with the .seq file.

0 Kudos
Message 1 of 10
(6,448 Views)

Hi,

Do you have all the dependencies of the DLL on the systime you are trying to load.

Regards

Ray Farmer

Regards
Ray Farmer
0 Kudos
Message 2 of 10
(6,434 Views)

Ray,

 

Thanks for the response. I am a new user to LW and TS. I'm not quite sure of what you mean, when you say dependencies. I have had problems with loading all of the NI sw on this PC.

 

Thanks,

David

0 Kudos
Message 3 of 10
(6,422 Views)
Ok,
 
Does the dll interface with any hardware such as an DAQ card or GPIB card. If it does, then do you have the devices drivers installed on the system.
 
Regards
Ray Farmer
Regards
Ray Farmer
0 Kudos
Message 4 of 10
(6,401 Views)

Ray,

I think that all of the VXI and GPIB device drivers are in place. I am closing in on this problem. It seems that Test Stand wants to open a file named ccats_Init.uir. It is part of a user interface that is displayed when opening a sequence. I have add all of the directories where this file is located (multiple directories) to the "Search Directories" of this sequence. The file works for the other PC's. Something is just not set up right with the TS configuration????

Thanks,

David

0 Kudos
Message 5 of 10
(6,398 Views)
ccats_Init.uir is not a TestStand file. It is used by a CVI dll that your sequence calls from its SequenceFileLoad callback. Since it is loaded by the CVI DLL, not TestStand, changing the TestStand search paths is not the solution.
 
UIR files are typically referenced via LoadPanelEx calls in a CVI DLL. If you have the source to the dll, examine the call. If the path to the UIR is absolute, then it is likely the file does not exist at that absolute location on the machine with the problem. If the path is relative (ie, just a file name), most likely the UIR is expected to be in the same directory as the DLL that loads it. Find the location of the DLL and UIR on a machine that works and compare the locations of the same files on the machine that doesn't. It might help to speak to the author of the DLL to find out where they intended the files to be located.
 
 
0 Kudos
Message 6 of 10
(6,394 Views)

James,

Thanks for the input. I found the LoadPanelEx in my ccats_Station_Init.c. The .uir file exists in the directory that is referenced. I have even tried copying it to my source and sequence directories, to no avail.

See below:

  char *revl;
  gInitPanelHandle = LoadPanelEx (0,"c:\\PTS\\ccats_common\\source\\ccats_Init.uir", INIT_RESUL,__CVIUserHInst);
  SetWaitCursor(1);
  DisplayPanel(gInitPanelHandle);
  return;   
}

Thanks,

David

0 Kudos
Message 7 of 10
(6,391 Views)
Try setting a breakpoint or inserting a MessagePopup to examine the return value of LoadPanelEx. Perhaps you might get a helpful error code.
0 Kudos
Message 8 of 10
(6,387 Views)

Hi,

Have you got either the correct version of the CVI or the CVI RTE installed on your system. If you have CVI installed, can you open the UIR file successfully.

Regards

Ray

Regards
Ray Farmer
0 Kudos
Message 9 of 10
(6,375 Views)

The .uir file opens properly in a LW CVI window.

I see how to set a breakpoint and add a watch expression for the LoadPanelEx, I'm not quite sure how to check for an error value while bringing up the TS seq file.

  char *revl;
  gInitPanelHandle = LoadPanelEx (0,"c:\\PTS\\ccats_common\\source\\ccats_Init.uir", INIT_RESUL,__CVIUserHInst);
  SetWaitCursor(1);
  DisplayPanel(gInitPanelHandle);
  return;   
}

 

0 Kudos
Message 10 of 10
(6,368 Views)