Quantcast
Channel: All NI TestStand posts
Viewing all 24560 articles
Browse latest View live

Re: using property loader to import limit array

$
0
0

Hi Ccyclone128a,

 

Just to clarify, both your data source, as well as the parameters, are size 11 arrays? And you want to index through three of these arrays? 


Re: Pass by pointer broken after non-use

$
0
0

Could you provide screenshots of the error you are seeing? Is this a TestStand generated error?  Also just to confirm the laptop running this test is the same one that has been successfully running it from 2009 to 2016?  Have you tried recreating these pointers in your code to see if the error still occurs?  If it was shown to work at one point and there have been no code changes then it is odd that it is having issues now.  Do you know if there are any network related changed that could be interfering with the TCP/IP communication?

Re: Pass by pointer broken after non-use

$
0
0

SeqEdit_beforeSeqEdit_beforeSeqEdit_afterSeqEdit_after

This is a TestStand generated error. The laptop is the one that has been used during the entire time of the program. I do not know of any network changes but I am also not sure how that would affect the TestStand code and variable passing. This same code has been used since its initial development in 2008 and has been under CM control. This is occurring across multiple platforms. The two laptops used to test the system during its life time and on my office system that was used during development. Although I currently run 14.0.1.103 on my office system. The code had not been used or loaded for around two years then when brought up to try and run a regression test the analysis error occurred for the prototype not matching. The calling C++ code is looking for unsigned long inputs while the TestStand sequence builds a custom data structure. The structure was always passed in by pointer and was never an issue until the code was brought up earlier this week. I have attached screen shots before and after the prototype reload.

Re: Problem with Labview VI's

$
0
0

I followed the steps in the link as well but I am still getting the same error.  You said you fixed yours.  How did you do it?

Re: What is the best way to change STOP_ON_FAIL?

$
0
0

Hello Palanivel,
I tried,It work.

Thanks.

 

Mark Zhou

Re: What is the best way to change STOP_ON_FAIL?

Re: How to generate a global synchronise object?

$
0
0

Hello,

Thanks for the information.

From your comment , I realized the the default  Synchronization object maybe good enough for my case.

Means:

 "MyLock" (Without '*'),can be visible between process module sequence file and the client sequence file.

  I think they are in one process.

  Is this correct?

 

Best Regards

Mark

How TestStand knows the DLL parameters?

$
0
0

For a DLL code module, TestStand do not need the .h file, no need the export file , no LIB file , only by one DLL, teststand knows every information of the DLL, the functions and its parameters. The DLL file already include all the information?

 


How to find Configuration file in teststand using FindFile() Function

$
0
0

I am trying to search configuration file from teststand. When I execute the sequence it is showing me error as shown below. How to resolve this error? Error in call to TestStand API member 'IEngine.FindFile'. Specified value does not have the expected type.[Error Code: -17308, Specified value does not have the expected type. ]  

Re: How to find Configuration file in teststand using FindFile() Function

$
0
0

Probably one of the parameters of the FindFile function is not correct, can you show us how you use the function?

Re: How to find Configuration file in teststand using FindFile() Function

$
0
0

Thanks for reply..

 

I used function as below:

Locals.FileFound =RunState.Engine.FindFile ( "154M2-105-0_02.csv", Locals.absolutePath, Locals.userCancelled, FindFile_PromptHonorUserPreference,  FindFile_AddDirToSrchList_Ask, False, "154M2-105-0.seq")

Extract Information XML Report

$
0
0

Hi

 

I want to extract the data from the TestStand XML Report using XML parser (Xpath) , but i am not able to get the expected results

Attaching the report file (not able to attach XML So changing the extension to .txt)

 

Want to Extract "/Reports/Report/Prop[6]/Prop[1]/Prop[1]/Prop[6]/Value[1...N]/Prop/Prop[6]/Value[1...N] "
I created Xpath in a usual way but it didn't worked form me

Can someone comment "what i am missing in achieving the expected result"

Re: Insert SubSequence Call Step using TS API

$
0
0

Hello,

How to do this using Labview.

I have inserted parameter into the TS.SData.ActualArgs.

 

But I am getting error in the module tab.

17500 

Error Occured while trying to refresh edit panel SeqEdit.o

operation Failed.

(Continuous error pop up.have to close editor)

But I can see that parameter inserted in the TS.SData.ActualArgs.

 

Regards,

Bharath

 

 

 

 

Re: Extract Information XML Report

$
0
0

Post what you have. The code that's not working.

Re: How to find Configuration file in teststand using FindFile() Function

$
0
0

The last parameter is wrong it must be a Sequence File object, try RunState.SequenceFile instead of "154M2-105-0.seq".


Re: Extract Information XML Report

$
0
0

Thanks for your interest in helping

 

As single Xpath is not working i have extracted the child items at different levels and achieved the result.

The Tutorial (Calling a Function with a Struct Parameter by CVI )does not work

$
0
0

I try to run the "tutorial of Calling a Function with a Struct Parameter by CVI" ,but it does not work.

Even I try the solution folder.

 

When debug the PassStructTest function, it does execute.

After execute, the local struct value in the sequence file keep no change, do not know why.

 

cvi code like below:

struct CVITutorialStruct {
    double measurement;
    char buffer[256];
};

//////////////////////////////////////////
__declspec(dllexport) void PassStructTest(struct CVITutorialStruct *cviStruct)
{
 
 if (cviStruct)
    {
      cviStruct->measurement = 10.0;
      strcpy(cviStruct->buffer, "Average Voltage");
     }
 
 //Insert function body here.
}

Re: How to find Configuration file in teststand using FindFile() Function

$
0
0

Hi,

 

I used below syntax for FindFile() function and it worked fine

 

Syntax:

Boolean FindFile(String fileToFind, Boolean useCurSeqFileDir = True, [String PathToFile], Number promptFlag = 1, Number searchFlag = 1, [Out] [Boolean canceled], Boolean isCommand = False)

 

Expression used :

FindFile ("154M2-108-0_02.csv",True, FileGlobals.absolutePath,1, 1, FileGlobals.userCancelled,    False )

 

 

Thanks for the help....

 

 

Sanket

Re: Pass by pointer broken after non-use

$
0
0

It looks like the IN_cmd_data types don't match between the working version and the broken one.  I noticed it looks like is may be a custom data type: rt_logic_Base_BitSequence_struct_t   in the working version, but in the broken one it is set to Unsigned 32-bit Integer.  Are you able to set that data type to match the old custom one?

Re: The Same Code Work Normal On TS2016 But Doesn't Word On TS2017

$
0
0

Hi James

 

Thanks for your suggestion.

 

I use SequentialModel.seq attached which only do a little modified base on the default models in TS2017.

 

That is to say, it has two Execution Entry Points: Test UUTs and Single Pass.

 

 

Viewing all 24560 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>