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

get step limits and comparsion type in DotNet

$
0
0

When i pass the SequenceContext as an argument to a teststep in DotNet i can retrieve the name of the teststep via seqContext.Step.Name, but how do i get the High and low limit and he comparsion type ?

 

Thanks in advance


Return complex .NET objects in step

$
0
0

Anyone have examples on returning complex .NET objects in a step?  For example, I have the following class and want to return and use in expressions.  How can I get access to the public properties?

 

public class Person

{

    public string FirstName { get; set; }

    public string LastName { get; set; }

}

 

Any help is appreciated.

I CAN'T SEE ON THE DISPLAY BUT TESTSTAND IS OPENING

$
0
0

When I run it, it stays like this.

Could you help ?

teststand.png

String can not be set correctly by Teststand - Set Property value.vi

$
0
0

I have created a custom step to update a string variable in my test sequence. The step will call Labview Teststand - Set Property value.vi to update the variable with string type. The strings are actually non-displayable, and I found some of the characters are changed after calling Set Property value.vi.

For example, the hex display of the string is "8518 807E 0940 C0DC CC90 C0F0 A82E ECB3", and the actually value we got in the test sequence is “3F80 7E09 40C0 DCCC 90C0 F03F ECB3” by calling Set Property value.vi. It seems "Teststand - Set Property value.vi" replace some of the characters to 0x3F - "8518" is changed to "3F" and "A82E" is changed to "3F". What happened? Can someone help me? Very appreciate.

I'm using Teststand/Labview 2012.

 

 

Deployment error Could not create the following LabVIEW project items

$
0
0

I have problems building deployment using TS Deployment utility toolkit:

 

Untitled.png

 

It says "Could not create the following LabVIEW project items" but what does it mean? How to fix it? there is not any details of error description. Log file and Technical Log file does not contain any useful information...I cannot resolve error restarting TS & computer.

 

The missing VI "Check object lengths" is a part of a Modbus.lvproj that is using LabVIEW modbus library and there is not any conflicts inside of a project. Also Sequence file works fine and there is not any.

 

Any suggestions what could I try? There is also not any answer from Support request yet so I posted this error on the forum.

 

LabVIEW (Hex 0x402) VI Reference is invalid when selecting Run-Time Engine as adapter

$
0
0

I have Modbus Library.lvproj downloaded from :

 

http://www.ni.com/example/29756/en/ 

 

When I use Labview developement system for Labview Adapter configuration, I can call VIs with no problem:

ok.PNG

 

But when I select Labview run time engine for Labview Adapter configuration it says:

 

NOK.png

 

I tried to mass compile Modbus project but it doesn't help. What can I try??

passing parameters to a methode

$
0
0

I use Teststand 2014 and DotNet and i want to pass testlimits as parameters to a subsequence and set these testlimits in Step settings -> Limits like :

 

image.png

Now i want to use the limits in my DotNet code so i import the SequenceContext as an argument. But when i check the limits they are 0 in the SequenceContext (see code below). When i pass the parameters.limitLow and Parameters.limitHigh as arguments to this function, the correct values are passed. Why is passing limits via the SequenceContext not working ?

 

code.JPG

 

 

 

Teststand 2019 32-bit hangs and then crash when inserting value of parameter in TS API

$
0
0

I have created sequence file and it worked fine. After creating custom data type of Labview (cluster with coupple of enums inside) it appears that TS has problems with it. The TS Sequence editor crashes everytime that I insert value of parameter inside of any step.

 

I'm searching for any suggestions what can I possible try to fix this? Crashes are not present in other sequence files when I edit them. There is also not any error thrown when Sequence Editor is hanged. Also there is not any error described of displayed when I open TS again.

freeze1.png


Unable to load Vi in teststand Error Code -18002

$
0
0

Hi,

 

I'm trying to debug a sequence in teststand, there is a step where I call a Labview VI when it running I got this error : 

"Error Code-18002 Unable to Load Labview VI ( ../path/...) . LabView already has the VI (../Path/..) "

 

Someone have an issue or explanation please?

 

Chakib11_0-1597224992523.png

 

Inverting a output variable logic before post into Step.Result.Error.Ocurred  how to?

$
0
0

Dears, I'm having trouble to change the value of my boolean before log it on the  ExecutinFlag.png

 

In my output(ExecutionFlag), I use a different logic, where FALSE means not worked, and TRUE means worked.

So, I need help in matters to or change the teststand to a negative logic or change the variable before post it into the Step.Result.Error.Ocurred .

 

I have other methods to do this, creating a different statement, and after it send this value to the Error Ocurred, however, all the solutions I have are not convinient, for this reason I decided to post it here.

Creating a shorts test program with PXI-2532B 512-crosspoint matrix switch module

$
0
0

Hello, I've been trying to create a shorts test program with a PXI-2532B matrix switch module, using NI MAX and TestStand using the switching option, I'm new to the programs, still learning, but the thing is that I've try different relay logic and I can make it work, my test program doesn't recognize when a short is presented between (for example) Channels GND and CH001 or channels GND and CH002.

 

Can someone help me with this problem? I just need to resolve the logic issue to make it work so that I can complete my test program

veristand custom device

$
0
0

Hello ,

 

I have been trying to add veristand custom device into the system definition file from third party Opal rt company.It shows me error all the time even though in another project the custom device was added successfuly.Has anyone faced such error?

Importing Type Definitions from Library Header?

$
0
0

Is there a way to take a CVI library header and import the variable types into TestStand as custom types, specifically for enums, but would be nice if there's a general method?

 

I see that CVI can recognize that an enum is used as a parameter when loading the library DLL to call a lib function, so I figure there should be some easier way to import the definitions rather than having to recreate them manually in the Types window.

Displaying the total number PCB(300) tested in the test report

$
0
0

Hi,

 

I am currently using both Teststand 2010/2017. We are testing multiple printed circuit board (PCB) and I wanted to find out whether there is a way that in Teststand I could display the total number of PCB the operator tested in the test report. For example: If the operator test a total of 200 PCBs (P/N XXXXX, Total : 200) I would like to display that total number in the test report. I have looked, but I could not find any thing I could use, maybe I am not looking hard enough.

 

Ex. Operator tested a total 300 boards (P/N: 1120000) in one day, and I want to display that total number(300) in the test report. Any help would be greatly appreciated.

 

Thank you,

WJ

 

 

 

rounding after comma


Polling variables from c# or python

$
0
0

Does anybody have a minimum viable example of how to poll a variable in teststand, from either C# or Python. 

manipulate msg popup time-to-close on the fly

$
0
0

Is there a way to initiate a msg popup with 60 sec timeout, but change the remaing time while the msg popup is active ? 

running led analyzer in labview

$
0
0

I have a led analyzer. How do I test this analyzer in labview?

Reading/Extracting certain data from function output

$
0
0

Hi guys

I am quite lost on how to do this step, so I hope you are able to help me out somewhat. Thanks in advance!

I am using TestStand together with a different external plugin. This plugin prints out a 40 word (1 word = 4 HEX). I would like to know how I extract some of this data - in example like word 7 into in a global variable or a byte (First half of a Word) 

I use like a CSP String Value Test together with the plugin, so retreive each word. How do I save this word as a variable or similar? Thanks

Andedam_0-1597661127375.png

 



Please help me out. Thank you in advance!


Create PropertyObject from a variable

$
0
0

Hello together,

 

I have an issues I cannot solve:

 

I have a local variable "Locals.variable" contains a string with the value "test".

I have a parameter container with several elements.

One of the elements has the name "test" -> "Parameters.container.test"

 

I need to access the PropertyObject of "Parameters.container.test" through the Variable "Locals.variable" value "test".

 

Like

Parameters.container.(Access through Locals.variable value "test").

 

Backround of the questions is the following task:

I read from a text file different values. These values I want to put into the parameters without matching every parameter inside the sequence. The textfile contain topic (name of the parameter) and the value.

I am using a while loop to go through the whole textfile and read every name of the parameter and match the values to the parameter inside the testsequence.

 

I hope my issue is clear.

 

Thanks in advance.

 

Viewing all 6529 articles
Browse latest View live


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