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

opening a teststand generated xml

$
0
0

Hello,

I have a test stand application that generates the test data record in the form of an xml file.  I started having problems trying to open those files if I try to forward them to anyone.  It seems to be the case with all of my test stand generated data recrods.  Some computers will open the attachements just fine while other will not open the same files.  Does my operating system matter?  I have attached two png files and a horizontal xls file just like I have always done.  I can they get corrupted over the course of time?  These data folders have been in place for years.  Any thoughts would be appreciated, thank you.

 

Mario Cuesta

480-441-8320


Bug: Find/Replace is not working if statement that contains the string is too long

$
0
0

Hello,

in my sequence i press Ctrl + F to open the Find-Dialog and enter a string. All checkboxes are checked in "Elements to search" and "Limit Search to" is not enabled.

What now happens the the find is only listing the find in main sequence.

The other places in a subsequence which are part of a labview-vi-action-parameter are not listed. Also if i open the sequence and search there.

 

If i create a comment in the subsequence that contains the searchstring then it is found.

 

When i open the properties of the labview-action and open the parameter that contains the string and click check errors then close everything and search again then the value is found.

 

Can it be that the variable is too long of the parameter? It is about 200 characters and a very nested thing Of SationGlobals and Array and TestSockets. Thhe search string is finally an arrayindex in this big statement.

It looks like this is the problem.

Is this a known bug?

 

 

Error -17,502v only appears sometimes. Passing data by a struct.

$
0
0

Hello and good day. Sometimes this message appears to me when the system that I have is running. "-17502; System Level Exception".

 

01 Error.jpg

 

In my TestStand sequence that step correspond to a CVI function call.

 

00 TestStand.png

 

Basically, what that step function does is receive a int as an input, search some data in a database and then return some information passing it by a struct.

 

---

In TestStand I created a Custom Data Type to match the information that I need to receive from my DLL.

 

This is the structure that I have in myDLL:

 

04 Struct Definition.png

This is the Custom Data Type that I created:

 

02 Container.png

03 Container Properties.png

 

And in the end of my function, this is how I am sending the information:

 

05 Function.png

---

 

This errors appears only sometimes, and is not constant. I tried to replicate it running my sequence a lot, but does not appears when I want it to appear.

 

In another topic

( http://forums.ni.com/t5/NI-TestStand/passing-a-structure-by-reference-into-a-dll-cvi-get-s-an-error/m-p/875129/highlight/true#M23504 )

they said it could appear because a bad definition of the data type, but I really thik I am doing it correctly.

 

Any ideas about what could be happening?

Thanks in advance.

 

 

Model Plugin - Purpose of the FileGlobals.ModelPluginComponentDescription.Default

$
0
0

Hi,

I just realized that I cannot use FileGlobals.ModelPluginComponentDescription.Default.PluginSpecific variable to store data for use in subsequent plugin entry points. I think instead of FileGlobals I need to use Parameters.ModelPlugin, am I right? If so what is the purpose of FileGlobals.ModelPluginComponentDescription.Default? Is this some kind of initialization variable?

simple text report plugin configuration

$
0
0

I am updating a Teststand 4.2 project to 2012. The original had a text report via a modified sequencial model, and cvi code. I am trying to find the current best practice to achieve a similar report.

I have installed the simple text report plugin example but can find no documentation on how to configure it.

The example works fine, but the columns do not have the limits or the measured value, and do have several other items I do not need.

Looking through the code I can see these are set in parameters to the plugin, but I can not see where in my project to set them.

I will also need to configure the report header, and file name.

 

David

 

download older version run time engine

$
0
0

Why is it so hard to find older versions of anything NI?  I am still supporting CVI 6 applications (I posted this in 2016).

My current issue is that I need NI TestStand RTE for version 2012.  I have several NI FTP sites bookmarked but some of them don't look they have been updated in years.

 

So my real question is where can I download NI TestStand RTE 2012.

 

Sorry to be so grumpy but I don't think this should be so difficult to do.  And it something that comes up for me several times a year.

 

Thanks,

-don

Using TestStand to Call Ruby code

$
0
0

Hello,

 

I am new to Teststand, wrapping up my first application, which uses all SubVI's that I created. 

 

My question is, will TestStand call Ruby? I see that it can call other scripted langugages, but could not find much about Ruby in the forums, lots of reference to Phython, which is a similiar language, in that it is not a compiled language.

 

Pointing to some reference material would be greatly appreciated.

 

Thank you

 

Programatically Assign Action Step Input Parameters

$
0
0

I am hoping someone could indulge my laziness regarding passing variant data types from TestStand 2013f1 to LabView 2015 SP1.

 

Since the "Anything" data type in TS and the variant data type in LV don't play nice, I have to manually pass the data type from TS to LV.  I do this by adding an input to the VI that accepts a string description of the TS data type.  I then use the "TypeOf" function in TS to get this string descriptor.  This works well; however, I call this action many, many times with different data types.  I worry that I will forget to update the TypeOf input every time I instantiate this VI.  This would produce a run time error, which are annoying.

 

What I want is to autofill the TypeOf function with whatever Local, Parameter, etc I type into the variant (Anything) input of the VI.

Get Type Info.PNG

 

I'm not a TS architect but I've poked around the API trying to see if there's anything that can provide this functionality.  I am doubtful I can do this but I wanted to check with the community before I gave up.  

 

Thanks for your help in advance.

 


How can i index a element of array like "index array" function of labview?

$
0
0

Hello:

    I'm searching for a method to look for a array with index and return the element specified by index given.

just like index array function of labview, but i can't find a exact symbol in teststand-array-operations/functions.

i'm new for teststand and dnot know how to use labview function in teststand.

can anybody instruct me?

thanks in advance!

Modifying the advanced TestStand UI

$
0
0

I have decided to use the advanced TestStand UI for the users to execute sequences.

I want to make use of both the Editor and the Operator versions of this.

 

I now want to remove items from the operator interface but still keep them in the editor interface.

There is an example of this; the Insertion Palette is visible in the editor Interface but not in the operator interface.

For example, i want to remove the File Variables pane and the Sequence List pane from the operator interface.

 

However, i cannot find how to do this, i can't see where the command line arguments for which interface to use are read, nor do i see where the ctrl+alt+shift+insert command is listened to.

 

Any tips? Thanks

How to determine when a sub-sequence in the MainSequence Main group was just called?

$
0
0

I want to implement a custom progress bar for my Operator Interface and I've seen some NI tutorials how to do this but IMHO the solution is quite ugly in that the MainSequence has hard-coded UI message events to statically send the percent done.

 

What I think would be a better method would be to have the SequenceFilePostStep callback increment a FileGlobal counter only when a sub-sequence in the MainSequence Main group has been called.  I've already figured out how to get the total number of MainSequence sub-sequences in the Main group via the expression:

 

 RunState.SequenceFile.AsSequenceFile.GetSequenceByName("MainSequence").GetNumSteps(StepGroup_Main).  

 

It's the part in bold above that I'm not sure how to do and would appreciate some help in this regard.  Once I have both of these values I can just divide the two and send a UserMessage to the Operator Interface with the percentage done.

 

Thanks! 

Testing of battery of Car(automobile)

$
0
0

Hi everyone,

I am new to Labview test stand and I would like to learn how it works for example testing of the battery of a Car , diesel injector testing, and other parts of the automobile industry. I would like to ask you for your suggestion from where I start. My question is not directly the testing of the battery of a Car but my approach is to deepen my knowledge in particular for this. 

 

Best regards, 

 

Ravi 

 

How to access objects collection

teststand callbacks - Is there a way to include step results for the SequenceFilePostStepFailure callback in report?

$
0
0

I have some steps in the SequenceFilePostStepFailure callback and wanted to include these steps in the report when any step failure occurs. I have the ‘Disable Result Recording for All Steps” unchecked on the SequenceFilePostStepFailure Properties. Also, the ‘Record Result’ option is checked for steps. The callback is executed, but no steps are included in the report. Is there a way to have these step results to be included in the report?

decimal places in database numeric column

$
0
0

Hello everybody,

 

I have a very simple question, but yet I have not found a way to do this. I want to limit my measurement (via LabVIEW code module) to 2 decimal places in the report output and in the database (Generic Recordset) PROP_RESULT's numeric column.

 

I noticed that by changing the Result Processing's Report Option numeric output format, I am able to get the report output to 2 decimal places. But to get the measurement value stored in PROP_RESULT table's Numeric row is quite a challenge.  I have not been able to figure it out how to proceed.

 

In the LabVIEW code module, I set the measurement so that it returns a value with 2 decimal places to the Teststand parameter (Step.Result.Numeric, using Limit test). Strangely, it still show up in the PROP_RESULT's numeric row with 13 decimal places, which is quite a puzzle to me. How can Teststand came up with the measurement with 13 decimal places when the code module returns the measurement with 2 decimal places???  Does anyone has experience this before? Any information on how to solve this problem?

 

Thanks for reading.

 

yours,

hlim


ni-daqmx task in teststand

$
0
0

Hi,

 

I want read a fixture Id number using 1 digtal port (8 bits) of the PXI-6509 installed on my test station. I have created a taks using ni-daqmx and i'm looking to execute the ni-daqmx task

directly from teststand. I can't find a step type to use for calling a ni-daqmx task.

 

Have you example how to integrate ni-daqmx directly to teststand sequence (like switch executive) without passing by third-party software (labview, C# or other)

 

Thanks

 

edit IVI xxx slow to open

$
0
0

 

Hi,

 

i working on my fist program using teststand. I have multiple instruments on my test station and they are visible on ni-max.

 

On teststand, each time i want to press on button edit IVI xxx  for load the instrument interface,  i need to wait about 15 seconds until the interface show up.

 

Power supply interface take 5 seconds to show up and switch executive take 15 seconds to show up.

 

My computer is running a i7-4790 (4 Ghz) on win 7 64 bits with 8GB of memory.

 

i have hundred of relay to close, one by one, using IVI switch executive and waiting 15 seconds each time for the interface show up is too long.

 

Any method for speed up the IVI  edit interface?

 

Thanks

 

 

 

teststand not communicating with labview

$
0
0

Hello All,

 

I am using Teststand 2012 and Labview 2012 SP1 . I am using Testsequence calling Codemodules developed usnig Labview 2012 .

 

Issue 1: When I call main sequence the code modules was not getting called .But when I sperately execute the VI ( By the way this is simple ,DMM vi) the VI was executing perfectly .

 

solution : - opened the configuration tab and selected adapters and selected Labview .After that getting into that we selected from runtime Engine to Development Engine.

 

With this the issue got sorted out .why does this behaviour happened .

 

Please let me know if any one knows or faced the same type of issue .

 

 

add external information to report

$
0
0

hello Smiley Happy

I would like to ask about how to add some information to the report. I must to add some information at the beginning of the report.

This information I will get from external files therefore I wont change a sequencce file, I wanna to set in General options . Please hellp

Why does TestStand place a $ flag in the numeric format when Display Trailing Zeros is un-checked?

$
0
0

Setting the numeric format of a Real typed Numeric Limit test step with the Display Trailing Zeros option un-checked causes a $ to be placed within the format specifier as %$f.  This is not an ANSII C format flag and causes a runtime error in sprintf() calls within a LabWindowsCVI DLL.  Where is this flag defined and used other than in TestStand?

 

Viewing all 6589 articles
Browse latest View live


Latest Images

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