The execution of the sequence TestStand in LabVIEW via TS - API: execution different times for the same sequence

Hello - the members of the Forum.

I have a problem about the execution of a TestStand sequence into LabVIEW. I created a VI that offers the possibility to choose a sequence TestStand-file and then executes the sequence using the TestStand API. The implementation is based on an example in C++-Application found the following link:

http://forums.NI.com/T5/NI-TestStand/unreleased-references-using-engine-API-in-C/m-p/2927314#M46034

The app works pretty solid where the VI is executed the first time. The VI treats the sequence chosen in an acceptable time.

But where execution is started again, the sequence takes approx. 30 sec more than in the first case.

So far I have not found a solution and hope someones got a clue about this problem...

I use 2013 LabVIEW and TestStand 2013.

I enclose my own VI, a sequence of the specimen with a small sample of VI, so you can reproduce the problem.

Kind regards

TobiKi


Tags: NI Software

Similar Questions

  • Movement of the different times for the same region in TO_TIMESTAMP_TZ

    As an example, I have the following sql:

    SELECT TO_TIMESTAMP_TZ (31 December 2013 13:30:30.1345 Europe/Rome"

    'MON-DD-YYYY HH24:MI:SSXFF TZR')

    GOT one

    , TO_TIMESTAMP_TZ (31 DECEMBER 2013 13:30:30.1345 THIS ')

    "TZDS HH24:MI:SSXFF MON-DD-YYYY")

    AS b

    FROM DUAL;

    If you run this, you'll see that column A gives a difference of one hour, while the second gives the offset of 3 hours.

    How this is possible, because in v$ timezone_names THIS is the abbreviation for the Europe/Rome?

    Any idea?


    Thank you

    I finally thought to it. I was under the impression that the time zone abbreviation is unique for each time zone on the globe. They are not, so you can have THIS as an abbreviation for time zone for the Europe/Rome which is UTC + 2, but you can also have THIS for Lisbon/Spain which is UTC + 1.

    Because of this when using TO_TIMESTAMP_TZ with TZDS alone, Oracle does not know what time zone you are making reference to and it will convert it to the time zone schedule sessions.

    So well to convert a string to a timestamp with time zone time to specify the name of the zone (such as Europe/Lisbon) or a combination of zone name and the abbreviation for the time zone (Europe/Lisbon THIS or Europe/Lisbon CEST)

  • Add limits to the parameters step through API TestStand of LabVIEW

    Dear LabVIEW and TestStand community!

    I am trying to add FileGlobal Variables that limits TestStand step NumericLimit programmatically, via LabVIEW via the TS API. I attach a screenshot of the code, which I use (part of it - the module that defines only values up to a limit high and low of the step), and also I agree, what I managed to get.

    In TS, when I open the file in sequence, after the execution of the code, I see in the description of the test line, he accepted limits, I put the LV - you can see on the screenshot, it is marked yellow. But in the "Limits" tab, there are even numeric values by default, not FileGlobal Variables.

    Could someone explain, what it means and how to configure correctly?

    Thank you very much in advance!

    I think that the search string to set the value Boolean true is inaccurate. Try to use "Limits.UseLowExpr" and "limits. UseHighExpr ".

    -Shashidhar

  • a problem with one of the files in the TestStand\AdapterSupport\LabVIEW directory

    When looking at the module a LabVIEW VI called for TestStand, I get the following message:

    A problem with one of the files in the TestStand\AdapterSupport\LabVIEW directory.  Please reinstall or repair.

    I made the mistake of cleaning C: in my computer.  Clean the C:\National Instruments downloads

    Why would someone put bits of applications or modules, etc. in such a directory?

    I'm not too crazy about restoring 11FR in this folder.  It's just crazy!

    If anyone has encountered this before?  No "easy"? outside re - install TS...

    Side note: I do not touch anything in the \Program files. National Instruments\TestStand\AdapterSupport\LabVIEW

    What version of LabVIEW and TestStand do you use?

    In 2012, TestStand, this directory is mapped to:

    C:\Documents and Settings\All Users\Documents\National Instruments\TestStand 2012\AdapterSupport\LabVIEW

    Have you tried mass compiling the screws in this folder?

    I had to create a new 'TestStand - default values XX.llb"file, where XX is the last version of LabVIEW you use, but I have not seen this message before.

    Good luck

    PH

  • Emergency aid! How can I run in the same block diagram two separate labview codes each with a diferent execution timings?

    Dear all.

    I have 2 progrlams application in the same schema. the intention is to use the 2 different when excuting programs for different applications, and each have to stop and start button, of course, I'll have to stop master. But when I run the program, it works as a program in time, it's the 1st block which I make active only, when I tried to activate the second block, that won't work, works only when I stopped the1st one. So, he wants your help, how can I solve my problem. Here I am attaching some of my programs.

    Kind regards!

    Furthermore, if you want two loops to run at the same time, just this.

  • Sequence catapults TestStand window Labview

    When I opened a TestStand 3.5 sequence therefore Labview is open. But I have a test bench where this happens. (Note: the bench are software and hardware identical, but assembled in different time). Also, when I run my test application (which reminds a teststand sequence), on the first bench is always displayed the window of labview, while on the second bench, no window of labview.

    I want to reproduce the second behaviuor: no window of labview.

    There is a parameter to teststand to block the window labview?

    Note: the test request and the sequences are the same on both seats. Setting bench are identical. I checked all the settings between the two seats.


  • Unexpected behavior during execution of LabVIEW VIs when Teststand launched LabVIEW

    Hi all

    I see some strange behaviour when I run a LabVIEW VI, calling the command line utility.  This ONLY occurs when the process of LabVIEW has been started by TestStand and disappears if I have everything close and launch only LabVIEW.  Here is the example files and the steps leading to the error:

    (NOTE: unzip all files in a folder called 'Labview')

    1. launch TestStand and open the ExampleSeq.seq

    2. click on the stage and wait for TestStand launches LabVIEW.

    3. now open the Junction_Create.vi and run. -It does not work with an error code 2 "memory full".

    However, if I close both LabVIEW and TestStand and then open only the Junction_Create.vi and run them, everything works great!

    Someone at - he seen this before? I have to think this is problem with TestStand, but no idea why this is the case?

    Thank you

    Vikas

    Hi Ray,

    It's the SystemExec.vi that generated the error.  However, I have now found a solution to the problem.  I added the "cmd/c" before the chain of command, and this seems to fix the problem!

    Reg,

    Vikas

  • Use the same code module to multiple steps in the sequence

    Hi all

    I tried to implement a sequence that uses the same code for all steps module in the order, but I'm not returning to it when I need to send it commands.  I got regarding the appellant the VI in a new thread so that it can be executed asynchronously.  I can run the simple sequence and it will indeed open the VI and move to the next step.  When I close the VI manually from the front, the TestStand sequence is completed, as planned.  So it turns out that I have a lot more work.

    My question is how to call the thread separate from the main sequence and other sequences overtime when I need to change the settings.  If I insert a step in the Action, I have to select a file of VI, but from what I can tell, it opens another instance of the file and does not provide an interface with the other asycronously running instance.  My next guess was to use a stage of education, but I was not able to understand how to configure the search string to call the VI settings.  In addition, I don't know how to proceed.  Please notify.

    My intention is to start the module code (asynchronously) VI, run several different subsequences in the main sequence, which call this same VI and edit its settings, close everything and report the results.  If I'm understand how TestStand is supposed to work, please let me know.

    Thank you

    GSinMN

    What I do is use a queue to send data to the asynchronous VI.  So he can run and whatever, but also receive orders from the queue.  I use a motor of Action that contains the reference to queue and sends the commands.  If you really just call the engine of the Action of your sequences.

  • How can I run two sequences simultaneously on the same object to measure

    I'm turning two sequences in parallel on even the UUT (own USE) so that I can put a piece of equipment to a certain State while starting a timer at the same time.  How can I do this in the sequencer teststand?

    You can run a sequence (or a subsequence if you just need a timer) in a new thread (just choose "use new thread" in the call of the sequence)

  • DAQ Assistant Express Vi to acquire and generate data at the same time in LABView

    Can I run acquire it and generate the Express Assistant DAQ Vi at the same time in a LABView program? I am using LABView 2010.  It's acquire and generate a NI USB-6009.

    Thank you

    Mary

    You can acquire and generate the same VI but obviously you can't generate a wave form unless you do a single point at a time inside a loop with a sample on request and can live with low samples/s specifications.

  • parallel and sequential in the same sequence

    Hello

    To expedite the duration of the test, I would like to make some of my steps in parallel with others.

    However, some of the previous steps and the following must be executed sequentially.

    How to combine these 2 behaviors run inside the same sequence?

    Put the digital multimeter read in a sous-suite. Then call three times, with the option to purchase New Thread subsequence. You can use the three steps in sequence call, or to execute a loop on a single call.

    After the call, use a step of waiting with the wait for the option of Thread for each call. You can use the three steps of waiting to match your three calls, or if your calls were in a loop, you can use an expectation not in a loop.

  • Cannot run Simulink DLLs at the same time that the execution of the target time real VI

    Hello

    What I try to do is run a dll created in the Simulink model to control some servo through a CompactRio 9014.

    For the moment, I managed to create three screws

    (1) in the FPGA target that performs the PWM channel desired

    (2) which takes the value of a variable that contains the desired position and network that feeds to the 1st VI

    (3) a VI that is running on the host computer that changes the value of the network variable to change the position

    I can get these three work screw and the servo controlled, but when I try to update the value of the network variable using simulation, by deploying to the target of RT simulation and running, he said:

    ' Access denied: this objective is already used by another host or project. »

    I guess that's because the project is already connected the cRio, so I unplug and am able to deploy the model files.

    However, when I try to run one of the screws in the Targer RT as well as simulation I get the error:

    "This VI is downloaded to the target, but is not present in the project you are trying to deploy.  All the screws on the target will be closed unless you choose to add the missing project VI. »

    With a large number of missing screws...

    I'd do this wrong, i.e. is there a simpler way to control inputs FPGA using the simulation, or is there something I have missed?

    Thank you

    Geoff

    Hi Geoff,

    I think I understand what you're trying to do and what you've done so far.

    If I'm not mistaken you have passed through the SIT connection manager, set your target RT (select DLL, mappings and hardware i/o) and this is his 'magic '.   If this is the case of look for the project pilot LabVIEW which was created by the SIT connection manager.  This should live in the same folder where is your DLL.  Open the pilot project, search for VI driver and open it.  Then go into the Sub - VI # 5 has with the name of the loop rate Base.  It's the Subvi who reads/writes on the material and the reads/writes the data to the DLL/OUT model.  If you want to read the output of your model and then manipulate the data that is where you need to add your code.

    Inside of this Base rate loop VI there is a Subvi with number 4 and called SIT take model Timestep.  This VI is the one who makes the call to the DLL model.  The output of this VI is your data from the model.  This data goes into slot - VI # 5, which is responsible for the drafting of these data to the material.  Since you want to manipulate that data from the model, you need to recover data from the wire coming from the Subvi 4 (SIT take model Timestep) before it gets to the Subvi # 5.

    In this VI of Base rate loop, you will see that there are a few empty block structures.  These images are for you to put any code you want.  The reason is that any changes you make to the driver VI and subVIs that aren't inside of these frame structure will be lost if you decide to go in the connection manager to sit DOWN again and make some changes.  The VI pilot gets new script whenever you do something in the SIT connection manager.  Whatever it is inside these frames will not be erased.

    So, if you have a code you want to run in parallel to the simulation you just have to drop it inside this driver VI.  Very probably within this Subvi 5 (Base rate loop). To add your code just drop the VI in one of these settings and make any changes that him so that he can read the data in the model.    Furthermore, the model (Subvi 5) data in a table.  For the index of each element in the array and its meaning look for a file in the same folder where the DLL is named readme.txt ports.  This file has a description of the inports and small ports and their indexes.

    This VI driver is called when run you the host VI so you won't have to run sepearately.

    Kind regards

    Ricardo

    National Instruments

    Systems engineering

  • Collection of data from more than an instrument via the same labVIEW program

    Hello

    I have a program whereby I collect data on a scale of and save the data in the text file. Now, I need to collect data of three identical scales and save the data. I wonder if it is possible to do so in the same program? I mean how to manage three ports and save three different text files?

    I enclose the current program. Communication with the scale series and I use VI:s. thanks in advance for the help = VISA)

    This is easily possible with a single program, and there are several ways to do so.  I recommend the following:

    1. Take data from these devices in a separate loop (this could be in a separate - VI, as well).  These loops should be state machines if you can start and stop the acquisitions in a clean way.  This assumes that the instruments are on separate ports.  If they are on the same port, you probably want to use the same loop.

    2. Write to the file in a single loop.  This, too, should be a state machine.

    3. Queues to send data from the acquisition of loops to the loop of file I/O.

    4. Use still another loop for your user interface.  It must contain a structure of the event.

    To do this, you will need to learn more about the State machines and producer/consumer architectures.  Start with the help of LabVIEW, then search these forums.  There are a multitude of implementations of State machines and producer/consumer architectures.  If you have the time, I highly recommend you learn and to use the classes in LabVIEW (requires LabVIEW 8.2 or later).  This will facilitate your work in the long term.

    Let us know if you encounter any problems...

  • Applications with the same resources of project running in LabView

    Hello

    is there a way how to force LabView running screws (apps) that share resources (screw controls etc.) as independent.

    I have a project with TCP/IP networking, it is better being debugged localhost, and two applications share a reusable code that I use (report errors, typedefs), synchronization of threads

    If I run both as screw, she eventually of course dysfunction, because both applications share a memory, which is supposed to be the current process.

    Now I have to build these Apps with debugging turned on to solve this problem, it's a lot of your time, because every code change must be to rebuild

    You have both of your applications in the same project?

    If so, try to put in different projects.  LabVIEW will create spaces separate memory for them.

  • Input module of data acquisition can be read by two or more LabVIEW vi at the same time % 3F

    I use the DAQ palette in LabVIEW to read the virtual channels of the input data acquisition module. I've done several VI who read many entries of three modules of simulations. The problem appears when I run two or more VI´s reading entries from the same virtual module (for example. first.VI module 1 input ai0 and second.VI bed ai0 entry module 1 bed), when this happens the next errors are shown:

    Error-50103

    Platform AND Services: The specified resource is reserved. The operation could not be performed as indicated.

    and

    Error-200022

    Resource requested by this task has already been reserved by another task.

    It's worrying because I want to get the DAQ chassis and some modules, but if this problem is present with physical equipment my application may be unnecessary. This means that entry module only can be read once at the time?

    I m using global variables in each Subvi to share data with main VI, however, I found the solution in a different way... I just changed to single channel and dbl sample playback mode, so I Don t need to clean up the task of reading in my subVI´s, the zeros isn´t problem here, and the six subVI´s work at the same time!

    Thanks for the tips!

Maybe you are looking for

  • iTunes downloads 12.2.2 iOS9.1 when you try to restore the iPhone with iOS9.3.1

    I have the Macbook Air with 10.7.5, iTunes 12.2.2.25 and iPhone 4S iOS9.3.1 When I try to restore my iPhone, iTunes downloads iOS9.1 and fail to restore after awhile. Can someone help me solve this problem?

  • Fix a time capsule to Shaw network problems

    Shaw has provided a new advanced wifi modem and configure the modem via a wired ethernet bridge mode Apple Time Capsule. As mentioned in other forums, it does well to expand the network.  Believe me I tested it, and it's the rocket quickly in all are

  • All-in-one HP Photosmart C5300 found series driver

    Hello! I have a HP Photosmart C5380 all-in-One hooked up with my Airport wireless at home station, from where we can print from any laptop paired with it. When you install Hello to a new workstation based on windows 8, it identifies the series C5300

  • Questions of POE with N2048P

    We have recently made switches N2048p in our building to replace our aging switches Cisco 3750 G and ran into problems with the POE.  We have some devices that work perfectly well with the Cisco switch but will not turn on not with Dell switches.  Mo

  • BlackBerry Smartphones restore backup old phone to new phone

    Please correct me if I'm wrong... I had blackberrys for ever.  About 50% of the time I got the phone because I damaged the previous.  I often have backups of any phone, but would never be able to restore the backup to the new.  Rarely, I had the chan