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.

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.

  • 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.

  • 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.

  • Moved again LT - installed Thunderbird - transferred the old profile file and profile.ini - install new cases of tuberculosis shows the file Structure but I can't open to display messages

    Just moved LT from a device running on Win Vista (SP2) to the new device on 8.1 Win 64 bit
    Installed last TB for this new device and registered the profiles.ini and profile data on Dorpbox
    updated the new TB software on new device - profile folder and ini loading profile file

    'C:\Users\Martin\AppData\Local\Thunderbird\Profiles '.
    'C:\Users\Martin\AppData\Roaming\Thunderbird\profiles.ini '.

    It loaded my old settings and I can now send and receive emails.
    My question is:

    In the navihgation pane, everything is like in my last LT, but if I select a folder - it only shows me the configuration page and not the list of messages in the display pane. The only way to display these message is to click with the right button on the required folder and open it in a new tab or window. Then I can see a list of messages!

    I read area online a lot to find my specific problem, but none related, please advise?

    Thank you
    HG

    The sight of my screen to help is attached.


  • In the middle of my teens adding devices, and registration for the apple's music, security issues have been changed and now nobody seems to remember the answers.  How can you bypass those to change your settings?

    In the middle of my teens adding devices, and registration for the apple's music, security issues have been changed and now nobody seems to remember the answers.  How can you bypass those to change your settings?

    You must ask security team account Apple to reset your security questions. To contact them, click here and choose a method; If this page does not list one for your country or if you are unable to call, complete and submit this form.


    (140233)

  • I try to install the McGraw Hill software and get an access denied error message. I have contacted the software company, they tell me it's a compatibility issue with Windows Vista and to contact Microsoft.

    I try to install the McGraw Hill software and get an access denied error message.  I have contacted the software company, they tell me it's a compatibility issue with Windows Vista and to contact Microsoft.

    Right-click on the setup.exe > run as admin.

    See you soon. Mick Murphy - Microsoft partner

  • Download pots API and source

    Is there a place to download the API and source of pots for the lib of RIM? I find the API behind online a lot, and it would be good to have a source JAR to work in my IDE.

    The BlackBerry development environment is not a platform open source so RIM does not publish the source for what in the net_rim_api.jar.  They include that jar in the jde/lib directory, so you can compile against this in your IDE.  They also include the javadocs in the jde under docs/api directory download (so late on, you mean slow access on the net).

  • I have some serious issues update to existing and new to download applications.

    Hello

    I just bought a laptop with w8
    I have some serious issues update to existing and new to download applications.
    When I click to download an app it still works but does not settle anything.
    at this point, I can't click the back (arrow) button to return to the main image of the store
    the windows button works and I can continue to use my computer
    the new application (or the update for an existing one) is not installed.
    Here are some useful points:
    -No installation other than Mc. provided McAfee antivirus preinstalled.
    -computer is not in a proxy connection
    -windows update does not work, when I click it works forever without doing anything
    -J' have tried to run the troubleshooter, but it fixes all the time the same 2 questions and that solves nothing
    -J' I reset the cache to store without change
    -without any logical explanation, some updates and downloads have managed at the beginning. then, when the problem started I have reset the cache and I could download a couple more. now everything is blocked and no solution found on this forum does not work.
    Please help me
    thanx
     
    Original title: problem with store windows

    Hello

    I suggest to run the following command and check to see if it helps.

    To fix Windows Update errors, use Deployment Image Servicing and Management.

    1. open an elevated command prompt. To do this, click Start, click programs, accessories principally made, right-click Guest, and then click Run as administrator. If you are prompted for an administrator password or a confirmation, type the password, or click on allow.

    2 type the following commands. Press ENTER after each command.

    o DISM.exe / Online/Cleanup-image /Scanhealth

    o DISM.exe / Online/Cleanup-image /Restorehealth

    3. close the command prompt, and then run Windows Update again.

  • Automation and scripts data flow using ODI API AND SDK in Oracle Data Integrator (ODI) 11g

    Hi team,

    We have a requirement of scripts and automation of stream using ODI API and SDK. The requirement must use source ODI API and SDK to target cards in Excel (mapping map) is read and can use the SDK to create interfaces for Excel sheets. I am a novice to Groovy and Java script. Please help me on what should be the approach.


    I am able to create individual objects of ODI as 'Projects', 'Models', 'Interfaces' and 'Packages' by using the 'Groovy' editor that comes with ODI 11 g.

    Thank you very much in advance!

    Best regards

    Dos Santos.

    Take a look at the post by Dave Allen who will in the sense of what you're trying to achieve:

    https://blogs.Oracle.com/warehousebuilder/entry/odi_11g_interface_builder

  • Are there still known issues with Lightoom 5 and El Capitan with respect to attachment? I know that problems have been resolved with CC Lightoom

    Are there still known issues with Lightoom 5 and El capitan with respect to attachment? I know that problems have been resolved with Lightoom CC.  I looked on the Internet but most of the references are Lightoom CC.  Ive got all the updates with Lightoom 5, (Camera RAW 8.1), but also Apple, (El Capitan 10.11.3), but my Nikon D800 will not always tie.

    HAL P Anderson wrote:

    The problem is in the SDK (SDK) of Nikon. He used features of OS that changed with El Cap. All previous versions of LR were broken by the Exchange operating system. For LR 5 to work, it must be associated with the new SDK of Nikon, and Adobe is not reissue of older versions.

    The result is: LR5 and previous versions will continue to not be able to attach Nikon under El Capitan. I'm sorry.

    HAL

    Although what you say is maybe true, I'm not sure, but there were reports of people that says exactly the opposite. Home of Nikon has not worked in 2015/6 but continued to work in LR 5 on the same Mac running 10.11.x.

Maybe you are looking for