Quantcast
Channel: NI TestStand topics
Viewing all 6533 articles
Browse latest View live

Fail finding Android Serial number

$
0
0

Hi!

 

I'm new to both this forum and topic.

 

I have a computer with a local server on it and TestStand as well. It's connected with Ethernet cable via a router to a Android unit (also with Eternet cable). When I open up "Teststand - Simple UI" and run "Test UUT" it fetches test scenarios from the local server and then it asks me for Serial number to the Android unit. I write the correct number but it doesn't find it.

 

When I do the same procedure but with Windows 10 OS instead of Android, it works. There is of course differences between the 2 units; ARM vs x86 for example.

 

So I wonder:

  • Do teststand work with Android/ARM architecture?
  • If so, how can I make it read the serial number?

Best regards,


Test Stand Training with 2019

$
0
0

The downloadable files in the exercises and solution folders for the Developing Test Programs Using TestStand (English, v2017, SP1) training module will not work with LabView2019 and TestStand2019 64 bit versions. Is there a way to get around this issue? What are the possible ways to get this to work? Has anyone else run into this problem? 

 

Mike

How to create multi dut testplan where duts are executed sequencial

$
0
0

Hello,

i want to create a multi dut dut testplan for 100 DUTs.

All DUTs have the same teststeps but different matrix switching.

And: The DUTs should not run parallel but one by one as the needed measurement hardware exists only once.

 

I i would do this with a Batch-Model then Teststand would open 100 execution windows when execution in Teststand.

But if i use the sequencemodel with a 100-loop then i have only one result file.

 

What do i have to do?

 

Thanks

 

How to set labview parallel run in Teststand

$
0
0

Hi all

   I refer with Teststand Demo  Computer Motherboard Test_LabVIEW  folder try to modified parallel run,I have setup over it, still run batch model,someone help me where need to change it,It 's very kind of you. 

 

I want to run as this photo.I want to run as this photo.

TestStand Error

$
0
0

Hi.
I need help.
Running TestStand in my PC environment results in an error.
OS had no problem in win7 but it is happening in Win10.
The contents of the error are as follows.
-----------------------------------------------------------------
Run-Time Error
Details :
An error occurred while performing the switch operation 'Connect' for the following device 'TMP5410'.
Could not perform the switching operation:
Details:This session is not a valid NI Switch Executive virtual device session.(Error = -29003)

Error code :
-17500; Operation Failed.

Location :
Step 'Switch ON' of sequence '1.Shutdown Current' in 'TMP5410_ver.0.1_200522.seq'
------------------------------------------------------------------

TestStand ver. : 2016 Service Pack 1
Lab-view ver. : 16.0f5

I want you to find the answer to my question.

Reading UI messages in the SequenceEditor from a second parallel sequence

$
0
0

Is there a way to read the UI messages from a running sequence in the SequenceEditor in another sequence (in a new thread)? I've tried different scenarios, but unfortunately I didn't make it. Can anyone help me further?
Thanks in advance...

Best way to handle Termination when using DQMH modules in TestStand - Suggestions ?

$
0
0

Hi,

I decided to use DQMH modules with TestStand for a new project.

 

As advised, I used round trips requests to query my modules from my test sequence and get answers from them.

One instrument (communication handled into its DQMH module) is very slow (10s of seconds) to answer to queries. So the round trip request has quite long timeout (max answer time + margin).

 

Now it comes the time to handle termination requested by an operator (terminate button). What are your tips to do this ?

 

Here are some facts and toughts :

  • The timeout being a notifier timeout within the request VI, when it starts waiting for an answer I cannot interrupt it.
  • I should be able to handle when a user ask for a socket to terminate while letting the others running (batch or parallel process model)
  • I should launch and stop the DQMH modules at the 'accurate moment' in my station test execution so I might use PreUUTLoop callback(sequential model) or PreBatchLoop callback (in case I'm using a BatchModel)

I came to the point that I should modify the RoundTrip request by externalising the timeout (so I can set it from my sequence), and looping around the notifier with steps of 100ms (this value is empirical and just an exemple). While looping I can use the Termination Monitor to check if the sequence is terminating. If so, I can stop looping around the notifier and actaully release the steps execution so that TS can terminate the sequence.

Moreover, this way I avoid specializing the module core with the TS API call and handling (would require an helper loop or calling the termination monitor in every MHL cases requiring it). It only specializes round trips requests that I will only use in TestStand.

 

What are your toughts about that ?

Am I missing something ?

Would you do it another way ?

Add Data stored in locals to report with offline results processing

$
0
0

Hi Forum

 

I am trying to extend the database scheme to save the relevant data in a flat structure in uut_result. For this purpose I save some data in locals during the test and try to add it to the table. Unfortunately this context local seems to be unavailable at processing time, I get the error message "Unknown variable or property name Locals.xyz".

 

Is there a way to access the content of the Locals.xyz during offline processing?

 

Thanks, Raphael


TestStand file format

$
0
0

Hi all,

 

I'd like to know dynamicaly/programmaticaly which teststand file is in Ascii file format or in TestStand file format.

in fact, if ascii file I use winmerge to compare. If teststand file format, I use TS File Diff tool.

I see that all TestStand files start with "TSOF1" string. Is it a good way for that?

 

Thanks for your help

Deployment Utility Command Line returned exit code in spite of pass

$
0
0

Hi All,

its my first issue entry and I hope im right here. My problme is this. I try to deploy a project with the command line feature of the deployment utility. If I use all necessary options the deploy starts and works fine. The project is being built successfully. But the command returns the exit code 2. I get the same exit code when the built isn't successfully.

Since I'm using the command line function in a Jenkins batch Script the Jenkins stage is always aborting.

 

Is that correct behavior? What can I do? The exit code should be zero if the built was successfully. I dont want to interpret the log file.

 

I use following command line options:

"C:\\Program Files (x86)\\National Instruments\\TestStand 2017\\Bin\\BuildTSD.exe" /deployTSWorkspace TRUE /workspacePath "example.tsw" /DeployEnvironmentFile TRUE /ActiveEnvironmentFile Environment\Environment.tsenv /createInstaller TRUE /installationName "Installer_example" /installerDirectory "example_Inst" /startMenuItemGroup "example" /defaultInstallationBaseDir ProgramFiles /doNotAskUserForInstallationDirectory FALSE /installerLanguage "German" /installTSEngine TRUE /hideLicenseDialog TRUE /manufacturer "example gmbH" /versionString "0.0.1" /copyLogFiles "deployLog" /SaveTSDFile "example.tsd" /UpgradesandPatchesToInclude "TSEngineandDrivers" "example.tsd"

 

Best regards

Lutz

Propagate subelements of a container to subsequence

$
0
0

I need to propagate some elements of a container 'Locals.SweepValues' to the the same existing container into a subsequence.

 

It seems that I can propagate the complete container but not only some elements. 

Can somebody confirm ?

Python import from subfolder fails with ModuleNotFoundError

$
0
0

I am using Teststand 2019 32bit Evaluation with Python 3.6.3 32bit. 

 

The main python file (eval.py) imports a module (module2.py) located in a subdirectory named 'windows' which is located in the same folder as eval.py.

 

A Python action step is added to the Teststand sequence to create a class instance defined in eval.py to a StationGlobal object. The eval.py code is as follows:

 

class eval():

    def __init__(self)

        from windows.module2 import module2

        self.mod2 = module2()

 

The import line however fails with <class 'ModuleNotFoundError'> No module named 'windows'

 

When eval.py is run using python36 in command terminal it works.

 

The following has been checked:

The Python adapter is properly configured and selected

The directory containing eval.py and windows directory is added to the Teststand Search Directories (with subfolders enabled)

PATH Environment variable is selected

An empty __init__.py file is added to the 'windows' subfolder (some forums suggested this)

Absolute or relative module loading did not make a difference

 

The above mentioned sequence file initially worked on a different fully licensed Teststand 2019 32bit installation running on a different computer but after the second or third run it started to give the same error.

 

 

 

 

SEQUENCE CALL IS PASSED WHEN THE STEPS ARE SKIPPED

$
0
0

Hi All,

 

When the steps are skipped, the status of the  sequence call for the steps was given the status as Passed. Is there any way to make the sequence call status to "Failed" when the steps inside are "Skipped". I had attached a snip of the result. Pls Help

 

A big Thanks in Advance!!!

How to use Evaluate with NewSubProperty

$
0
0

Hello,

 

I am trying to use Evaluate with NewSubProperty, but I am getting an error message

 

 

More Details:

 

1- A step - in runtime - will create a container in 'StationGlobals.TM_Parameters_In_Global'. The name of container is defined in runtime.

#NoValidation(RunState.Main.StationGlobals.TM_Parameters_In_Global.NewSubProperty(Locals.TM_Name,PropValType_Container,False,"",PropOption_DoNothingIfExists))

 

2- The next step will create a new field in the above created container.

#NoValidation(Evaluate("RunState.Main.StationGlobals.TM_Parameters_In_Global." + Parameters.TMname + ".NewSubProperty(" + Locals.ExtractedTM_ParameterValues[Locals.LoopIndex].ParameterName + "\,PropValType_Number\,False\," + Locals.EmptyString + "\,PropOption_DoNothingIfExists)"))

 

and I am getting the following error message:

Severity Rule Category Text File Location Justification to Ignore Error Expressions must evaluate to a value of the expected type General Error in argument 1, 'Evaluate("RunState.Main.StationGlobals.TM_Parameters_In_Global." + Parameters.TMname + ".NewSubProperty(" + Locals.ExtractedTM_ParameterValues[Locals.LoopIndex].ParameterName + "\,PropValType_Number\,False\," + Locals.EmptyString + "\,PropOption_DoNothing, in call to the expression function '#NoValidation'. Error in call to expression function 'Evaluate'. Unexpected token: \ TM_GetGlobalParam_Rev2.0.0.0.seq Seq["CreateUniqueParameters"].Main["Create_TM_container"].TS.PostExpr <None>

 

3- by the way, the following code works without problem (by hard coding the container name in 'StationGlobals.TM_Parameters_In_Global')

#NoValidation(Evaluate("RunState.Main.StationGlobals.TM_Parameters_In_Global.TM_FPU_HF_Prepare_OpenLoop.NewSubProperty(" + Locals.ExtractedTM_ParameterValues[Locals.LoopIndex].ParameterName + ",PropValType_Number,False, \"\",PropOption_DoNothingIfExists)"))

 

any advice how can I fix the code mentioned in step 2?

Looping through parallel model starts at index 1 instead of 0 on second execution

$
0
0

Hello forum

 

I have an issue with looping through the UUT loop. Even though I configured the loop to start at 0 it starts at 1 from the second time I start the test without stopping and restarting the sequence. I attached the modification to the process model as a screenshot.

 

Thanks for any help!

Raphael

loop.png


How to use Evaluate with NewSubProperty

$
0
0

Hello,

 

I am trying to use Evaluate with NewSubProperty, but I am getting an error message

 

 

More Details:

 

1- A step - in runtime - will create a container in 'StationGlobals.TM_Parameters_In_Global'. The name of container is defined in runtime.

 

#NoValidation(RunState.Main.StationGlobals.TM_Parameters_In_Global.NewSubProperty(Locals.TM_Name,PropValType_Container,False,"",PropOption_DoNothingIfExists))

 

 

2- The next step will create a new field in the above created container.

 

#NoValidation(Evaluate("RunState.Main.StationGlobals.TM_Parameters_In_Global." + Parameters.TMname + ".NewSubProperty(" + Locals.ExtractedTM_ParameterValues[Locals.LoopIndex].ParameterName + ",PropValType_Number,False," + Locals.EmptyString + ",PropOption_DoNothingIfExists)"))

 

 

and I am getting the following error message:

 

Severity Rule Category Text File Location Justification to Ignore Error Expressions must evaluate to a value of the expected type General Error in argument 1, 'Evaluate("RunState.Main.StationGlobals.TM_Parameters_In_Global." + Parameters.TMname + ".NewSubProperty(" + Locals.ExtractedTM_ParameterValues[Locals.LoopIndex].ParameterName + "\,PropValType_Number\,False\," + Locals.EmptyString + "\,PropOption_DoNothing, in call to the expression function '#NoValidation'. Error in call to expression function 'Evaluate'. Unexpected token: \ TM_GetGlobalParam_Rev2.0.0.0.seq Seq["CreateUniqueParameters"].Main["Create_TM_container"].TS.PostExpr <None>

 

 

3- by the way, the following code works without problem (by hard coding the container name in 'StationGlobals.TM_Parameters_In_Global')

 

#NoValidation(Evaluate("RunState.Main.StationGlobals.TM_Parameters_In_Global.TM_FPU_HF_Prepare_OpenLoop.NewSubProperty(" + Locals.ExtractedTM_ParameterValues[Locals.LoopIndex].ParameterName + ",PropValType_Number,False, \"\",PropOption_DoNothingIfExists)"))

 

 

any advice how can I fix the code mentioned in step 2?

Log attribute to Database

$
0
0

Hi, 

i am using a MySQL database to log my reports, but i observed that the conditions inside the if's commands does not log to the database 

Screenshot2.png

 I'd like to know if there is any way to log this infromation to the database or if there is any variable that i am missing

Screenshot.png

How to converting string to array

$
0
0

Hi all

  I have a demo,when input string "test123" need to assign array as uutdata[0]="t",uutdata[1]="e",uutdata[2]="s",uutdata[3]="t",uutdata[4]="1",uutdata[5]="2",uutdata[6]="3",why is only assign in element[0],thanks!!

 

why only assign in element[0]why only assign in element[0]

Access Locals.x from offline processing

$
0
0

Hi Forum

 

I am trying to add some Locals to my report database. For this I set the flag "Include in Report" 0x2000 for these variables. However when I try to access them from the offline processing I get the error "Unknown variable or property".

 

How do I access locals saved for the report from offline processing?

 

Thanks

Raphael

 

PS: I followed the instructions from the second Note here: https://knowledge.ni.com/KnowledgeArticleDetails?id=kA00Z0000019QDNSA2&l=de-CH

Before I tried adding it as properties with the instructions from here without success, there was a runtime error creating the variables: https://knowledge.ni.com/KnowledgeArticleDetails?id=kA00Z0000019QDNSA2&l=de-CH

How to disable selected positions in multi dut testplan?

$
0
0

Hello,

i am using the batch model with 50 DUTs.

 

Is there a built-in functionality to skip selected positions from test?

Like test all 50 positions execept 12,19, 39?

 

(Or do i have to check this manually by myself with a StationGlobals.NestInTest[49] variable that is set to true to the positions to test and false to the positions to skip.

And checked with an "if" around all teststeps.)

 

Thanks

 

Viewing all 6533 articles
Browse latest View live


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