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

Allof, Anyoff used on Arrayand other Array Mathmatics

$
0
0

Pretty sure this should be set up as an improvement but as far as I could tell you cannot Allof or Anyof a Boolean array. Its kind of a pain to type out locals.array[0],locals.array[1],...etc for say 50 variables. any thoughts on this or suggestions on going about it a different way?


Customize Database schema, and collect data in teststand

$
0
0

Hi,

I'm trying to add a customized database schema to teststand, and log test result to 2 seperated tables, one for general test info, one for test result.

Question is that I don't know how to write express to add specific step result to tables.

The default schema records every step and add test name, value, unit to a row record seperately, while i'd like to add a test result with current loop variable to a single row. For example

 

default schema

id stepname

0  for {i=2}

1  measure vcc

2  3.5

3  V(Units)

 

What I want is like below:

 

id loop stepname value unit

0   2     measure   3.5    V

 

I already setup a database and schema in SQL Server, but i don't know what to put in 'Value to Log' in result options dialog. And where dose this Logging parameters come from. I don't see this parameters in my sequence file. and how does this Logging parameter get test parameters from my sequence file

 

Thanks in advance

Image data to SQL database

$
0
0

Hello all,

 


SUMMARY OF QUESTION: How can I force a binary string to be logged into PROP_BINARY instead of PROP_RESULT? If I can't, how can I approximate that behavior?


  I am investigating ways to log image data to my SQL database. So far things I have done:

 

1) In LabVIEW - Read jpg file and convert pixmap into image. Stored image in custom SQL table as "Image". Then, again using LV, read binary data from SQL and  displayed as the image. THIS WORKS.

2) In TestStand, logged image data as "binary string" to SQL database. This did not work as TestStand wants to store that directly in the "DATA" column of PROP_RESULT which is varchar(255) which means I only get the first 255 characters.

3) In TestStand created a datatype for NI_Pixmap and then tried to log additional result in that format. This sort of works, but TestStand logs each element of the pixmap datatype as a separate row in PROP_RESULT, with the bulk of the image data stored in PROP_BINARY, which is where I would want it.

 

So my question is....does anyone have any ideas how I might be able to force the actual imagedata to be stored in a single row of PROP_BINARY directly? Logging the pixmap and re-building the datatype requires many steps. It would be nice to log the image data directly as one BLOB. It seems that if I could get TestStand to put it in PROP_BINARY, DATA instead of PROP_RESULT, DATA that would solve my issue. Does anyone know a way to force a binary string to be stored in the BINARY table vs. the RESULT table?

 

Thanks,

 

 

How to specify environment when using custom OI

$
0
0

How do I specify which TestStand 2016 environment to use when running from a custom operator interface? I want to create multiple environments but I don't know how I can have my software ensure I am using the right environment.

Sometimes cannot edit Value of LabVIEW module parameters

$
0
0

Hi there,

 

I'm seeing a weird problem where I cannot edit parameters sent to a LabVIEW module. This only happens on certain steps, on other steps, with the exact same LV module, I have no problem. When I hover over the exclamation mark, it says " Unknown variable or property name ''. " (Screenshot attached). Does anyone know what might be the problem?

 

Thank you

where can i download devloper suite

$
0
0

HI,

 

I currently have labview/teststand developer suite.  The test stand ver is 'TestStand Engine Version 2013 f1 (5.1.0.240)
Sequence Editor Version 5.1.0.240'

Developer Suite

Serial: XXXXXXXXX   |  Part Number: DEV SUITE CORE OPT

 

I cant see a 2013 ver for download, so i have 2 questions,

1, is 2012 ver the same as what i have?

2, can i download and use the standalone teststand ver or is there a different one for the developer suite?  

Binary String to Database

$
0
0

Hello all,

  This is sort of an addon to the "Image data to SQL database" thread I started. My question is more targeted though as I have done quite a bit of investigation.

 

  I am trying to write image data to my database. I successfully wrote and retreived an image to/from the database using LabVIEW without TestStand. However, when I try to write to the database (Column: DATA Table: PROP_BINARY) using TestStand it does not work. The entry made using LabVIEW is not the same as the entry TestStand made.

 

Is there a way to get TestStand to pass the value to the database without molesting it first?

 

Thanks,

an error -6579 is reported by CVI When Teststand call CVI dll inclcuded C# dll called

$
0
0

CVI calls C# ClassLibarry1.dll (NI example),it can run well,and get number 4 correctly. but if make a cvi dll included a C# ClassLibarry1.dll called  and CVI reports error status = -6579 ( happen at Initialize_ClassLibrary1 () ) when TESTSTAND call this cvi dll .   Please see an attached file. (2012cvi, 2013 teststand ) ,  I don't know why .


Using Labview Data type with TestStand

$
0
0

Hi ,

i need some help in the configuration of the parameters in the ring control in step settings 

i'm calling a VI in TestStand to control a power supply so when i run the VI i need to enter this command string : "TRIG : SOUR IMM
                                 VOLT:TRIG 5.0
                                 CURR:TRIG 3.0
                                  INIT"

thank you 

Ahmed Kochbati

Electronic Engineer

USRPs Synchronization

$
0
0

Hi,

 

I am going to implement a project using multiple USRPs. Typically, it will be a start network with one USRP as a coordinator and the rest are normal nodes. I want to synchronize these nodes with the controller. Any idea about how to synchronize multiple USRPs?

Incomplete Execution

$
0
0

I am using TestStand UI to call my sequence and when I exit using the exit menu (see image 1) it will give me this dialog box from TestStand (see image 2).

 

Now I understand that for TestStand to fully exit, I will need to terminate all the sequence before it can logout and then exit.

What I'm trying to do is either trigger a IEngine.Shutdown or a TerminateAll when someone exits automatically without having the dialog box from TestStand popup.

 

I've tried handling it from CVI using API calls and from TestStand using Callbacks or GetStates().

 

From the CVI side, as soon as I exit, it triggers the OnQueryShutdown(); and after bouncing around through UIMessage(), it will then go to OnExitApplication() after all sequence/executions/threads are terminated.

 

Any help would be appreciated.

Teststand Operator Interface: CommandKind_RunSequences_Set doesnt work with Teststand 2016

$
0
0

CommandKind_RunSequences_Set

Hi all,

i would like to know if someone also experience the same issue:

1. I have created a Teststand OI (based on LabVIEW)
2. I have a Teststand's button on my OI:
   - It shall be able connected to Sequence (index "x") in a Sequence File "dummy.seq".
     Sequence (index "x") does: "Do this"
3. It works with:
   LabVIEW 2012 - Teststand 2012
   LabVIEW 2014 - Teststand 2014
   LabVIEW 2015 - Teststand 2015

   but not with
   LabVIEW 2016 - Teststand 2016

4. Error -17500 occured once i connect button with "CommandKind_RunSequences_set", and set index "x".
   See picture. In this case, my index x = 2

  Configure SequenceFileView Manager.vi.png

5. Once i removed/disable that function, my operator interface does work, but no extra button shown up as before.

6. I have modified also Simple UI example, by adding that function and i can confirm that it didn't work either.

 

Can someone please tell me if this is a bug or there is something i am not aware of any Teststand 2016's features?

 

Thanks,

 

Rajamodol 

 

Passing VISA resource names between steps

$
0
0

If multiple calls to a piece of test equipment need to be made in multiple TestStand steps, what is the best practice for passing them?

1. close the resource after each step and reopen with a new INIT VI each time in later steps?

close resource.PNG

2. Pass out the resource:

pass out resource.PNG

and save it in two TestStand variables for use in later steps?

pass out resource TS.PNG

 

3. Anything else?

 

Thanks.

Hide groups in insertion palette

$
0
0

I am wondering if it is possible to hide Groups in the Insertion Palette programmatically.

In the sequence Editor, I can select the Group and check "Hide" for the Group. I can already programmatically hide single step types using the PropFlags_Hidden constant, but I don't find the same for Groups.

HideGroup.PNG

Change sequence execution mode

$
0
0

Hi,

i need to know how to cahnge my sequence execution mode to the parallel mode execution 

thank you 

Ahmed Kochbati 

 


How to write data from a DotNet-teststep to TestStand via ActiveX?

$
0
0

Hello,

i have a custom c# function that i execute as teststep.

Here i already added the TestStand-API as reference to my C# project which appears as "TS".

Now I want to write data from the executing c# function into the teststep properties.

As it is a custom teststep i added a property called MyString.

 

How can i write data into this property?

I know how to do this with a normal function output parameter but i want to do it with ActiveX.

I am already passing the SequenceContext into the C#-function.

I tried things like:

seqContext.Step.MyString ="test";

but the syntax is not correct...

 

Thanks for help

UI Development In LabVIEW causes DPI Issue. Where to put manifest?

$
0
0

Ok so I followed this KB for my exes: http://digital.ni.com/public.nsf/allkb/99EF1FA4A1990A1B862580A5006A3130

 

However, when developing a UI in LabVIEW and I use the run button it somehow resorts the the funky small icons and text.  The window shrinks about 5x smaller than normal.

 

Before run arrow:

BeforeRunArrow.png

 

After Run Arrow:
AfterRunArrow.png

 

Any ideas on how to fix this? Normally I wouldn't care because I can embed the manifest into my exe, but when I'm teaching and demoing it doesn't look great.

 

Thanks in advance,

Always Show Type Conflict in File Dialog

$
0
0

here is a very strange questions, in the teststand(2014) main.seq had about 7 step in MainSequence,all is call sub seq file  like New Bitmap Image (3).bmp

 

now when i double chick one of the steps to open sub seq ,the Dialog Type Conflict in File is show

New Bitmap Image (2) - 副本fff.png

 

but the type is the same , also the  summary of differences is null. 

 

if i chick OK ,sub seq file can be open, and i do save it .
but when i close the sub seq file and try to double chick the step open again,
the same Dialog Type Conflict in File show again.

i try a lot of ways but can't fix it.
this is too strange, I even can't find the same questions in web, does someone can help?
thanks!

Programatically create parameter in TestStand with theTeststand API

$
0
0

I want to write a little sequence in Teststand 2010 that inserts programmatically a parameter in a subsequence of an other not running sequence. Can somebody help me?

 

eMsItI

Trouble switching adapter from LabVIEW development to runtime engine

$
0
0

Hi there,

I have a VI module that runs well using the LabVIEW development adapter, but has trouble when I switch it to the runtime engine. I'm having a hard time characterizing the trouble, but I'm guessing some reference is not held in memory like I think it should be.

 

My module starts another VI when called through the start asynchronous call node. It then communicates to this VI through a queue, telling it to show its front panel among other things. The front panel never shows, so I wonder if the problem is with the queue reference (in an FGV) or something else... At the end of the module, the asynchronously running VI is stopped, and then it should return to TestStand.

 

Does anyone have any suggestions? Thank you,

Gregory

Viewing all 6525 articles
Browse latest View live


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