Stimulus profile stops logging immediately (Custom Steps)

Greeting again all! I'm using 2012 versions of everything here (VS, TS, LV, and DIAdem), and I'm also using VS Custom Steps for TS. I have a main TS sequence that does all of the configuration and setup tasks via subsequences and VS Custom steps. The only thing I'm using the Stimulus Profile for is logging at the moment, and for some reason the resulting TDMS file only holds six data points (logging at 100Hz). It looks like it starts and stops immediately, and I can't figure out why. 
The only steps I have in the stimulus profile are Start Logging and Channel Group steps. There's no Stop Log step, so the logging shouldn't stop until the TS sequence undeplous the project, as far as I understand it. Triggered Logging Trigger Condition is set to none, and File Segmenting is set to Do Not Segment.
Can anyone shed any light on what's happening here? 
Solved!
Go to Solution.

The best option would be to control data logging directly from the TestStand sequence, but I'm not very familiar with what steps are available. Newer versions of the steps seem to have some DataLogging palette available (just based on screenshots posted online), but they might not support VeriStand 2012.
You could do this by calling a LabVIEW VI from TestStand that would set up the data logging session, and then calling another at the end of the TestStand sequence to stop it. We have example VIs that ship with Veristand to show you how to start and stop logging.
Jarrod S.
National Instruments

Similar Messages

  • Array variable in stimulus profile editor

    Hi, 
    Am trying to assign a array values to Look up table in a Simulation model  from Stimulus Profile Editor 2011. What is the format to assign the array?
    -Sid 

    There are two main file types used in a test. The real-time sequence is deployed to the VeriStand Engine and runs in the primary control loop. A real-time sequence cannot set a parameter value.
    The stimulus profile document is the host-side sequencer that deploys real-time sequences and performs other host-side operations like controlling data logging.
    The stimulus profile can also run Workspace Macros, which record and playback various operations the user would perform through the Workspace window. One of the things a macro can play back is the setting of parameter values.
    To set a parameter value, you can open the Macro Recorder Tool and start recording, then set your parameter value from the Model Parameter Manager. After you stop recording and save your macro, you can play it back from the Stimulus Profile using the Macro Player step under the Miscellaneous category.
    You can then run different macros before running various real-time sequences to run your tests against different parameter sets.
    Jarrod S.
    National Instruments

  • Custmizing Legacy Stimulus Profile editor

    Hi Stephen, 
    I want to customize Legacy stimulus profile editor to add below features:
    - Converting test cases from excel sheet to CSV and to nivstest.
    - User interface to monitor status of each test case along with its channel values and display in graphs
    - User interface for logging test cases results back into excel sheets of test cases.
    Is it possible to share a source code of Legacy stimulus profile editor or could you please share the details like how it can be customized?
    Do I need to initiate seperate thread/post for this requirement?
    Regards,
    Nilesh

    Hello SG3,
    thanks for your feeback.
    We developed a project for our customer with NI Veristand. The customer's user account has limited rights. So he can only run the Veristand Project and don't configure it. Furthermore the Customer can run and edit Stimulus Profils in the Stimulus Profile Editor.
    The Customer need a adjustable look up table (LUT). That means e.g. he generates a wave signal. The wave signal is the input for the LUT. Now the LUT generates the output and the customer can use this output for your stimulus profile.

  • Data logging in STimulus Profile Editor

    I am trying to log a few channels using the logging function within the Stimulus Profile Editor - Step in VeriStand 2009. I have configured the logging to be triggered on startup. However all I got were empty TDMS files with only channel descriptions but no actual data values. Any ideas?  

    When you select the On Startup logging trigger, a Duration field appears. The default value is zero seconds (perhaps not a great default). This effectively means the log file never logs. Try setting this value to a larger number. You can even just use Inf if you don't want a limited logging duration. In that case it will log as long as the profile runs. The other limiter is the File Size Limit field. You can also set that to Inf if you don't want to limit the log file by its size.
    Jarrod S.
    National Instruments

  • Additional Results Custom Step using Variables in Name and Value to Log expressions?

    I am trying to create a Custom Step Type for logging additional results - requiring a single Name and Value data pair included in the step.
    I want to pass the name and value data in using two specific variables.
    This functionality can of course be explicitly coded on a test step without problem, but I can't find a way to create a custom test step which inserts such a step i.e. automatically inserting the correct variable names into Name and Value to Log fields.
    Any ideas how to accomplish this? I don't want the custom step users to have to type in the variable names every time they use it.
    I am using TestStand 4.1.1
    Message Edited by CIM1 on 04-20-2009 07:26 AM

    Hi CIM1,
    There are a few ways of doing this.
    The simplest one would be to configure the expression in the Pre-Expression or Post-Expression (depending on whether you would like the Step Type to use the value in the variables or write the value to the variables) and then from here you can lock away the expressions from being edited. The caveat with this method is that you are obviously restricing the Pre/Post-Expressions for the step type. 
    Another Method would be to code some code modules to Write to/Read from the Variables and then calling these in the Steps Pre-Step SubStep or Post-Step Substep. The advantages of this method would be that you can search for the Variable, and if the variable is not present, you could create it before writing to it.
    Hope this Helps.
    Best Regards,
    Steve H 

  • Call Stimulus Profile with Veristand API leads to failing test

    I wan´t to call a stimulus profile file programmatically. I discovered that there is no VI for that in the LabVIEW VeriStand API (for the legacy stimulus profile editor such a VI exists). But in the Example finder exists a VI which uses the .NET VeriStand API to acomplish this (http://forums.ni.com/t5/NI-VeriStand/Start-Stimulus-Profile-from-LabVIEW/m-p/1789162). Furthermore someone created a Custom Control for the workspace which uses this .NET invoke (http://www.ni.com/example/31335/en/). Both examples work in general but I have one problem which i´m not able to fix:
     If I use a "Update Model Parameters From File" step in the stimulus profile to change the parameters of a model the step is going to fail with the error: "Error: -307650. Details: Object reference not set to an instance of an object." This only happens if i use the .NET VeriStand API invoke to call the stimulus profile. If I start the stimulus profile out of the Stimulus Profile Editor this error doesn´t occur and the Model Parameter Update works correctly.
    If I delete the "Update Model Parameters From File" step the whole stimulus profile passes just fine.
    Has anyone an idea how to fix this issue or how to programmatically call a stimulus profile file with the VeriStand API? Thanks for any suggestions in advance and have a nice day.
    H.
    Solved!
    Go to Solution.

    I can reproduce what you are seeing. You can work around this very quickly by making a call to the StimulusProfile method CheckForErrors before starting its execution. This method is called by the Stimulus Profile Editor before it starts execution, and it must have some side-effect that causes the Update Parameters step to work correctly.
    Jarrod S.
    National Instruments

  • ITunes stops responding immediately after opening

    My iTunes stops responding immediately after opening and even force-quit doesn't do.
    Baically it freezes between pressing it and opening the window. In my large library, I can see that it loads it and then nothing more. The menu appears and then the wheel. Force quitting doesn't shut the program, no matter how I do it. It leaves the arrow and the only way is to restart the computer and start again.
    I tried using another account, and it does the same. I tried with a new library. I tried with new prefs folder both on the user and on the Mac HD. I tried reinstalling iTunes. I even tried reinstalling the whole OS X - but nothing. The only thing is that after zapping PRAM it might work once or twice, but no more.
    This is with iTunes 7.0.2, QuickTime 7.1.3 and OS 10.4.8
    I don't know what else to do.
    Any ideas?

    I'm having the same problem. It started recently - maybe about two weeks ago - and occasionally when I launch iTunes it just freezes. I can't force quit it completely - it still shows in the Dock as though it's running, though it's not present in Activity Monitor.
    Curiously, I've also had a couple of kernel panics when clicking iTunes buttons in the past week. I don't recall any system update that might have affected either iTunes or QuickTime, so I'm stumped... The only way to get iTunes back is to log out or restart.
    Kirk

  • Ucm: displaying some fields on a profile based on a workflow step

    Hi,
    Is it possible to hide/display some standard/custom metadata fields on a profile based on a workflow step/
    e.g. I am having a workflow with 3 steps
    1. manager step
    2. specialist step
    3. reviewer step
    On the 3 step, a reviewer can decide calling an adhoc workflow if he updates some custom metadata fields(adhoc rev1, adhoc rev2). My requirement: Is it possible to show the custom metadata fields only to reviewer on updating the content item. It should not get displayed while checkin the content item or any other step users update the content item.
    thanks

    I had a similar question some times ago - see this thread: Value of dpAction
    Yes, you can do it, but you will have to define rule activation conditions properly - using dpAction and dWfCurrentStepID.

  • Database, custom step types, ann XML report issues...All in one

    TS3.0
    Have a number of issues to do the above. I'll try and explain them in order. I'm sure there all linked, but can't figure out how...
    The "Custom" Steps.....They are copies of the NI Numeric/Multiple Numeric tests, with a added post step to translate the error code into something meaningful.... No big deal.
    XML Issue
    When the report is generated the the Multiple numeric saves fine(See Multiple.txt, the step is of numeric type, all is well). However strange things happen in the Numeric test. see "Simple.txt" for a snipit of the result file. As you can see the "error code" contains the measurement. Why....?
    Also in the XML the result seems to be reported as a normal step(like an action) and not a numeric test....
    DATABASE Issues
    Now when loggin to the standard DB that ships with TS, with the 1 change to the tables, to record our custom types in the DB. Everything works fine and is recorded untill the 1st instance of a skipped "Custom_MultipleNumericLimit Test" , at which point the DB (Microsoft Access) throws a wobbly(error message) and states that "No such col exsists". When the DB is looked at everything is recorded upto the point where a skipped Custom Step happend(and the error message). When the custom type is run normally(ie not skipped), the resutls are recorded fine, no problems.
    Can't get my head around whats going on. I've check the property flags, and as far as I can tell every thing is in order for these custom steps(ie they look the same as the TestStand steps they are based on). It records fine in the XML.
    Attachments:
    Zip file with XML snipits.zip ‏1 KB

    Can you be more specific details about your database problem, specifically:
    1) the changes that you made to the default schema
    2) the changes that you made to the database tables
    3) the entire error message text for the logging error
    Scott Richardson
    National Instruments

  • Event Viewer cannot open the event Log or Custom view. Verify that the Event log service is running or query is too long. The instance name passed was not recognized as valid by a WMI data provider(4201).

    "Event Viewer cannot open the event Log or Custom view. Verify that the Event log service is running or query is too long. The instance name passed was not recognized as valid by a WMI data provider(4201)"
    This error keeps cropping up now and again on most of our domain controllers (OS-2008 AND 2008R2)...Usually a restart fixes the issue however the issue repeats and security logs don't generate.
    Any advice on how to fix this issue permanently would be greatly appreciated.

    Please see this: https://social.technet.microsoft.com/Forums/windows/en-US/95987ca3-a1b2-4da6-95b7-d825d06cdac7/error-code-4201-the-instance-name-passed-was-not-recognized-as-valid-by-a-wmi-data-provider?forum=w7itprosecurity
    You can also try rebuilding the WMI repository: http://blogs.technet.com/b/askperf/archive/2009/04/13/wmi-rebuilding-the-wmi-repository.aspx
    This posting is provided AS IS with no warranties or guarantees , and confers no rights.
    Ahmed MALEK
    My Website Link
    My Linkedin Profile
    My MVP Profile

  • Custom Step Type Execution

    I've made a custom step type which calls a .NET module. In the Properties>>SubSteps tab I added an Edit type which opens a dialog for the user to enter parameters when they edit that step type. Then I added a Post-stpe type which I thought was what gets called when the step is actually executed in a sequence. When I run a sequence that uses one of these types, the edit dialog pops up again, then only after I close the edit dialog does the post-step run. I assume I read something wrong because I thought the edit step type should only get called when one is editing the custom step type in the sequence editor prior to actually running the sequence that uses that step.

    Josh,
       I think the issue is with the Edit step. Before the custom step type ever runs in a sequence the desire is to be able to edit parameters via some custom mechanism. i.e. one of the main reasons for creating a custom step type is to override and customize the parameter enter\select functionality. When a user adds a step, usually the next thing he or she does is immediately right click and select to edit it and enter parameters. When one of these custom steps is added and you try to 'edit' it, here is where the problems start. If, as you say, the .NET object will not get instantiated until the sequence is actually run, you will never be able to access it and call its functions at edit time. I guess that's why all the examples I've seen use calls to C\C++ style dlls so no objects are involved.
       Clearly the problem stems from my misunderstanding of when a .NET object can and\or will be created in custom steps in Test Stand. It just seemed logical to me that one should be able to force creation of an object in a pre-step but I now know that isn't true. However, there has to be some step or event (possibly when the Test Stand environment loads for example) in which I can create any .NET objects I want to use in custom steps. Maybe I'll look into that. If it turns out to be too much trouble to do so, I will stick to doing things via direct C\C++ dll function calls. Most of our .NET modules are just wrappers of multiple C\C++ dlls anyways. If you have any more info or I'm mistaken in my thinking please let me know. Thanks again.

  • Put the report into shape for custom step type

    Hi All,
    I created a custom step type and also managed to get the results logged into the report file.
    In the report file(See ‘[15 33 14][22 10 2007].xml.vi’ please remove the 'vi' extension) the 'StepResult' (created by my custom step type) appears just below the status. Is it possible to get it displayed somehow the cell(measurement column) next to it, like in a Numeric Limit Step? I’m using the ‘horizontal.xsl’ stylesheet and Teststand 3.5.
    Furthermore, is it possible to change the name of the column headers? Or the structure of the header?
    Cheers
    Attila
    Attachments:
    [15 33 14][22 10 2007].xml.vi ‏17 KB

    Hi again Attila,
    Further to my above post, I've collaborated with colleagues here and have been able to modify the horizontal.xls stylesheet such that it is suitable for what you require. This modification will ensure that all properties named StepResult will be displayed as you described, in line in the table.
    To ensure compatibility with your results in TestStand, a small modification to your sequence file is required. In your sequence file, right click the value for your custom step, go to Advanced > Edit Flags and uncheck all boxes. The text in the bottom of the window should now read "0x0". This should mean that your data is displayed correctly.
    I am attaching the modified horizontal.xls for you to use [remove the .vi extension]; please make sure a backup is created before you replace it. The file should be placed in your TestStand directory under Components\NI\Models\TestStandModels\StyleSheets. Modifications to column headers as described in the above post can be made to this file.
    I hope this soultion is satisfactory and that you are able to implement it. If you have any further questions please don't hesitate to reply.
    Regards,
    Tom
    Applications Engineering, NI UK
    Attachments:
    horizontal.xsl.vi ‏84 KB

  • Custom step type

    Hi,
    I am using TS4.0.1. and LV 7.1.
    I tried to create a custom step type (MultipleNumericTest_VBATPXI), which similiar to NI_MultipleNumeriLimitTest.  The difference is, I have two additional measured data. (I don't want to check those against Limit, but want to log to the database. )
    So I created the custome Datatype (Limit_test_VBATPXI) similar to "NI_LimitMeasurement" and add required two fields.  This datatype is passed to the "MultipleNumericTest_VBATPXI" steptype for Result.Measurement  type.
    In property browser it shows Results.Measurement as Limit_test_VBATPXI type. But when I add one value in Limit window, Result.Measurements.Measurement[0] becomes type of NI_LimitMeasurement !
    How to solve this?
    br,
    Vishal
    Attachments:
    Test_Type1.seq ‏30 KB
    test38.vi ‏13 KB

    Hello Vishal,
    When you click the "Add Measurement" button on the Limits tab of this step, it is actually calling the EditSubstep of the NI Multiple Numeric Limit Step type.  This Edit substep function, EditMultiNumericMeasurementStepUsingExpr(), is located in the  "<TestStand>\Components\NI\StepTypes\CommonSubsteps\CommonSubsteps.dll" file.  If you wanted to change the behavior of your custom step type, you would need to make your own dll (all of the source code for the CommonSubsteps.dll is provided) that would add your custom type instead of the NI_LimitMeasurement type.  I hope this helps alleviate any confusion.
    Best Regards,
    Software Engineer
    Jett R

  • Custom Step Type SubSteps Bug ?

    Hi,
    I'm having what I think is a bug. I'm doing a custom step type in teststand 4.2 and I can't put the pre-step substep before the post-step. I also know that TestStand are not executing them correctly since my pre-step create an object and the two post-step uses this object to set informations.
    Please look at the picture below

    Hi Crusader,
    Though the Pre-Step is being listed after the Post-Step substeps in your image, it will execute before them because of its very nature as a Pre-Step.  As per the TestStand Reference Manual, the Pre-Step substep will execute immediately before the module, and the Post-Step substep will execute immediately after the module.  
    The Move Up and Move Down buttons on the dialog are meant to function only when you have multiple substeps of the same type, in which case order of operation becomes important.  For example, if you were to highlight one of your Post-Step substeps, these buttons would make themselves available.
    Derrick S.
    Product Manager
    NI DIAdem
    National Instruments

  • Custom Step From Multiple Numeric Limit Test | Hiding Limit Tab

    Hi All,
    I am trying to create a Custom step from Multiple Numeric Limit Test. The custom step by itself poplulates the Limits value from the measurement. So I am planning on hiding the Limits Tab in the step settings. Can someone guide me on how to do this ?
    Thanks,
    Prasaanthan
    Solved!
    Go to Solution.

    Prasaanthan,
    if you do not need the Edit Substep at all, you can delete it from the substep list.
    Keep in mind that TS gains a lot by using very focused modules. So including a module which does two things (taking measurements, populating limits) might beckfire one day result in "difficult to manage" applications.
    hope this helps,
    Norbert
    CEO: What exactly is stopping us from doing this?
    Expert: Geometry
    Marketing Manager: Just ignore it.

Maybe you are looking for