Profile of Stimulus of departure of LabVIEW

Hello

I created 4 profiles of stimulation with the editor, and now I want to be able to start them with LabVIEW.

Unfortunately most of the screws on the palette works with sequences instead of profiles. My profiles are configured with the parameter assignments and logging as well as sequence of calls. Is it possible to run profiles together instead of sequences?

There are indeed. It is not a set of screws to use, but you can call directly the NationalInstruments.VeriStand.RealTimeSequenceDefinitionApi.dll assembly to access the functions and reminders for running a profile of stimulus.

First of all, I would like to start by looking at the following example VI to help to start:

\examples\NI VeriStand\API\Execution API\Sequences\Stimulus control profile Tool\Stimulus profile control Tool.vi

It may be a little more complicated that you need, but it should have all relevant parts.

Tags: NI Products

Similar Questions

  • Profile of Stimulus call API Veristand leads do not have test

    I wan´t to call a stimulus program profile file. I discovered that there are no VI to do this in the API of the LabVIEW VeriStand (for the profile editor of stimulus inherited such a VI exists). But in the example finder is a VI that uses the API .NET VeriStand Edifier present (http://forums.ni.com/t5/NI-VeriStand/Start-Stimulus-Profile-from-LabVIEW/m-p/1789162). Furthermore, someone created a custom control for the workspace that uses this .NET invoke (http://www.ni.com/example/31335/en/). Two examples of work in general, but I have a problem that I m not able to fix:

    If I use a step of "update model parameters of a file" in the profile of stimulus to change the parameters of a model of the step will fail with the error: ' error:-307650. '. Details: object reference not set to an instance of an object. "This only happens if I use the API of VeriStand .NET managed to call the profile of stimulus. If I start the stimulus of the profile editor profile stimulus this doesn´t error occurs and the update of the model parameter works properly.

    If I delete the step of "update model parameters of a file" the whole stimulus profile goes very well.

    Anyone an idea how to solve this problem or how to call a stimulus with the API VeriStand profile file programmatically? Thanks for your suggestions in advance and have a nice day.

    H.

    I can reproduce what you see. You can very quickly get around this by making a call to the method of StimulusProfile CheckForErrors before his execution. This method is called by the Publisher of profile of Stimulus until it starts to run, and he must have some side effects which causes the update settings not work properly.

  • departure fom LabVIEW VeriStand

    Hey guys,.

    I installed VeriStand a few days ago and now I would like to connect LabVIEW and VeriStand.

    I already explored how to run a profile of stimulus in an open VeriStand workspace to a LabVIEW VI.

    Now I would like to open & run the workspace (like the 'performance' - button in the window of road VeriStand project is).

    Does anyone know how to do?

    I joined my current state, but I guess that I do not use the right screws.

    Frank

    There are a set of screws, you can use to do this. They are not on the palette, but you can find them in the NI VeriStand folder under vi.lib to \vi.lib\NI VeriStand\Execution\Project.

    There are screws to open a project, run it, open the workspace, etc.

    The screws you use only control the system definition, not the VeriStand project and workspace.

  • Issue of Python API and profile of Stimulus

    Hello

    I am using IronPython with Visual Studio 2010 to create automated tests of a PXI system I have. Most of my knowledge API (and Python) so far has been coming to this thread of Iron Python . Although very useful. I am not able to get the parts of profile of Stimulus work. I have command over the line, forcing the acquisition of basic data output voltage, but I was hoping that use the far more high-level control provide by VeriStand.

    My methodology so far has been 1) create a profile of Stimulus in the Editor (something simple like a shifted sine wave) 2) I do not specify a specific channel in the profile (because I want to use the same waveform on several channels, in order) 3) record 4) Point the Python script to the sinewave.nivstest of the file Run 5). Is there something wrong with this process?

    The problem is that 'running' is really doing nothing. I'll have to study this more within my reach, but the result is something (it begins almost at work!) but for something that should be hard about 20 seconds, it ends immediately after the first 'blip '.

    I use Iron Python 2.7, VS 2010 Shell. If it's important for some reason, I use a custom material OR and card FPGA DAQ. And I would say force SetChannelValue (X) works for all outputs.

    Thank you very much!

    It's probably because you're playing a stimulus that has no mapping. The same thing happens if you specify a mapping in the profile?

    Unfortunately, there is no API in NI VeriStand in 2010 to change the mapping. So that's all that you specify when you create with the GUI. However, the nivstest file is actually just XML so that you can use any XML parsing and API for editing to change the mapping. If you don't want to use an API for XML editing, you can try to use the technique in the VI posted on this thread to change the mapping.

  • frequency sweep performance in the profile of stimulus Editor

    Hi all

    I am trying to understand what is the best way to do this.

    I have an output signal. I want to start with a 5V signal, so I want to do it in a sine wave of amplitude of 0.05v starting at 1 Hz and gradually increase the Frequency, squirt up to 500 Hz. I know there is a sinusoidal wave function in the profile of stimulus Editor, but he seems to want to keep the fixed frequency.

    Thank you.

    There are a few options:

    1. your own sinewave sequence that will sweep the frequency while he plays. The integrated sine wave function is just a sequence that you can view and copy edit however you want. Double click in the palette to view the sequence.

    2 use multitasking and the sequence of the sinusoid built-in. The sequence of SineWave takes in a setting for the frequency, but it takes the value by reference. This means that if the value mapped to the frequency parameter changes so that the sine wave sequence runs, the frequency of the sine wave will update, too. This allows you to use a multi - load to run two parallel tasks: to call SineWave and one for the ramp of the frequency variable.

    Attached, is an example to help you make sense of it. Maybe it's not the exact logic you want, but should help you get some ideas going. I hope this helps!

  • the substitution of variable in the profile of stimulus Editor

    Hi all

    I want suggestions on how to do it.

    So I put the system definition for one of the signals as model Output1--> channel 1--> PXI FPGA AO1 user

    Generally, the model output has controls the FPGA. However, I would like to substitute the output signal to another value to test a few flaws. I tried to substitute in the profile of stimulus Editor, but it would not work (for obvious reasons). I wonder what I can do to substitute the value of another signal that remove the mapping of model output 1 for channel 1 user whenever I want to test this fault.

    Thank you.

    Great question!

    If you use the new editor of profile of Stimulus in 2011 VeriStand, you can perform insertion for lack of software of a sequence in real time using a set of special functions, fault, and clearfault. Fault function allows you to activate a software problem a specific parameter is mapped to a string of system definition (condition it is faultable) to a specified value. This replaces any source can have this channel mappings. To clear the fault of software, call clearfault on the service.

    You can call these functions directly from the Expression. Here is some help on these and other features, you can call in a detailed sequence.

    For example, imagine that you have the following sequence and ao0 parameter is mapped to the string of PXI FPGA AO0 system definition. This sequence when run would fault the AO0 PXI FPGA channel to the value - 10.0, wait 5 seconds, and then clear the fault on AO0. If the fault is active, all mappings are substituted, and any attempt to set the channel failing of the workspace will also fail. When the problem is resolved, any source mappings will affect again.

    IMPORTANT NOTE: There is a bug in VeriStand 2011 which prevents a sequence of faults in real-time completely a channel if no other channel is currently failing in the system. The solution is to open the software tool Fault Manager of the workspace and the fault of some channels dummy, as a channel not used user, before running your sequence.

    • MySequence.nivsseq

      • Parameters

        • AO0

      • Code

        • Setup

        • Main

          • Expression: fault (ao0,-10,0)

          • Expression: Wait (5.0)

          • Expression: clearfault (ao0)

        • Cleaning

  • Ramping blamed the parameter in the profile of Stimulus Editor.

    Hello

    I am trying to familiarize themselves with the new Stimulus profile editor and encounter a problem I don't know how to solve.

    I have a model-driven setting. In one of my unit tests that I want to make a mistake on this parameter and the fault should scale the value exactly as the ramp function.

    I can do this within the profile of Stimulus editor himself or how can I do?

    / Johan

    You can do this with a custom real-time sequence. The easiest way would be to make a copy of the sequence of integrated ramp and modify it slightly to a fault of the parameter output instead of a simple assignment. You can open this sequence simply by double clicking it in the palette in sequences. If you open the sequence in real time of the ramp in the standard library, you will see the line where he attributes the current value of the ramp to the output parameter:

    RampOut = (I * Increment) + InitialValue

    All you have to do to change this from a standard to a fault assignment as assignment follows:

    fault (RampOut, (I * Increment) + InitialValue)

    Note there is a bug in the VM of real-time sequence that could not completely error a channel of the system unless another channel is currently failing. The easy solution is to create a dummy user and fault channels it in Manager fault channel of dialogue for the duration of your test.

  • Profile of Stimulus running of the door of entry/host

    I would like to know if this is possible:

    Run a VeriStand project on one computer (the ' bridge') and run profiles of stimulus from another computer on the same subnet. I try to do that and specify IP address of gateway of the stimulus profile editor but get the error 307998:

    Compiler error...

    TopLevelSequenceFileDoesnotExist...

    But the sequence files are there. And I know it's to communicate with the gateway, because if I gave a bogus gateway address, I'd get different errors. Are there other details of configurations I need to know to run stmulus profiles to another computer?

    Thank you.

    You can run away from patterns of stimulus on another machine as the host of the gateway, but it requires some work to set it up properly. The problem is that when the stimulus profile specifies to run a real-time sequence, it specifies the file path is the path of the file on the gateway machine, and not on the local computer. So this is the problem, you probably see that the sequence exists on your local computer to the specified location, but not on the gateway machine.

    For example, if your profile of stimulus runs a sequence in real time to "c:\temp\mySequence.nivsseq", then this sequence should be in c:\temp on the gateway machine.

    You can do by storing sequences on a shared network location, which is the same for the gateway machine and the local machine. For example, if you have a file called myFiles server, you can then copy the sequences it and specify the path '\\allFiles\mySequences\mySequence.nivsseq '. It should work, because the path is the same of the local machine and the front door.

    Alternatively, you can map drive paths in Windows of hand and on the other to create the same virtual on the local drive letter and the host of the gateway.

  • Profile of stimulus so stop procedure

    Is there a way to stop a profile of stimulus through a procedure?

    Let's say that we have set up an alarm to trigger a procedure.  This alert is used to monitor a physical emergency stop button connected to a digital input.  When the condition of the track is low, we want to call a procedure to set all the outputs (analog and digital) to (usually low) security conditions.  So far, it's pretty simple.  But let's say that this alarm has occurred during a test (operation of a profile of stimulation).  How can we stop the profile of revival of the procedure to prevent the reactivation of these outputs?

    Thank you

    Damien

    Yes, there is a way to do this. There is a channel in the system of channels called State of the engine generator section. The value of the channel matches the State of the profile engine. It is a channel available in writing, so you can assign a procedure to change its State. The values are:

    0: idle

    1: running

    2: stopped

    3: paused

    So I set the channel 2 or 3 depending on whether you want to continue to run the profile in the same place later, or just stop it completely.

  • Is it possible to review the profiles of Stimulus for NIVS2009 offline?

    I have a system inherited from NIVS2009 I need to become familiar with before the conversion to the NIVS2010. I need to see a complete list of Stimulus profiles. It is very inconvenient in the pulse generator in the workspace. If I could cut and paste into a txt file would be sufficient, but it does not seem to allow. Is it possible to export or view files .et1 for review?

    Thanks in advance for any input.

    Yes, Mr President, it is.

    In the getting started window menu bar has an entry that offers transfer.

    The name is a little misleading because we say: Mutat Workspace and the definition of system files. Go ahead and run it and you will see a drop down menu with many more options.

    Thank you

    Tom

  • How to complete a profile of stimulus?

    I need to close a channel of Insertion down for 1 second every 20 seconds.  What is the best way to do it?  I need to stop and restart the loop on-demand capacity, but most of the time the loop runs.

    I planned to do a kind of virtual instrument, but it's this simple task that I don't know if this is necessary.  Also I don't know if this will fix my biggest problem and I need to quick failure.  I've never done an instrument virtual and if it will take several days to figure out how it is too long.  I have experience in C, so if I can do this CVI in a few hours, would be great.

    I created a channel of the user to determine whether the loop should continue.  At the end of the recovery profile if the channel is true the profile again.  If this isn't the case, it stops.   It gives me basic features - now, my only concern is that it will not interfere with the other things I do in VeriStand.

  • Update of Stimulus Legacy profiles to new editor-in-Chief

    Hello world

    I am currently working on the update of a testbed of Veristand 2011 to 2015 SP1. On the bench that we have a lot of Stimulus profile files that were created with the profile of Stimulus editor inherited.

    Is it possible to update the profile of current stimulus editor files and keep their use?

    By looking at the files, I know they are XML, but for some reason, they are completely different formats. It should be possible, however, the translation from one format to the other quite easily. I'm not saying that's what I'll do, just that it is possible.

    See you soon,.

    Pete

    There is not a conversion utility. Here are a few points to note:

    1. the stimulus inherited profile editor is always delivered with 2015 SP1. You can continue to run the same tests in the new version without converting them. New projects by default will not have this tool in the Workspace menu, but you can add it.

    2. If one of your tests is to read CSV files, the same format works in the new Stimulus profile editor.

    Please let us know if there is a particular reason that you want to convert the files to the new format if the notes above don't help you. Who could help us understand a good path for you!

  • Stimulus profile stops logging immediately (custom steps)

    Greeting together again! I use the 2012 here all versions (VS TS, LV and tiara), and I also use for TS VS Custom steps. I have a TS main sequence that does all the work of configuration and custom installation via subsequences and steps VS. The only thing I use the profile of Stimulus for connects at this point, and for some reason any resultant TDMS file holds only six data points (record at 100 Hz). It seems that it starts and stops immediately, and I can't understand why.

    The only steps I have in the profile of stimulus steps Start Logging and group channels. There is no step, newspaper stop, so logging should not stop until the TS of the sequences of the project undeplous, as far as I understand it. Triggered trigger Condition logging is set to none, and file segmentation is set to do not Segment.

    Anyone can shed light on what is happening here?

    If I understand correctly, your profile of Stimulus stops almost immediately, because it is call a step to start recording. After that, the profile is done. Is this correct?

  • copy stimulus profiles

    Is there a way to quickly copy profiles of stimulus from one generator to the other?   I wrote a profile of 75 line and I want to copy more than 4 times in 4 other generators. Minor changes to the line are easier to write 75 new line 4 times. Anyone?

    The easiest way is to put the code to copy within a group stage in your profile of stimulus. You can then copy and paste this group between different generators. Note groups are for the body only and have no effect on the way in which the generator runs.

  • Stimulus profile editor closes immediately when you try to open the file

    I can open the profile of Stimulus Editor, but when I try to open certain profiles and sequences, the editor closes abruptly.  I recently changed my system definition file, but it seems that it is separate from design and should affect the editor.  Is this a common problem?  How can I solve this problem?  I don't want to rebuild all these files.

    Hi KB_GenMtrs,

    I have a few questions about your request:

    (1) what NIVS version do you use? What version of NIVS where clips and profiles created?

    (2) can create a new sequence of RT or profile without crashing?

    (3) the profile editor of Stimulus crash when opening a specific sequence or profile? If so, can point out you if I try to open it on my side to test if it's recreatable?

    I look forward to your reply.

Maybe you are looking for