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

Re: Adding Elements To A Container Thats An Element In An Array

$
0
0

 

Hey Liam,

 

An array can only be one type of element, and you are attempting to create an array that contains multiple different data types. The following two lines create IO (container) which contains IOToBeProcessed (array of containers) -

 

 

ThisContext.AsPropertyObject.SetPropertyObject("Locals.IO",PropOption_InsertIfMissing,ThisContext.Engine.NewPropertyObject(PropValType_Container,False,"",0)),
ThisContext.AsPropertyObject.SetPropertyObject("Locals.IO.IOToBeProcessed",PropOption_InsertIfMissing,ThisContext.Engine.NewPropertyObject(PropValType_Container,True,"",0)),

 

Therefore, to access or create new properties within the array of containers, you will have to index the array and create an element within each specific container in the array. For example, in the following three lines, within the first container in the array (element 0), Name and Modbus Address properties are being added to that container, and to the second container in the array (element 1), Type is being added. 

 

Locals.SetValString("IO.IOToBeProcessed[0].Name",PropOption_InsertIfMissing,""),
Locals.SetValNumber("IO.IOToBeProcessed[0].Modbus Address",PropOption_InsertIfMissing,0),
Locals.SetValString("IO.IOToBeProcessed[1].Type",PropOption_InsertIfMissing,""),

 See the variables window during runtime:

image.png

 


Re: Compiling User Interfaces MFC

$
0
0

Hello,

 

The API folder is located at C:\Program Files (x86)\National Instruments\TestStand 2017\API\VC or C:\Program Files (x86)\National Instruments\TestStand 2017\API\VC depending on the bitness of your build. 

To ensure that these files are included in the project, in Visual Studio, go to Project >> Properties >> VC++ Directories >> Include Directories and select the drop down and choose "Edit..." Add the directories for the appropriate bitness to the list. 

 

Re: Compiling User Interfaces MFC

$
0
0

Hi 2n2222user,

 

I was also able to navigate to the <TestStand>\API\VC you were referring to by following this path "C:\Program Files (x86)\National Instruments\TestStand 2017\API\VC". There were a lot of .cpp files inside. Note that if you click on Examples it will take you out of the Program Files (x86) folder.

 

Can you give more explanation on what you are trying to do and the difficulties you are having. Are you getting any messages when you are recompiling?

 

Michael B.

Applications Engineer

National Instruments 

Re: How to Read and Write 2D Array from Teststand in Labview using Set and Get property Value method

$
0
0

Yes , its works fine for 1D Array, but 2D Array it shows error

Re: In BatchModel, Terminate All causes higher order threads (socket 1, socket 2, etc.) to ignore execution of lowest order thread (socket 0)

Re: ExpandPathMacros/FindFile

Re: How to control flow of each UUT with a start button in UI (C# UI "Test UUTs Sequential Model")

$
0
0

Thanks Norbert for that solution!

 

I'm sorry I haven't answered quickly as I had many thing else on the way to do.

I will try to see how to override the callback from within C# code and figure out what is the final solution to this problem.

 

As soon as I can, I'll give feedback here.

Re: How to Read and Write 2D Array from Teststand in Labview using Set and Get property Value method

$
0
0

Checked and works fine Even for 2D Array. Please Make sure you have created Variable with 2D Array and Calling Proper Names.

Its Better to share the Code which you have tried for better update.


Re: TestStand Database Viewer View Data Error

$
0
0

I'm having the same issue.  Were you able to figure out the issue?

Deploying cutomized tools menu as part of framework and issue in loading few VI when executing user interface

$
0
0

Hi ,

I'm using a customized Teststand simple user interface for my application.

I have customized the Tools menu from Teststand and invoked Teststand sequence from the tools menu items.

After deploying the Teststand framework and user interface, the customised Tools menu options is not working when the menu item is clicked on.
I have included Toolsmenu.ini file when creating the Teststand framework image.

And, also when executing the user interface initially, few vi and sequence files (these are configured through search directory) are not loading automatically and user has to select these files manually. From the next execution onwards this is automatically done.
I have included the searchdirectory.cfg file as part of framework.

If any one could help me on the issues related to Menu items not invoking the sequence file and the sequence file not autmatically loaded during the application execution, that would help me to move further.

Regards,
Anand

 

 

 

 

Re: Change report folder programmatically with an expression in Report options window.

$
0
0

Hi SercoSteveB,

It make sense of using StationGlobals but I thought of creating my own file name in the format mentioned in Report options setting.

So, I managed to check for report options callback and then adding expression to check for specific sequence and creating report filename based on format specified in ReportOptions setting.

2018-03-24_1707.png

 

Thanks for your help!

Include In Report in ProcessSetup

$
0
0

Hi All,

 

I'm developing my own Process Model and have a question about including items in the report when they are not in MainSequence. I am performing some connection tests in the "ProcessSetup" call back and want to include the results in my report. So far I've tried the obvious "Include In Report" and I've also tried to add the information as an Additional Result, but they still don't appear.

 

Is this possible?

troncature au décimal.

$
0
0

Bonjour, 
Tout d'abord, merci aux personnes qui prendront leurs temps pour me répondre.
Actuellement, je fais une mesure de tension sur une carte électronique, voici les limites :
Tol_High = 10.55V et  Tol8low = 12.55V


Ma mesure est 12.555V et ma séquence tombe en défaut. 
Quelqu'un pourrait m'aider sur ce problème SVP ? Je souhaite tronquer ma mesure afin de retenir que 12.55V au lieu de 12.555V
------------------------------------------------------------------------------------------------------------------------

Hello, First of all, thank you to the people who will take their time to answer me. Currently, I am doing a voltage measurement on an electronic card, here are the limits:

Tol_High = 10.55V and Tol8low = 12.55V My measurement is 12.555V and my sequence falls into default.

Can someone help me with this problem please? I wish to truncate my measure in order to remember that 12.55V instead of 12.555V thank you in advance
Thank's

Sequence call alternative?

$
0
0

Hello everyone,

a Sequence call is causing me errors and problems.

A Sequence File is already done in Teststand and executes without errors.

 

My taks is to make a VI that Logs Errors into a File and then 'restarts' the Test from a specific point(PreUUT).

The sequence looks like this:

ERRORLOGGER SEQUENCE.PNG

 

The Error Logger works pretty fine. The problem is that after the PreUUT Sequence Call the Test returns to this Sequence, finishes it and returns to the exact place where the intial error occured without reseting any values or configurations.

 

Is there any alternative to avoid this problem? Do you have any idea?

Re: Sequence call alternative?

$
0
0

Hi,

 

To restart the execution of your sequences with the default property values, disable the sequence property 'Optimize Non-Reentrant Calls to this sequence' of your sequences

 

Regards

Laurent


Re: troncature au décimal.

$
0
0

Hi,

 

Assume Locals.Meas is your measurement. Create a statement step with the expression

 

Locals.Meas = Round (Locals.Meas * 100) / 100

 

Regards

Laurent

Re: Sequence call alternative?

$
0
0

Hi, thanks for your answer.

I did what you said but the bugs are still there.

 

Is it possible to run the CleanUp of a Sequence from another Sequence?

or is it possible to move between Sequences without going back?deswegen gibts Fehler.png

 

 

 

Because that's what the Sequence Call does, it calls the Sequence and when it's done, the programs comes back. Is there any method to avoid that?

Re: Sequence call alternative?

$
0
0

Why don't you terminate the current execution and start another one ?

 

In you PostStepRuntimeError callback, don't ignore the error and terminate or abort the current execution. You can then start a new execution with PreUUT, Mainsequence ...

If you disable the property as I said in my previous mail, you will run the sequences with the default property values.

 

Regards

Laurent

Re: Sequence call alternative?

$
0
0

Because my task is also to Handle the Errors and Automate the execution of the Test.

 

One of the requirements is not to show any Error Dialog to the User when the error occurs in specific Sequences (MainSequence, Entwicklung, EOL, Referenz)

 

If i terminate it will pop a Error Dialog. I already disabled the property you mentioned, but I realized that's not the problem, the actual problem is to 'restart' the sequences, so it starts from the beginning and not where from where the error ocurred.

 

I'm trying to use the Execution.Restart method but i don't know how to use it. Is it an Action? or how do you place it in the Sequence. I'm sorry i'm relatively new to Teststand. And thank you for your answers.

Teststand C# UI: Icon UUTStatus of current execution in Listbar

$
0
0

Hi,

I use the batch-model to test some UUTs, i'd like to connect the listbar icons to the result status of the soket. My listbar-page is connected to the ExecutionViewMgr, currently the icon change to "fail" after report generation, i'd like to indicate at runtime if a step fails. A picture say more than words Smiley Happy please take a look of the attached picture.

 

is my intention possible?

 

Viewing all 24579 articles
Browse latest View live


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