NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Error Code -17502

Hi,

 

I hope someone can help?

 

We have TestStand 2.0.1 and Lab View 6.1 running on Windows 98.

 

We recently added a LabView function to extract directories and there files (the attached LabView code).

 

We but in at the start of the test sequence to check its functionally and it worked but once it is its correct place it returned a run time error (-17502)

 

After a lot of shifting the LabView section around we found, at least, the error would occur after we run a GPIB command.

 

The GPIB command is run via a DLL getting its input from a text file.

 

The same DLL and text file are used for other functions and do noe effect the LabView module.

 

Can anyone provide some help or direction on the LabView code?

 

I am posting in both TestStand and LabView discussion forms in the hope that some help might come!!!

 

Thanks for the help

 

Simon

0 Kudos
Message 1 of 5
(3,499 Views)
Simon,
 
When I looked at your VI, I noticed that the input to List Folder.vi was "FileGlobals.DirectoryPath" changed into a path wire.  Did you mean to get the value that was stored in that TestStand variable instead?
 
If so, you should call TestStand - Get Property Value (String) and use the output of that as the input to List Folder.vi.
Josh W.
Certified TestStand Architect
Formerly blue
0 Kudos
Message 2 of 5
(3,470 Views)
Josh,
 
This is what you suggest, see attached?
 
Unfortunately this also gives the same problem!!
 
Thanks
Simon
0 Kudos
Message 3 of 5
(3,465 Views)

Simon,

If you probe the output of Get Property Value, are you getting the expected path?  Since the variable is a file global, I would expect it to either run always or not work at all as opposed to the behavior you are seeing where it runs correctly only some of the time.

What is the value of FileGlobals.DirectoryPath?

Where is your error coming from?  Is it coming from the List Folder or from one of the Get/Set Property Values?  Could you attach a screenshot of the error?

Josh W.
Certified TestStand Architect
Formerly blue
0 Kudos
Message 4 of 5
(3,460 Views)

Hi,

Do you have these FileGlobals variables in your sequencefile.

If not set the boolean to True to Insert if Missing.

What is this about GPIB as there doesn't appear to be any GPIB related VI's or functions!

Regards

Ray Farmer

Regards
Ray Farmer
0 Kudos
Message 5 of 5
(3,448 Views)