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

Does SequenceFilePostStepRuntimeError Run Before SequenceFilePostStep?

$
0
0

I am trying to implement some basic custom run-time error handling in which I retry a step a certain number of times before I throw up the gray TestStand Run Time Error dialog. I want to accomplish this by canceling the error if a FileGlobal called ErrorIterations is less than 3. Otherwise, I will let the error pass through SequenceFilePostStepRuntimeError and throw up the dialog box. My question is if I want to reset this file global after each successful step, can I reset FileGlobals.ErrorIterations to 0 at SequenceFilePostStep? Or does this step run before SequenceFilePostStepRuntimeError?

 

2019-04-15 18_27_22-NI TestStand - Sequence Editor [Edit].pngWhich Runs First?

 

2019-04-15 18_22_21-NI TestStand - Sequence Editor [Edit].pngSequenceFilePostStepRuntimeError2019-04-15 18_22_50-NI TestStand - Sequence Editor [Edit].pngSequenceFilePostStep


Re: Error in Writing to CFG Files

$
0
0

Thanks Jigg,

 

As you mentioned, maintaining and sharing the configuration files between developers is difficult without SCC. I will try the tool suggestion where we programmatically set read/write permission.

 

Thanks,

Sree

Re: Local and global variables

$
0
0

The reason they are empty or zero is because the variables are only valid while the sequence is executing. Once the execution has stopped all the variables revert back to the static state. The only variables that will retain their values is StationGlobals.

try storing you data in a file for viewing after your execution or add your data to the test report.

 

Access Container Element Value

$
0
0

I would like to write and expression that will get the value from container (EnergyRegister_1) and save it to RegisterAddress using the RegisterCounter as indexer.

 

TestStand.PNG

Re: Access Container Element Value

$
0
0

Use 

locals.RegisterAddress.locals.EnergyRegister_1.GetNthSubProperty(“”,locals.RegisterCounter-1,0).GetValString(“”,0)

 

the first field in the container is at index 0. The GetNthSubProperty() returns a property object, then use that as the reference for getting the actual value.

 

Re: Access Container Element Value

$
0
0

Thank you for "GetValString(“”,0) ". I was struggling dealing with the return of the property object.

 

I had a workaround but your solutions runs well.

 

WORKAROUND

Locals.RegisterAddress = Locals.EnergyRegister_1.GetNthSubPropertyName("",0,0)

Locals.RegisterAddress = Locals.EnergyRegister_1.GetValString(Locals.RegisterAddress,0)

Re: Does SequenceFilePostStepRuntimeError Run Before SequenceFilePostStep?

$
0
0

sequenceFilePostStep runs. If there is an error in the Step’s Result.Error then SequenceFilePostStepRuntimeError is invoked.

if the Step fails then SequenceFilePostStepFailure is invoked.

Re: Does SequenceFilePostStepRuntimeError Run Before SequenceFilePostStep?

$
0
0

I think I understand but for clarification are you saying that each of them runs exclusively? For example, if SequenceFilePostStepRuntimeError runs, then SequenceFilePostStepFailure and SequenceFilePostStep do not run at all.


Re: Does SequenceFilePostStepRuntimeError Run Before SequenceFilePostStep?

$
0
0

No the SequenceFilePostStep runs then depending on a failure or error which relevant sequence runs next.

 

there is an execution chart in the manual.

 

Re: Test Stand deployment utility load failed

$
0
0

Hi HaTao,

 

SSP is our standard support package, which includes access to downloads of older software versions. As Michael said, you'll need to have SSP in order to download the software from our website. Make sure the serial number for your license is registered to your NI account. If the serial number includes SSP, you will have access to the download link. If the serial number is registered and you still do not see the link, it is likely you do not have SSP and will need to purchase it in order to gain access to the download link.

 

I would recommend speaking with the purchasing department or IT at your company to see if they know if you have an active SSP account. 

Re: Does SequenceFilePostStepRuntimeError Run Before SequenceFilePostStep?

$
0
0

Thanks for pointing me in this direction, it looks like SequenceFilePostStep DOES NOT run when the error callback is initiated. Thank you!

 

2019-04-16 09_29_34-Archived_ NI TestStand Reference Manual - National Instruments.pngEngine Callbacks from http://www.ni.com/pdf/manuals/373435e.pdf

Re: Does SequenceFilePostStepRuntimeError Run Before SequenceFilePostStep?

$
0
0

It depends at what point the error occurs. It occurs in you step or after it then the yes it does. If it’s before your step run then no it doesn’t.

 

Re: Ni TEststand deployment 2014 failed

Using LabVIEW to create TestStand FileGlobal variables

$
0
0

Hi folks,

using TestStand:  2016  LabVIEW:  2015

 

I've resurrected a project I was last working on near the end of 2017, back then I had created a bunch of LabVIEW vis, a TestStand sequence, a little hardware based on a PIC 18f2550 demo board (used to relay 9 bit RS232 comms to USB) and the whole thing was working, albeit a little flakey sometimes.

 

I wanted a way of being able to configure my Rigol M300 DMM so that I could easily change how the Multiplexers and Mutifunction card were connected to my UUT.  So I made a vi that allowed me to configure the MUXes and the multifunction card (DIO, Analogue IN/Out, Totalizers), the vi output a property loader TXT file and this was read by the TestStand sequence.

 

Time moved on, the project was shelved, I've done some other TestStand bits and pieces and now in preference to using the Property Loader to create my FileGlobals:

FileGlobals.png

 

I'd like to use an INI file (easily man readable) which will be created by my user friendly configuration vi. I'll also have a LabVIEW vi called from TestStand to take the info in the INI file and create Run Time FileGlobals loaded with the values in the INI file.

 

I've done this before for simple strings and numeric variables,  but now my FileGlobals are a little more complex, it's a Container, holding a Number, Enum, String and Number.

 

What I'm struggling with is firstly knowing if this can actually be done with LabVIEW ?   secondly, how to create a container of a specific type (Rigol_IO),  third, how do I get the Rigol_IO_In_Out_Type from TestStand and set the variable In_Out_Type to be this type in LabVIEW.

 

I'm assuming I can get the types I need from the Sequence Context but I'm really not sure how to reference them and am struggling to find any info to point me in the right direction . . . . hence my post.

 

thanks in advance.

 

 

Re: Test Stand deployment utility load failed

$
0
0

The previous station has the software teststand 2014 SP1 installed. Now because the teststand has corrupted files in error. I have to use teststand 2014 SP1 to do the repair. I am sure we have the number. 

Our VLM account number is 76029. Is that the one we need?  Also attached is the result of serial number I typed to search but cannot find the NI 2014 SP1. How come the previous station has SP1 installed in company computer? This tells me that we must have the account.

 


LabVIEW class calling makes NI TestStand really slow

$
0
0

Hi All,

I am using NI TestStand 2014 SP1 with LabVIEW 2014. When I call LabVIEW VIs within TestStand, it just works fine and loads selected LabVIEW VIs pretty quick. But the same thing when I try with LabVIEW classes, It takes few minutes (5-10 minutes) to load after clicking on any LV class module step. I understand that loading all VIs within a class may take a while but it makes really difficult to create/modify any step. 

Am I missing anything which could allow my classes to load faster in TestStand? I have verified my search directories and module adapter which looks fine to me.

Please suggest if anyone has faced similar situation.

Thank you.

Re: Using LabVIEW to create TestStand FileGlobal variables

$
0
0

Why do this, create you type and variables in TestStand ( you can actually create the type from you VI connector pane inputs and outputs). Then pass your container in and out of you VI.

In your VI you can just use unbundle and bundle nodes.

 

 

Re: LabVIEW class calling makes NI TestStand really slow

$
0
0

Are you passing the LabVIEW project as well? If you are remove this from the step specification.

 

Re: Using LabVIEW to create TestStand FileGlobal variables

$
0
0

 wrote:

Why do this, create you type and variables in TestStand ( you can actually create the type from you VI connector pane inputs and outputs). Then pass your container in and out of you VI.

In your VI you can just use unbundle and bundle nodes.

 


I did do what you have suggested, I created the types in TestStand from the vi connector outputs, the reason I need to be able to recreate the variables is because the variable names are one of the fields that can be configured in my LabVIEW configuration vi.

 

It's not so important for this current project, all the IO to/from the Rigol is decided upon so the variable names aren't likely to change . . . but for future project it will make things easy to setup.  I would configure all the IO I need and then have easy access to this information when creating the TestStand sequence. The Rigol_IO container contains all the relevant information needed by my vi that accesses the Rigol unit, namely the channel and port, the IO type, the name and the slot number.  I pass this to my vi and it sets up the Rigol, makes the measurement and returns the reading. This goes for voltage (AC or DC), resistance, analogue out, digital in/out (TTL or CMOS levels). totalizer and Mux*

 

If it can't be done I have the option to keep using the Property Loader, maybe I did it wrong, but writing the Property Loader txt file from LabVIEW seemed to be a bit of a bodge.

 

* the Mux option is a special case, I can use one of the Multiplexers as an extra 32 channels of Digital out.

Re: Using LabVIEW to create TestStand FileGlobal variables

$
0
0

I’ll sort out an example for you. I’m sure I’ve posted a similar example before.

Viewing all 24460 articles
Browse latest View live


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