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

How can I create a function using TestStand variables and call it from a step's Pre-Expression?

$
0
0

In one sequence I have dozens of Pre-Expressions which are almost the same thing, like this...

 

Locals.tagID = (Parameters.singlePhaseEnabled ? "L" : "D") & Str(Locals.phase) & "006"

 

...and the only thing different is that three digit string at the end ("006" will vary). How can I write a function that I can call from a step's Pre-Expression so it would look something like this? ...

 

Locals.tagID = MyNewFunction("006")


shutdown windows7 with a Teststand sequence running

$
0
0

Hello,

 

We ported our application from Teststand 3.5 on Windows XP to Teststand 2014 with Windows7.

The sequence is started with testexec.exe to launch the application.

 

On WindowsXP, when user push the power button of the machine, windows shutdowns and every thing is OK.

On Windows7, we have a popup window from TestExec to confirm shutdown process with running sequence.

Because user has no keyboard, nor mouse, on the machine, it is a problem created by our new version of the application.

 

What are your advices to correct this?

My IT colleague, looks in Windows configuration to force shutdown even if an application cries but I think there is a specific setting to be used on Teststand side to be OK.

dynamically loaded vi parameters

$
0
0

I have a vi set up to load dynamically. And it is working.

 

BUt, I have a dummy vi in the step settings.

 

Does the vi specified in the step settings for the dynamically loaded step have to include the same parameters as the target vi?

 

If not, how do youspecify the parameters when there is no prototype? (i.e. no vi specified in the step setings)

 

Regards,

Mac

Lock in amplifier start up kit

$
0
0

Halo everyone,

I'm using the lab view lock in amplifier start up kit but I can't understand the parameters that i'm supposed to input. Can anyone please assist?

What is the TC? TC LPF? The difference between this two? What is the meaning of the runtime?

If some one saw a documentation I'll be happy to recieve it.

Thank you for your help

Ariel

python call teststand engine

$
0
0
I use python and teststand engine to customize solution.But I have some questions about it. 1,code as below: tsEngine = win32com.client.Dispatch("TestStand.Engine.1") print "TestStand %s.%s ready" % (tsEngine.MajorVersion, tsEngine.MinorVersion) tsEngine.UIMessagePollingEnabled = True sequencePath = os.path.join(cwd, 'MySequence.seq') seqFile = tsEngine.GetSequenceFileEx(sequencePath) execution = tsEngine.NewExecution(seqFile, "MainSequence", seqFile, False, 0) execution.WaitForEndEx(60000) execution = None released = tsEngine.ReleaseSequenceFileEx(seqFile, 0x4) seqFile = None #coreleased = tsEngine.ReleaseSequenceFileEx() tsEngine.ShutDown(True) tsEngine = None ## Execution freezes here 2,I need to use UImessage to get pass/fail result of "MySequence.seq".So the first step,I set "tsEngine.UIMessagePollingEnabled = True".But python print these error: Traceback (most recent call last): File "D:\TS_solution\CallTestStand.py", line 39, in released = tsEngine.ReleaseSequenceFileEx(seqFile, 0x4) File "", line 3, in ReleaseSequenceFileEx pywintypes.com_error: (-2147352567, '\xb7\xa2\xc9\xfa\xd2\xe2\xcd\xe2\xa1\xa3', (0, u'TSAPI', u"Unable to unload sequence file 'MySequence.seq' because it is in use, possibly because it is executing.", None, 0, -17213), None) 3,I comment "tsEngine.UIMessagePollingEnabled = True",then teststand pop-up warning windows,show as below: References to PropertyObjects were not released properly. Total number of objects: 53 Number of top-level objects: 13 Note: Some top-level objects may be included if they are referenced by an incorrectly released top-level object. For example, an unreleased SequenceContext object references a SequenceFile object. The following top-level objects were not released: Executions [1 object(s) not released] Type Definitions [2 object(s) not released] Type Definition #1: Name: CommonResults Type Definition #2: Name: Error PropertyObjects [6 object(s) not released] PropertyObject #1: Type: ActiveX Reference Value: Nothing PropertyObject #2: Type: ActiveX Reference Value: Nothing PropertyObject #3: Type: Obj PropertyObject #4: Type: Array of Containers PropertyObject #5: Type: Array of Containers PropertyObject #6: Type: Array of Containers And the following uncategorized objects: UIMessage (TEMessage) UIMessage (TEMessage) Report EditArgs 4,How can I call Teststand API--UImessage class through Python?

new python call teststand engine

$
0
0

I re-write my issue in new message.Thanks very much for altenbach's remindding.


I use python and teststand engine to customize solution.But I have some questions about it.
1,code as below:

tsEngine = win32com.client.Dispatch("TestStand.Engine.1") 
print "TestStand %s.%s ready" % (tsEngine.MajorVersion, tsEngine.MinorVersion) 
tsEngine.UIMessagePollingEnabled = True 
sequencePath = os.path.join(cwd, 'MySequence.seq') 
seqFile = tsEngine.GetSequenceFileEx(sequencePath) 
execution = tsEngine.NewExecution(seqFile, "MainSequence", seqFile, False, 0) 
execution.WaitForEndEx(60000) 
execution = None 
released = tsEngine.ReleaseSequenceFileEx(seqFile, 0x4) 
seqFile = None 
tsEngine.ShutDown(True) 
tsEngine = None ## Execution freezes here 



2,I need to use UImessage to get pass/fail result of "MySequence.seq".
So the first step,I set "tsEngine.UIMessagePollingEnabled = True".
But python print these error:

Traceback (most recent call last): File "D:\TS_solution\CallTestStand.py", 
line 39, in released = tsEngine.ReleaseSequenceFileEx(seqFile, 0x4) File "", 
line 3, in ReleaseSequenceFileEx pywintypes.com_error: (-2147352567, '\xb7\xa2\xc9\xfa\xd2\xe2\xcd\xe2\xa1\xa3', (0, u'TSAPI', u"Unable to unload sequence file 'MySequence.seq' because it is in use, possibly because it is executing.", None, 0, -17213), None)


3,I comment "tsEngine.UIMessagePollingEnabled = True",
then teststand pop-up warning windows,show as below:

References to PropertyObjects were not released properly. 
Total number of objects: 53 
Number of top-level objects: 13 
Note: Some top-level objects may be included if they are referenced by an incorrectly released top-level object. 
For example, an unreleased SequenceContext object references a SequenceFile object. 
The following top-level objects were not released: 
Executions [1 object(s) not released] 
Type Definitions [2 object(s) not released] 
Type Definition 
#1: Name: CommonResults Type Definition 
#2: Name: Error PropertyObjects 
[6 object(s) not released] PropertyObject 
#1: Type: ActiveX Reference Value: Nothing PropertyObject 
#2: Type: ActiveX Reference Value: Nothing PropertyObject 
#3: Type: Obj PropertyObject 
#4: Type: Array of Containers PropertyObject 
#5: Type: Array of Containers PropertyObject 
#6: Type: Array of Containers And the following uncategorized objects: 
UIMessage (TEMessage) 
UIMessage (TEMessage) 
Report 
EditArgs

4,How can I call Teststand API--UImessage class through Python?

multisim education edition

$
0
0

HI

 

Recently I downloaded NI MultiSim Education Edition ver 14.00. At the beggining I had 7 days period for using. I extended it to 45 days using my account. My question is. What will have happened when my version expired. If I can exdent it for another period of time?

 

Best Regards 

Arek Kowalski 

Count number of Multi Numeric Steps

$
0
0

Hi, I tried searching and did not find anything on this topic.  Maybe I am not searching correctly so if this topic is already posted please point me in the right direction, thanks.

 

I am pretty new to TestStand so I am still fumbling my way around.  Currently I am using TestStand 2014 32 bit on a PC running Windows 7.  I have a sequence file that contains a number of multi-numeric tests.  I want to be able to count the total number of multi-numeric steps in the sequence file and the total number of multi-numeric steps that will get executed (in debug mode).  I have a custome report that gets generated in Excel taking the results from the multi-numeric tests.  The total number of pages in my report depends on how many tests are executed.  I am trying to write to the report something like page 1 of 3, so if I know the numer of tests that will run than I can calculate the number of pages.


uint64 Numeric Limit Step

$
0
0

How do i use UInt64 in a numeric limit step.

TS says "expected Number found Number {UInt64}.

 

If i change the Numeric format for the limits to UInt, my limit values are modified. I can't select UInt64 as Numeric format. My DataSource format is UInt64.

 

br

Nikolaj

NI 9237 matlab half bridge strain gauges

$
0
0

Hi everybody,

 

I created under matlab a code that acquire data from two strain  gauges, each one is made of two resistances, each gauge is configured as a half bridge fixed to a beam using NI9237, the aim of my code is to estimate the applied force to the beam, my problem is that at the in the end of acquisition i do not get the expected value of the applied force, the error is about 77%, i checkek very well every single line of my matlab's code based on the instructions from the following page (http://nl.mathworks.com/help/daq/acquire-analog-input-data.html), i am pretty sure that the problem comes from the device or something like this, cause i checked the coefficients that convert strain to force under a finite element software  and the the result was as expected, somehow the output voltage that i get isn't correct.

 

 

Can any one help please :s ??

 

 

Container variable has different order and different value compare with type definition

$
0
0

I am using Teststand 2010.

 

 

I created some custom data types which is container. I defined the order of elements as well as default values. I use this as enum since TS 2010 does not support enum. 

 

There are two problem I would like to verify. When I create variable from these custom data types. The order of the elements is changed. The default value also changed. The default value of variable are not set to 0 but to a random number. I can set this to specific value at setup but I still don't like that the value are messed up. But more importance is the order of element. I created these container to use in TS only not to pass data between TS and LabView. I tried to set "Allow Objects of this Type to be Passed as LabVIEW Clusters" but the order of element still changes.

 

Regards,

Thang Nguyen

Operator Interface Crashed LabVIEW

$
0
0

TestStand 2014, LabVIEW 2013.

 

Hello,

I am using the Simple Operator Interface (LV) to launch my TS sequence. The first time I open it and click Test UUT's the test runs just fine. I am using the Batch Model and can continue to test units. But if I stop the OI and then run it again, when I click Test UUT's LV crashes instantly with no warning. Yesterday all was working fine. Today the only thing I have changed is I added in UIMessaging from TestStand in many steps. When this started I had a UI that was doing something with those messages. I thought that may have been the problem so I went back to the most basic included OI. It is still happening.  Any ideas of why LV would crash when I try to Test UUT's the second time? Below is an example of how I am sending the UIMessage.

 

In Pre/Post Expression, depending on the step, I have 

 

RunState.Thread.PostUIMessageEx(

  UIMsg_UserMessageBase+1,

  0,

  "String to Send",

  Nothing,

  True)

 

Thanks,

Jesse

Including a LLB into the Teststand search path

$
0
0

Hello everyone,

on a testsystem I am using Teststand 2013 and Labview 2013. There are different measurement instruments in my system and right now I have all the VIs for controling these instrumtens saved as VIs on my system. Now I want to change this into an LLB. But when I do that, Teststand is no longer able to find the VIs inside the LLB, although the LLB is in the serach path of Testand. Since a lot of Sequence files access these VIs, it would be a lot of work to manually edit each VI call. Is it possible to include the LLB into the search path?

Thank you very much for your help!

Felix

How can I programmatically generate report from teststand diff/merge tool?

$
0
0

Hello,

 

I'm currently using TortoiseSVN for change control management of code. A rare, but too common, issue we face is that someone has uncommitted code on their machine.

 

We've developed some code to email notify the CORE team when uncommitted code is detected on a machine. We're able to identify which files have modifications, but we're looking to take it a little further and determine what the differences are; preferably between the repository version and local version if you are familiar with SVN.

 

I'm familiar with FileDiffer.exe, and have it linked easily to diff files in the TortoiseSVN GUI, but I'm looking for a way to do this and generate a dif report progammatically.

 

Does anyone know of a way to launch and programmatically generate a report xml from the TestStand File Diff/Merge tool without use of the GUI? Or if there is another tool or method out there capable of diffing sequences, please give suggestions.

How does one refresh the SequenceView Control between runs

$
0
0

Hi,

 

Using:

  • TestStand 2012 (not SP1)
  • LabVIEW 2012 (not SP1)
  • Custom TestStand OI (based on LaVIEW Full Featured)

We are using the Test UUTs button to run our sequence.

 

We noticed that the TestStand UI SequenceView Control (Execution View) does not refresh its Result or Status values between runs.  It does if you use Single Pass.  Is there a way to refresh this?

 

Thanks

 


Teststand Development hangs on execution

$
0
0

Hello,
I'm using Teststand 2014(32-bit). I've been trying to deploy my test system. The Deployment Utility was working fine until recently. Now it opens but doesnt finish loading. I've tried reinstalling it but the probably still persists. 

 

Any ideas on whats going wrong? 

 

 

 

TestStand does not find all the function exported DLL

$
0
0

Hi all,

 

My problem is the following :

 

I have a DLL that I compile with Visual Studio with 40 functions. When I want to use this DLL in teststand, there is two function missing. If I check with dependency walker, the 2 missing function in teststand are well exported.

 

Missing function prototype :

struct HModemBoardOpaqueType * mbCreateModemBoard(void)

 

Good function prototype :

enum UbtDllErrorCode mbDisconnectFromModemboard(struct HModemBoardOpaqueType *)

 

Is that possible that teststand does not handle struct with opaque type correctly ?

 

If I export my function C-style (with extern C) no function is missing in test stand

 

Thanks

Ni Switch Init With Options Problem

$
0
0

Greetings,

 

I am using the NI-SWITCH libraries to initialize a PXI-2527 MUX. In MAX it is configured for a "2527/2-Wire Dual 16x1 Mux". I want to use the initwith options command to configure the MUX to a "2527/2-Wire 32x1 Mux".

 

I have tried several driver setup strings and varations and nothing seems to work. 

 

I am using NI-SWITCH v4.6.5 2013 and I can't update a the version due to baseline SW constraints.

 

My current driver setup string looks like this:

 

"DriverSetup=topology:2527/2-Wire 32x1 Mux"

 

See the attached TPS SEQ file.

 

Can any one give me hand?

 

Thanks

 

Minesh

Simple Teststand UI API for LabVIEW

$
0
0

Like many people I know how painful it is to program a Teststand user interface in LabVIEW.

 

To combat that I have developed a new API which wraps the ActiveX calls into modern object oriented code which follows proper LabVIEW programming paradigms.

 

Please check it out:

 

https://decibel.ni.com/content/docs/DOC-43511

 

This is pretty much beta software, so constructive feedback on the code or the article itself is greatly appreciated.

TestStand 2014 Results File Pathname

$
0
0

Hi,

I'm trying to change the Results File Pathname depending on the sub sequence that has been selected i.e.

 

\\ Root

SG. ResultPathname = "C:\Results"

 

Main Seq

    TestSeq1 --> SG.ResultsFile = "TestSeq1"

    TestSeq2 --> SG.ResultsFile = "TestSeq2"

    TestSeq3 --> SG.ResultsFile = "TestSeq3"

 

I thought this would be easy - Report Options - Report File Pathname - Specify Report File by Expression as:-

 

Report File Path - SG.ResultsPathname + "\\" + SG.ResultsFile + '\\" + "SN_" + "$(UUT)"

 

This does not work as the Results File Pathname is required Prior to running my Main Sequence!

 

Is there a method of changing the Results File Pathname once the sub-sequence has been selected?

 

Regards...

 

Ian

 

 

Viewing all 6532 articles
Browse latest View live


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