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

cannot load VI using user interface standalone executable

$
0
0

Hello everyone,

 

I am preparing for my deployment. I build an executable for my user interface (based on Simple UI example), I get the following error when trying to run my test sequence using this executable as standalone.

 

I do not get this message when I am running the user interface vi (note: the LabVIEW adapter is configured to use LVRTE).

 

There are many code modules in the test sequences, but this error only occur for 3 of these code modules. These 3 code modules are run from another 'sub' sequence located in the same sequence file as in the main sequence. These sub sequence (the first one is call Stop Valve Monitor as indicated in the error message) are run asynchronously and they each calls the LabVIEW code module (the first one calls StopValve.vi as indicated in the error message). The rest of the code modules which are able load correctly are normal code modules call from the main sequence.

 

Can anyone please help me to find out why these 3 code modules are not able to load in ? Any way to solve this problem?

 

I am using LabVIEW 2014 32 bit and Teststand 2014 32 bit.

 

Yours sincerely,

hlim

 

 

 

unabletoload.jpg


Adding a New User using Labwindows/CVI

$
0
0

Hi 

 

I really need help as i am strugggling to find a solution.

I would like to add a new user and to view the list of users using CVI?

When Adding the user i would like to add the full name and password as well.

 

I dont want to use this TS_EngineDisplayNewUserDialog as i want it to be done with out user input of all that information as i am getting the information from Active Directory.

 

Is this possible?

 

Kind Regards 

Shakeel

break on first step property and tracing

$
0
0

Hi

 

I am missing the property to dynamically set "Execute" --> "Break On First Step". Any who know where it is?

(As example "Break on Step Failure" is found at "RunState.Engine.StationOptions.BreakOnStepFailure")

 

Also missing the properties for "Allow Tracing into Setup/Cleanup" + "Allow Tracing into Pre-/Post-Step Callbacks" + ....... (the rest of the tracing flags in StationOptions).

 

Thanks in advance

 

Vagn

NI-Scope Soft Front Panel Load Configuration (.h5 file) VI

$
0
0

Hello,

 

I want to use the NI-Scope Soft Front Panel to Set up my NI PXIe Scope/Digitizer (5160), then save the configuration to a file (looks like the file is saved in ".h5" format). Then I want to load that configuration in a TestStand Sequence. The Soft Front Panel has a "Load Configuration" (see attached image

s) option that lets a user point to that .h5 file to load the configuration to the instrument. Does anyone know where the VI for this is so I can call it in my teststand sequence? If not, is there a solution to load a .h5 file to an instrument in TestStand?

 

NIScopeFileMenu.png -->  SelectConfigurationWindow.png

 

Thanks!

master copy typedef not found

$
0
0

Hello everyone,

 

I originally posted this question in LabVIEW forum, but I guess maybe the teststand discussion forum is more suitable, so I am now posting it here.

 

I have a problem with my typedefine (Teststand UI Data.ctl) in the user interface (derived from the Teststand Simple UI). In the implementation, I was always able to add callbacks to response to Teststand events in the past.

 

Recently when I try to add a new callback to a Teststand events, I get error saying that the Typedef master copy was not found or contain error. What I find it strange are:

1. If the Typedef master copy was not found or contain error, why would the error not affecting the already implemented callbacks for other Teststand events?

2. If the Typedef master copy was not found or contain error, why is it possible to run the program?

 

Here I have 2 screen shots. The first screen shot shows the existing callback, where there is no error indicating Typedef master copy not found or error. The second screen shot shows the error when a new callback is added to another event.

 

The Typedef master copy, call TestStand UI Data.ctl is also shown in the 1 screen shot, and it is located in the TestExec.llb, as shown in the third screen shot.

 

I am not quite sure how to begin debugging this problem, that's why I hope the teststand experts out there can give me some pointers.

 

I am using LabVIEW 2014 32 bits and Teststand 2014 32 bits. Running on Windows 7 system.

 

Thanks.

 

Yours sincerely

hlim

Effect of different rows of NI SCXI 1130 on each other

$
0
0

Hello

I have NI SCXI-1001 Chassis with NI SCXI-1130 switching slots. What  I am going to do is: generating a signal by a RIGOL Function Generator and switch this signal to excite some piezoelectric sensors and reading the response signals by a Tektronix oscilloscope.

The problem is that when I connect both of the function generator and oscilloscope to different rows of the matrix I see the actuating signal in the response channel of oscilloscope, but when I connect one of the function generator or oscilloscope to the matrix and the other one directly to the piezoelectric there is no problem and I have the correct signal. What can be the problem?

I'll be thankful if you could help me

Regards

Saeed

IVI instrument not visible from teststand

$
0
0

 

I have a keysight amplifier 33502A, with the IVI driver.  The Amplfier is defined on NI-MAX but not visible on teststand.  I could understand of the Amplifier is not part of the standard IVI class but is was expecting of the direct IVI command will be available on the IVI Tools step.

 

Why is not the case?

 

Do i need to verify, for each instrument, who IVI driver is available, if instrument is supported by teststand IVI step Type?

 

Can i create an IVI step type for my unsupported instrument?

 

 

How to use if else condition to determine sequence pass fail

$
0
0

I have a sequence where I need to determine its pass fail status by comparing two values. The values are returned by different LabVIEW vis', say. Locals.ValueReturnedByVI_1 and another value say  Locals.ValueReturnedByVI_2. Now, I intend to compare those values using a If-Else Condition and determine whether this sequence has passed or failed.

 

If (Locals.ValueReturnedByVI_1 == Locals.ValueReturnedByVI_2)

/*This sequence has failed*/

else

/*This sequence has passed*/

End

 

I dont know what should be done inside the conditon blocks to state the pass-fail of the sequence.

Or is there a better way to do this?


api dll windows 10 teststand 2014 SP1

$
0
0

Hello,

 

I'm searching a fix to my issue since few hours but I found nothing. I'm working on Teststand 2014 SP1 32bits with a windows 10.

 

I made a sequence on the same version of teststand on a windows 7 but I now have a windows 10. I openned my sequence (which worked well on W7) on W10 but when i'm exécuting it I have the following message.

http://puu.sh/pizsw/deabdd594d.png

 

I tried to install the W10 SDK, and some versions of Visual studio but didn't work. On my 64 bit version i have an other message which seems normal cause it says TS is unable to open my 32 bits DLLs.

 

I think i forgot to install something but I don't find what, if soemone found a solution at this problem, should be great to share =)

 

Best regards,

Guillaume

How to search for text in parameters?

$
0
0

Hello,

i have some labview-actions that have a StationGlobal as input parameter.

Why is the teststand searhc not working for these parameters?

When i am doing a search then nothing is found. Only values in statements are listet in the search box.

Thx

How to determine the number of rows in database and save that result to a local variable?

$
0
0

Hello,

 

I'm a newbie in using TestStand, databases and SQL, and now I have faced trouble. I'm using TestStand 2014 (32-bit).

 

I have a need to find the number of rows in a database and save that number to a local variable. I have tried to practise using the Database Step Types provided with TS. I tried using the following in a SQL Statement:

 

Locals.NumberOfRows = ("SELECT COUNT(*) FROM TEST_TABLE")

 

It returns an error: Specified value does not have the expected type. Can my goal be achieved this way, or am I doing this completely wrong?

 

 

-RautSa

Sequence Editor Fonts in Windows 10

$
0
0

Hello all,

 

Hopefully this is a question with a simple answer. I did search to no avail.

 

I've just upgraded from Windows 7 to Windows 10 on my development PC. I have TestStand 2014 and TestStand 2010 SP1 to support existing applications, and both exhibit this behavior:

 

Many fonts display correctly in the sequence editor, but the majority of them are annoyingly huge. (Please see attached screenshot)

 

Things I have tried:

  • Checking the sequence editor options dialog
  • Configuring Windows correctly. (No other applications have this issue, and our IT department confirms I'm not missing anything obvious on the OS side)
  • Editing SeqEdit.xml in <user>\appdata\local\National Instruments\<TestStand Version>\SeqEdit.xml.  When I edit font settings here they get mysteriously set back upon launching the sequence editor.

Does anyone know where these settings originate from and how to modify them for correct display?

(I'll feel really embarassed if it's something simple)

 

Thanks,

 

Jim

 

 

Adding custom UI indicators to the TestStand UI

$
0
0

Hello! I'm sure that this has been asked before but I cannot really find what I'm looking for. I have a TestStand sequence that contains a loop cycle testing the parts many times. I would like to show on the user interface a pass fail count for each part based on the sequences current state (real time display). the parts may run 1000 times or more and the UI should show the count for each plus a LED to show if the part is still active.

 

What is the best method to do something like this? UI messaging? if so how would i implement the messages and have a counter value for each part? Would each part have its own unique message?

 

Thanks for any help you can give me. If you could provide a quick example.

 

Bill

TestStand Open Sequence Error

$
0
0

Hi All,

 

I am not sure why the following is happening. Can anybody throw some light? (The sequence file path string contains the absolute path to a valid sequence file)

TestStand Open Sequence Error.png

 

Thanks,

Saranya

How to create Postexpression that creates a "jumpToEnd" depending on result?

$
0
0

Hello,

i want to create a Popup with to buttons. button_1 = continue and button_2 = jump to end.

How can i put this condition inside the PostExpression of the popup-teststep?

Thanks


Load a sequence in teststand with a UI labwindows

$
0
0

Hello all,

I use teststand 2014 and labwindows cvi2015.

 

I have made a User Interface in Labwindows in order to execute sequence in teststand.

I work fine.

 

I want to know if it is possible to load and execute different sequences from labwindows.

 

I explain : if a variable == 1 load and execute Sequence1.seq

               else if a variable == 2 load and execute Sequence2.seq

               else if a variable == 3 load and execute Sequence3.seq

               ....

 

Thanks very much.

 

Loic

Error : 1073094668 NI-CAN Write CAN Network Interface Object (ncWriteNet.vi)

$
0
0

I get this error only for one particular step in my test suite.

 

This step did not fail (usually) but gave this error upon execution. The step calls a LabVIEW vi and is one of the most frequently called steps.

But now this step has begun to fail a lot more than it used to. Also, because of failure of this step the following step (which is dependent ) on it fails, ruining the entire test run.

 

I went through the forums and KB all of them point to this. I checked the cabling and termination as suggested. My CAN bus is very small is length, with only 4 nodes. I use 1 termination plug of 10k. 

I have replaced the cabling and termination plugs, (I have tried 120Ohms too), nothing seems to work.

In the test suite, I tried to clear the CAN bus before calling that particular vi to see if there were too many messages on the bus.

Nothing seems to work.

 

What baffles me more is that, I have another test suite that uses the same vi and does similar things as this test suite and that one works perfectly. I use the same NI CAN device for both the test suites. I never have seen the same error with the other test suite.

 

Any help would be appreciated.

 

 

Ready to make the move from xml reports to database

$
0
0

 

After almost 3 years of using testand and getting a lot of experience out of it. I think i am ready to make the move to log my reports on database.

working with xml files has been a pain, when they get big internet explorer will have a hard time opening them and to avoid that i have to put less results on the report.

i want to move to a database format. I work for a big company where the IT guys dont even know what labview or testand is, so having a server on the main network will be difficult to get because of IT policy.

So i was thinking of using access or mysql. what are your experiences and what do you recomend?

Tcl scripts with Tk library in TS. Can it be run?

$
0
0

Hi,

 

TS2014 SP1 has a Tcl step type example.

 

It is a great but, unfortunately it does not support Tk library. It only support plain text based tcl scripts.

 

Technically speaking, to make it working, the Tcl script (with Tk references) content has to be parsed against wish.exe not against tclsh.exe.

 

The source code (VS solution file  & others) for the tcl step type is attached to the TS distribution.

 

I'm just wondering how much work is needed to make the Tcl/Tk scripts working from the TS.

 

The Tcl/Tk script which I want to call looks like below:

 

label .l -width [string length "Hello, Tk world"] \
	-text "Hello, Tk world";
button .b -text "Exit" -command exit;
pack .l -padx 40 -pady 10;
pack .b -padx 40 -pady 10;

Can we use same instrument at different places ?

$
0
0

Hi All,

 

Problem statement:

 

I am using NI SMU which I am initializing and configuring in TestStand at some point I am pausing my sequence and I want to measure the voltage i configured in TestStand using labview VI 

 

in order to do this I need to initialize SMU again in LabVIEW VI with out reset the device I achieved this.

 

but the problem is when I resume the TestStand Sequence and again try to configure or measure voltage means it is showing an error saying invalid session.

 

I know when we try to initialize the instrument it will close the old session and open new session.

 

are there any way of using same instrument in different places ?

 

please share your suggestions

 

thanks in advanceSmiley Happy

Viewing all 6589 articles
Browse latest View live


Latest Images

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