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

Display "About NI TestStand..." from LabVIEW

$
0
0

I'm creating a LabVIEW UI that calls TestStand to run sequence files and I want to include a menu Item to display the "About NI TestStand..." window, but I can seem to figure out to tell TestStand to launch the window from LabVIEW. 

 

Can anyone direct me to the appropriate API call or example?


Re: executing locked sequence file

$
0
0

The edit time copy of the file globals are protected (even at runtime), however you can access the runtime copy of the file globals programmatically as follows:

 

#NoValidation(Locals.FileGlobals.VariableName = *RunState.Execution.GetFileGlobals(RunState.ProcessModelClient).GetPropertyObject("VariableName", 0))

 

Another option is to use the parameters of a sequence instead. Those are unprotected by default, even at edit time. For example:

 

#NoValidation(Locals.FileGlobals.VariableName = RunState.ProcessModelClient.Data.Seq["MainSequence"].Parameters.VariableName)

 

Hope this helps. Let me know if you have any questions related to this.

-Doug

Re: String Array send to a Variant Input gives System Level Exception -17502

$
0
0

You mean that the parameter on the LabVIEW VI is a variant and you are passing in an array of strings from TestStand and then in the VI using a "Variant to Data" node to convert the value back into an array of strings correct?

 

What version of TestStand and LabVIEW are you using? I'm having trouble reproducing the problem with TestStand 2014 and Labview 2012 SP1.

 

-Doug

Re: Command Line Call From TestExec With TestStand 2014

$
0
0

When a UI is closed all sequence files are already closed. That is a standard part of the cleanup when the process is shutdown. What exactly is the problem you are seeing? Is it just that you don't want them to reopen the next time the UI is launched? If so that is just a setting in the ApplicationMgr object of the UI, ApplicationMgr.ReloadSequenceFilesOnStart. You can set this property in the designer of whatever programming language you use to build your UI, or set it programmatically before you call Start() on the ApplicationMgr.

 

Hope this helps,

-Doug

Re: Display "About NI TestStand..." from LabVIEW

$
0
0

In the full featured UI that ships with TestStand it shows how to add and use the menus or submenus from the Sequence Editor.  I would look in there and mimic what they are doing.

 

Regards,

 

Re: Command Line Call From TestExec With TestStand 2014

$
0
0

Hi Doug,

 

Thank you for the answer. I just don't want them to reopen the next time the UI is launched. I could set the property of the Application Manager.ReloadSequeceFilesOnStart. 

 

Thanks again

 

Best Regards from Switzerland

 

Paul

Re: String Array send to a Variant Input gives System Level Exception -17502

$
0
0

hi Doug,

 

Ans: Yes..

 

I am using Teststand 2012 & labview 2012

 

I get the Issue in Teststand ,  Teststand   doesnt even go in the vi for execution.

 

the png file shows

 

How to replace(assign) a part of elements of an array in TestStand?

$
0
0

Hello,

 

I'd like to replace or assign values to the elements of an array.

For example, I have a local variable with 6 elements, Locals.A = {1, 2, 3, 4, 5, 6},

and I'd like to make it to be {1, 2, 13, 14, 5, 6}.

As a result, I add an expression and write "Locals.A[2..3] = {13, 14}", but it failed.

Is it possible to replace a part of an array?

 

My actual question is that I want to pass the parameters of a sequence to a local variable of the MainSequence,like the attached image.

I hope I can assign the parameter(array of 5 elements) to the range from 5th to 9th element of the  Local Variable.

Could someone give me any suggestion? Thanks a lot!

 

20141001002.JPG


Re: How to add some steps before the Use Auto Scheduled Resource within Auto Schedule

$
0
0

Hi, Jiggawax,


Very thanks your detailed explanation, I'll think about what you suggested:smileyhappy:

 

return array to teststand from dll

$
0
0

Hello,

 

I have created a very simple custom step type, which has a dll module. The dll has been compiled in LV2010. The function in the dll receives a "Config" cluster from TS, and returns an array of numbers.

 

The Config container is a custom data type, passing this to the DLL is working.

 

The returning array of numbers has also a custom data type, as it should be handles as a LabView array. In the custom step type I have added a "Response" variable of this custom data type. Additionally, I have added a local variable in the MainSequence of this custom data type.

 

Both custom data types I have created according to this knowledge base.

http://digital.ni.com/public.nsf/allkb/22BF02003B4588808625717F003ECD67?OpenDocument

 

And now comes the point: on the specify module page, I can select the TestStand variable, where the returning array should be written. It is working, if the returning array goes to the local variable. But it doesn't work, if the returning array will be passed to the Step.Response variable. The Step.Response variable has the same type, as the local variable. So why doesn't it work with the Step.Response??? In this case, the Step,Response array stays empty.

 

Attached you find a sequence with both working and not working steps.

 

Madottati

 

Re: Display "About NI TestStand..." from LabVIEW

$
0
0

The Example you mentioned was informative, but I see can't seem to find a way to display the "About NI TestStand..." dialog. The list of commands to bind to menu itemsm via Insert Command into Menu.vi, has just about every item in the TestStand help except the About item.

 

This is the dialog I'm looking for.

2014_10_01_09_07_09_TestStand_small.png

Re: Using Open Test Architecture (OTA) Library Methods In TestStand

Re: Set Limits with "Don't Cares" or Partial HEX Words?

$
0
0

GSinMN, 

 

One potential option could be to use a bitwise AND. For example,  0x00000AB AND 0x12345AB should return 0x00000AB, setting 0x00000AB as your lower limit. 

Re: executing locked sequence file

$
0
0

Doug --

 

Thanks -- your suggestion worked just right.

Things are working well now.

Warren

回應: How to replace(assign) a part of elements of an array in TestStand?

$
0
0

Hi,

 

I felt it should be okay to do so, thus I tested with the attached sequence and it ran correctly.

The values in locals.local of MainSequence pass to the parameter of Sequence successfully.

Is there any misunderstanding regarding your problem?


回應: How to replace(assign) a part of elements of an array in TestStand?

$
0
0

Hi, JoeyChiu,

 

Very thanks to your reply.

I'm sorry my English is not good so that it might mislead you. I'll try my best to make it clear enough for you.

After running your sequence, I can see you'd like to pass the values of the local variable to the parameter, and popup the value to ensure it works.

My question is I'd like to pass the parameter to the local variable in the mainsequence.

Since the parameter is smaller array than the local variable, I originally thought I can replace the subset of the local variable.

Maybe the above description still confuse you, let's see your sequence.

There's a local variable in the mainsequence : {"0", "1", "2", "3", "4", "5", "6", "7", "8", "9"},

and I'd like to generate an array, say {"a", "b", "c", "d", "e"}, and set this array to be the parameters by a statement : Parameters.parameter = {"a","b","c","d","e"},

 

20141002001.JPG

 

and I hope I can pass this parameter back into the mainsequence so that I add the expression Locals.local[5..9] in the value field.

 

20141002002.JPG

 

 

My goal is to make Locals.Local to be {"0", "1", "2", "3", "4", "a", "b", "c", "d", "e"}.

In other words, I'd just like to know how to assign the values of a portion of an array.

I hope I don't mix you a lot by the above description:smileytongue:

Re: Display "About NI TestStand..." from LabVIEW

$
0
0

The About dialog is not built into the engine, but there are engine methods to get all of the information displayed on it.

 

See the API help for the following:

 

Engine.VersionString

Engine.GetLicenseDescription()

Engine.GetProductRegistrationInfo()

 

Hope this helps,

-Doug

Re: String Array send to a Variant Input gives System Level Exception -17502

$
0
0

Is Locals.CurrElement an array of strings or just a single string?

 

I tried with TS 2012sp1 and LabVIEW 2012sp1 and it's working fine for me, both with an array of strings and a single string. Are you using the Variant to Data node to convert the variant to a string array or string? If not, try doing so, since that is what I am doing, and it's working.

 

Here's a screenshot of the code in the VI I'm using. It passes in the string array as a variant and converts it to a string array and passes that back out as an output.

 

forum.png

 

Hope this helps,

-Doug

Re: Display "About NI TestStand..." from LabVIEW

$
0
0

Ahhh.... That would explain why I can't find it. 

 

I kinda assumed the it would be included, since the same window is included in the LabVIEW Run-Time.

 

Thanks for the help.

回應: How to replace(assign) a part of elements of an array in TestStand?

$
0
0

The [n..m] notation makes a copy of those elements in a new array, so that will not work.

 

I recommend one of the following:

 

1) Pass the whole array by reference, but only update the ones you want to in the subsequence.

 

or

 

2) Make a copy of the subset of elements in a new local variable before the module call. Then pass that copy by reference into the module. Then after the module call, copy the elements back to the locations in the original array.

 

Hope this helps,

-Doug

Viewing all 24388 articles
Browse latest View live


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