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

Hex String Limit Comparision

$
0
0

Hi Members,

 

Is there any option to limit checking for Hex string

 

I have low limit  30303030 (Hex) and High Limit 3F3F3F3F (HEX) my measured value should fall in between this limits.

these are the CAN response Data, Converted 8 byte array to hex string. Similarly I have many test cases where the hex string length(CAN Response Array) is varying

 

Can anyone suggest the method for the above requirement.

 

NI FOrum.PNG


Re: Hex String Limit Comparision

$
0
0

Is 3EFFFFFF a valid value? Or should each byte be between 30 and 3F? May it be that the returned value is a ascii reperesentation of a hexadecimal number between 0x0000 and 0xFFFF?

If each byte should be between 30 and 3F i would suggest to use Multiple Numeric Limit Test and set a limit for each of the 4 bytes. When you select a limit there is also possibility to select Numeric Format to be hexadecimal.

If 3EFFFFFF and similar values is valid i would suggest to cast the 4 bytes to a U32 instead of converting it to a string. 

But from your values i may think that the real value you get as response is the ASCII representation of 0000 to FFFF. In that case the correct thing would be to convert your value to a number. It would also be necessery to know if it is a signed or unsigned number. 

I use TestStand 2012 so it may be that newer teststand versions have better inbuilt limit checking for strings .

Re: Teststand Operator Interface and C++ MFC interface

$
0
0

Thanks a lot!

Working now with property 'Width' set to 200.

Re: Hex String Limit Comparision

$
0
0

Hi,

 

Thanks for your Reply.

Here I need to compare entire information, Can't compare byte by byte. Also some of the test cases having more than 20 bytes. I think LabVIEW supports max 8 byte (U64) data only.Please correct me if i m wrong.

 

 

Re: Hex String Limit Comparision

$
0
0

Hi VipinrakKK, are you sure that is necessary the comparison of all bytes? I say it because I work with many protocols and even when the entire response is composed of several bytes I take a part to verify the important parts 1 by 1, actually the first verification is a valid response based on 3 or 4 bytes at maximum. In this case I prefer convert the hex response to decimal and using a Numeric Limit Test step.

Re: Set .NET Step Module properties via API from c#

Re: Hex String Limit Comparision

$
0
0

Sorry, i did not read your post completely, i only saw your example and limits. And is now a little bit confused since you mention an 8 byte array and your example has 4 bytes.

If there is more bytes, will there be other limits and other type of data?


If you for example has 5 bytes which gives string "3132333435" is the limit still "30303030" to "3F3F3F3F", or is there another limit in those cases?

And also, is the string value "3EFFFFFF" allowed? As a string it is between "30303030" and "3F3F3F3F".


Or should each byte be between 30 and 3F?
If that is the case it may be that it will work to test one element in teststand and tell it to repeat the measurement. 
niforum_2.jpg

How to assign a parameter with a call to a .Net method

$
0
0

I need to assign a parameter (of type Object Reference) with a call to a static .Net method.  For example, I wish to assign a parameter by calling TimeSpan.FromSeconds.

 

I asked a similar question previously and was directed to here.  However, I do not understand the answer there.

 

 


Re: Announcing the NI Package Builder 2018 Drop!

$
0
0

Where can I get the new package builder? 2019?

Re: Announcing the NI Package Builder 2018 Drop!

$
0
0

It's under utilities in NI Package Manager and it is included in the TestStand 2019 as an additional package!

Re: Announcing the NI Package Builder 2018 Drop!

$
0
0

Forgot to mention.  I don't have internet access from NIPM.  I need the package.

Re: Set .NET Step Module properties via API from c#

$
0
0

That was the missing link.

Thanks!

 

Follow up question if I may

 

When I call DotNetCall.LoadPrototypeFromSignature, I'm using the use existing object calls option.

 

That works except I can't seem to find how to add the library specific public function call.

As in "Use Exisiting Object Call (MyNamespace.MyClass).XXXX()

 

Doesn't seem like I can load the .XXXX part

 

Do I need to switch over to SetIncompleteSignature()

 

Thanks for your time

 

 

 

 

 

Str() function: Example using "%expr"

$
0
0

TestStand 2016 (64-bit) on Windows 10 Pro (64-bit):

 

Ran across a formatting parameter in Help describing a '%expr' format code under Str() but there is no example provided and nothing was found under Examples.

 

Anyone have one??  I've attempted several arguments/formats but none seem any more special than what one would expect of '%s'.

 

The Help text reads as:

Note: Use a format code of %expr to format an expression for display. The expression must be a localized expression. Specify combinations of the following values for parameter 3 to control how the expression is formatted:
   0x1 - Format precondition-style expressions into a simpler format.
   0x2 - Insert step name comments for expressions that use unique step Ids.
   0x4 - Use shorthand for RunState.Sequence.<StepGroup>["step"] in expression.
   0x8 - Replace unique step Ids with step names.

 

 

Start Parallel Test with a LabVIEW VI

$
0
0

Hello all,

 

A fellow engineer and I have been banging our heads trying to get a test socket to start without having to enter a serial number, instead relying on a PLC bit detecting a unit placed in our test station.  Here's the scenario:

  • We've been using the Parallel Model as our basis for designing our TestStand.  We're going to work with just 2 test sockets
  • We want to replace the CVI dialog that is used in the ParallelModel sequence, Run UUT Info Dialog subsequence, with a LabVIEW VI for easier editing/troubleshooting, and to work around the serial number requirement.
  • Before doing the code for the PLC, we want to figure out how to tell TestStand to continue/restart/abort a test from LabVIEW.  In the CVI code of the parallel UUT info dialog that is used, it seems like it passes a string with the test socket number and a string that is something along the lines of "Parameters.ModelData.TestSockets[index].WaitForControllerNotification", but we cannot find away to do this via a LabVIEW VI for the life of us.

Some examples I've found on the knowledge base were made in TestStand 3, we're using TestStand 2014 now.  Has anyone had any success in telling TestStand to start a test for a test socket via LabVIEW?

Re: Hex String Limit Comparision

$
0
0

I also wonder what the information you get from the CAN device represent. Does a 4 byte response and a 20 byte response contain same type of measurement? Is it possible to see an example of a 20 byte response?


Re: Hex String Limit Comparision

$
0
0

Ok,

 

I think i have to do the same. Extract the CAN parameters and compare. Its a mistake in Test Case I believe

How to include process cleanup results in teststand report

$
0
0

I want to include results from ProcessCleanup sequence in my teststand report, how can I dod this?

Defining measurement points

$
0
0

Hi,

 

I would like to set teststand to measure certain channels in my DAQ-device (U2355A), but I am not sure how this is done.

 

I have a VI that sets certain digital bit up and this is when measurement should happen. I tried setting "numeric limit test" -test and succesfully called correct vi for this, but I cant find where I am suppose to set correct channels to measure. There are three channels for this.

Re: How to include process cleanup results in teststand report

$
0
0

ProcessCleanup is called only once per execution. Therefore, it is not designed to create any result relevant for a specific UUT test. Remember that the loop of UUTs (Test UUTs entry point), which is responsible for testing multiple UUTs sequentially, is not including ProcessCleanup. Therefore, the standard reporting process of TS doesn't involve ProcessCleanup as it is part of the UUT loop.

 

That being said, you can add code to load a report file and modify it. This is the only option you have.

TestStand Numeric Multiple Limit Test Data Logging to SQL Database using Stored Procedures

$
0
0
We are receiving a foreign key constraint error when attempting to log the result of a multiple numeric limit test to a SQL Server database. Any suggestions?
Viewing all 24489 articles
Browse latest View live


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