Stimilus profile, CSV import to modify parameter during simulation

Hello,
I need to do the following :
- import a CSV file in the stimulus profile edtior
- Assign some of the variables to channels which are model parameters. These must be modified / updated during simulation.
- The channels are typically "starter, accelerator pedal". These are "parameters" of the models, not "in ports".
I'm having this situation because of the way the simulink model is compiled. There are no / few "in ports" but mostly "parameters" which can be modified.
It works fine with the workspace, the "car" can be started and controlled through the usual veristand workspace GUI.
But the stimulus profile editor fails to modify these "parameters". I've tried the demos, I could see how the inports can be modified but when I try to do the same with parameters, the "parameters" channels are not modified as expected by the CSV from stimulus editor.
Anybody have faced similar problems ?
Is it a bug/limitation in Veristand stimulus profiled editor ? Only inports can be updated during simulation (parameters of model cannot be updated during sim ?)
I've tried Veristand 2011 and 2012, with the same results.

This is a limitation of how VeriStand treats parameters. VeriStand is designed to optimize setting parameters around the use-case of setting it from the host, not from the control loop directly.
Do you have control over the model? In some circumstances you can replace Constant blocks with VeriStand IO blocks to switch the parameters to inports.
If that is not an option, you have a few options to consider:
1. In VeriStand 2012 there is a Stimulus Profile step to apply a set of model parameters. This is not a replay-type step. You only apply one value per parameter in the file, rather than playing back a waveform of some sort.
2. You can use LabVIEW (or Python, C#, TestStand, etc.) and the VeriStand execution API to read a CSV file and call SetParameterValues in a loop to send values down to the target. Note, however, that this replay will not be deterministic, because you can't really control the timing of setting parameters very exactly. This would mimic what you are doing from the Workspace.
3. Similar to #2, you can record a Workspace Macro of the parameter manipulation you do in the Workspace and then play that back. Again, this won't have deterministic execution, but maybe it's good enough.
Jarrod S.
National Instruments

Similar Messages

  • 30EA1: Determine column lengths before csv-Import

    Hello out there,
    I tried to import a csv (actually semicolon separated and enclosed in double quotes) into a new table using SQL Developer.
    I got error messages that some columns are to short (ORA-12899). Now the question is, is there an option having SQL Developer determine the maximum length of the data to propose a suitable column width?
    Wenn I convert the csv to Excel an import that, I get similar errors but much later in the process. So Excel-import seems to look much farther ahead than csv-import.
    What I need is SQL Developer scanning the whole file to determine the maximum length of data an not only the first row or the first few 1000 rows.
    Can this be achieved somehow?
    Regards,
    dhalek

    Hi Dhalek,
    Not sure if your problem is that we are not calculating the size of the columns correctly, we are not generating the inserts correctly or if we are not reading the rows with the columns that are large during the preview phase which is where we profile the data and determine the size of the columns. Can you see the rows that are rejected in the preview? When the table is created, are the sizes of the columns correct? Is it possible that your csv file is having the same problem with the single quote as the excel file? Once we have read the data, the generation is handled in the same way for both so the inserts should look the same.
    Sqldeveloper uses java batch insert for the Insert method which is different from standard insert and inserting via a script. The rules are slightly different so rejections may differ. Also, failures reject the entire batch not just the bad row. For now, to limit the number of rejected rows, you can set the preferences->database->advanced-Sql Array Fetch Size to 1 for the import. This will generate only bad rows in the bad file and should make it easier to pinpoint the problem. You'll want to restore that value because it also affects any fetches done by SQLDeveloper. I'll need to research our generation of the single quote in the data.
    Also you may want to try setting the preferences->database->load->preview characters limit to a very high number if you think the problem is that we are not reading the rows with the large columns during the preview. This is the overalll limit of characters that will be read from the file during the preview.
    You can also try the insert script method to load your data which will eliminate any java batch insert issues.
    Thanks,
    Joyce

  • ORACLE 10g : Datapump-Import : Error: unknown parameter name 'REMAP_TABLE'

    Hi,
    I am working on Oracle 10g. When executed import datapump script in the UNIX box with option “RMAP_TABLE” I received the error “unknown parameter name 'REMAP_TABLE' “Can you please give me solution for it?
    Scripts :-
    impdp eimsexp/xyz TABLES=EIMDBO.DIVISION DIRECTORY=DATAMART_DATA_PUMP_DIR DUMPFILE=expdp_DATAMART_tables_%u_$BATCH_ID.dmp LOGFILE=impdp_DATAMART_tables.log REMAP_TABLE=EIMDBO.DIVISION:EIM2DBO:YR2009_DIM_DIVISION
    Note :- The YR2009_DIM_DIVISION table is available in the target database. It is without partition table. The EIMDBO.DIVISION is partition table.
    Thanks,

    See your post here
    ORACLE 10g : Datapump-Import : Error: unknown parameter name 'REMAP_TABLE'
    Srini

  • Reg..csv file as input parameter in sqlloader

    Hi,
    I have .ctl file. every time i received the file name in diff name.
    rather than hardcode file name i wants to take .csv file as input parameter plesase do help in this.
    here is the code..
    OPTIONS (SKIP = 1, BINDSIZE=100000)
    LOAD DATA
    CHARACTERSET WE8ISO8859P1
    INFILE '/WOAU1/bkp/pgp_masterkey.csv'
    BADFILE '/WOAU1/bkp/pgp_masterkey.bad'
    DISCARDFILE '/WOAU1/bkp/pgp_masterkey.dsc'
    Thanks
    Atul

    A better alternative would be to avoid using SQL*Loader and instead use External Tables for which you can use an ALTER TABLE statement to change the LOCATION of the table (which details the filename). (A valid reason for using EXECUTE IMMEDIATE in PL/SQL). That way you keep all your control inside the database and you're not messing about with o/s scripts to pass different parameters to an external program.

  • Import of modified/extended Idoc into XI repository

    Dear all,
    we have to import a modified/extended Idoc from R/3 into XI repository.
    When I do that in the normal way, I get only the original Idoc structure without our additional segments.
    The Idoc is SDPICK.SDPIID01 where we added additional segments.
    Any help is very much appreciated.
    Thanks and best regards,
    Philipp

    Hi,
    IDX1 & IDX2 is for metadata check these links
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/6bd6f69a-0701-0010-a88b-adbb6ee89b34
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/d19fe210-0d01-0010-4094-a6fba344e098
    Thanks,
    Prakash

  • Broken Feature: CSV Import does not set First, Las...

    Hi, I recently signed up our 40+ employee company for Skype for business. The setup process has been terribly onerous and this seems to be the only place to provide feedback. I plan to post several individual items to describe some frustrations.
    To configure out 40+ users I elected to use the CSV import feature. This requires: First Name, Last Name, Email Address, Skype Name, Password.
    The CSV file imported successfully into Skype, and successfully created Skype names in our Skype Manager. It also successfully sent emails to our 40+ employees (which I would have preferred not to happen). However, that is about all it did successfully.
    The password for each user did not import successfully. I was not able to log-in to any user's account with the known password. Only after I reset the user's password could I log into the account. Thus, I had to manually reset 40+ user's passwords. Yuck.
    The First name and last name appear to have done nothing. The user's accounts were not updated with these names. I suspect they were only used to craft personlized emails to the users. Thus, I had to manually update each user's first and last name. Yuck.
    Additionally, users received an "Activation Required Email", despite their account showing up in Skype Manager and being active; I confirmed with a Skype chat representative that the accounts should have been active and that no "activation" was necessary. This email should not have been sent.
    All of our users have been configured and it took about 6 hours to correct the issues and to distribute contacts for what probable should have taken a few minutes.

    Same thing here - each user listed received an invite mail to activate their account, despite having provided passwords for each account in the upload file.  This was a problem since they did not yet know about this project
    The activation page asks them to set their first and last name and password - about the only thing that gets preserved is the email address!  Very disappointing given how much time I spent making sure all the data was correct in the upload CSV.

  • Any work around for importing NEFs modified from NX2 or LR?

    I just got Aperture. Here is workflow I have a question for. I make changes in NX2 of the original NEF. I attempt to import the modified NEF into Aperture and Aperture will not even show a thumbnail of it.
    1st, why doesn't Aperture at least import the original NEF, preferably the last modified NEF, either from NX2 or LR? As a note, Photo Mechanic will show the modified NEF, and LR will only show the original NEF.
    2nd, if I convert it to a TIFF from NX2, which Aperture then can import, what do I loose from the NEF, if anything should I want to again modify at a later time (capturing in 14 bit)?
    Any suggestions?
    Message was edited by: D3 Shooter

    You need to do a bit of homework on the nature of RAW and, to a lesser degree, the differences between Aperture and Lightroom and a pixel editor like Photoshop.
    -- A RAW file is not an image. It is literally the raw output of the sensor. It cannot be edited, only read by a RAW converter, or, if you prefer, developer. At this time, there is no program that can actually edit RAW data.
    -- Capture NX reads your raw NEF. If you make "edits" they are merely changes to the development processing; the original raw data are never changed. Capture NX can, indeed write these changes back to the NEF, but they are stored in a separate part of the file, that only CNX can read.
    -- AP and LR have their own RAW development routines (LR uses Adobe Camera RAW). They read the RAW and store their "edits" in separate files, stored in their databases. These files are recombined, on the fly, everytime you view a file.
    -- Thus AP cannot read "edits" performed in LR (or CNX) and vice versa.
    -- The only workaround is to open a RAW in the program of your choice, make the "edits" ("adjustments" in AP speak) that you want, and then save a copy as a TIFF, JPEG, or similar. Thus you could open your file in CNX and save as a TIFF that you send to AP.
    Hope this is helpful.

  • Where to find out what happened? CSV Importer throws Exception of type 'Microsoft.EnterpriseManagement.CSVImport.CSVInstanceException' was thrown."

    Hi all,
    I'm using a CSV Importer in Service Manager Console to import Windows.Computer class data.
    The XML "format" file passes muster.
    Yet none of my CSV records succeed in being loaded due to this error:
    Error: Could not import the row on line ... of CSV file D:\Peter\CMDB II\Exported MPs\TestMPs\SUS_WindowsComputer.csv. Object creation failed with the following error:
    --> Exception of type 'Microsoft.EnterpriseManagement.CSVImport.CSVInstanceException' was thrown.
    Though, like the Microsoft Joke about the Lost Airplane punchline, "...The answer ... was 100 percent correct but absolutely useless...."
    Where/ how can I find the cause of this error in the CSV Importer's exception?

    to paraphrase another bad joke: "Yo Dawg, i herd you liek exceptions, so i put exceptions in your exception so you can debug while you debug".
    the
    system.exception.innerexception property is a way to wrap one exception in another exception and throw it again. This is probably the property you want to look for in the details portion of the exception window. this will likely tell you what the root
    problem is. 

  • Weird csv import behaviour...

    Hi guys!
    I was wondering if any of you encountered a werid csv import behaviour:
    If the csv file I'd like to import has columns shortened...I mean sometimes you have to click twice on a column to see its full content..and I'm talking about the situation where you don't see it in a full spectrum. Then if im trying to import it I receive an error...if immediately after that I click twice on every column of that csv file...the import works fine...
    Any ideas?
    With regards,
    PsmakR

    Hi guys!
    I was wondering if any of you encountered a werid csv import behaviour:
    If the csv file I'd like to import has columns shortened...I mean sometimes you have to click twice on a column to see its full content..and I'm talking about the situation where you don't see it in a full spectrum. Then if im trying to import it I receive an error...if immediately after that I click twice on every column of that csv file...the import works fine...
    Any ideas?
    With regards,
    PsmakR

  • Retreiving modified parameter from task jsp

    Hello, I'm facing the next problem while developing a BPEL process:
    My process has a Human Task page that I have succesfully deployed into the SOA WorklistAPP.
    I'm able to load this page and it shows perfectly all the parameters required and it sends outcomes to the task as well.
    The problem is that I'm not able of receiving a modified parameter (set as Modifiable via Worklist) in the output XML of the receiveCompletedTask.
    I have tried everything. My modified parameter is as defined by the auto-generate simple task form of JDeveloper.
    I'm developing under JDeveloper 10.1.3.1 and running in SOA Suite 10.1.3.1.
    The strangest thing is that I have tried the sample DocumentReview process from Oracle and it shows the same problem. I save a different document title, approve or reject, but the modification is missed in the output XML.
    I'll apreciate your help because I don't really know how to solve this.
    Thank you.

    Make sure you have an external XSD for modifiable fields unless you want all the fields modifiable ... Then you can use assign to return that value to the variable in ur original XSD ... Regarding your issue with not being able to see fields as modifiable, I have faced the same problem and I figured out that I was missing some steps in generating my form .. Firstly, set up everything, then generate the form .. I will be glad to help you resolve the issue if you still couldn't manage to solve it ..
    Let me know ..
    Regards,
    Elvedin Babic

  • Address Book CSV import format

    Can someone point me to where the header record for Address Book CSV import format is documented. I'm trying to match the header record to the default template in Address Book. But I'm just guessing at what the header field labels should be, and looking at what is in the template isn't helpful. There must be Apple documentation somewhere.

    If you tell us what e-mail client on your computer, you use - that would help.
    If you are the original poster (OP) and your issue is solved, please remember to click the "Solution?" button so that others can more easily find it. If anyone has been helpful to you, please show your appreciation by clicking the "Kudos" button.

  • Mixed Angle Error during simulation

    I'm trying to build a mixed-angle project in DVDSP 4.2.0. I've encoded both the main V1 track as VBR with only chapter markers, closed GOP and in Compressor settings made sure the "include chapter markers only" option was checked to prevent any forced I-frames.
    When importing the alternate angles into the V2-V9 streams everything goes fine, cell markers are placed both at the beginning and end of the angle and all angles are exactly the same length. However during simulation I get the "Illegal angle situation..." error message. I've gone over settings both from exporting the file from FCP and Compressor - everything checks out according to both the DVDSP4 manual and the Compressor Guide from Brian Gary - can't make heads or tails of it.
    Any suggestions greatly appreciated as I'm on deadline.

    I had accidentally done two things wrong:
    1. I did not send out the main V1 streams from FCP with "DVD Studio Pro" markers, but Chapter Markers instead, and;
    2. I manually put a chapter marker at the beginning of the very first chapter. DVDSP4 automatically puts one there called "start".
    Now all my mixed angles work perfectly throughout the 2 discs - all 59 of them!
    Nothing like finding your own answers!! (^_*)

  • Unexpected reboot during simulation using multisim on AMD dual core processor

    We are using NI-multisim 10 in a classroom environment and are experiencing sudden reboots during simulation without giving any error or warning. This happens on multiple machines, all being Dell Optiplex 740 with AMD DC 2Ghz as processor. Since these problems happen so frequently, making  teaching quite impossible, we have shifted PC-room and are now using older machines. On these machines - Dell GX280 using intell P4HT-2,8 Ghz - we experience no more problems.
    Is this reboot problem related to the article :  Unexpected Errors with DAQ Device on AMD Dual Core Machine  (http://digital.ni.com/public.nsf/allkb/9CE22FE099A​FB8BF862572FF007A5D45) and what do we have to do to fix this problem?

    Nic
    Can you verify your driver versions? Make sure that you are running the latest versions of NI drivers to ensure proper compatibility. If possible, you might try upgrading to multisim 11. If this does not solve the issue, try the single processor workaround in outlined in the following KB:
    http://digital.ni.com/public.nsf/allkb/D0FC3BE7D9F​331398625731A005D76B8?OpenDocument
    Altough it is surely decreasing the performance of the system, certain cases have shown that there is no other possible workaround unfortunately.
    Best Regards
    Michiel
    Applications Engineer
    NI Belgium
    http://www.ni.com/ask

  • Multisim 11 only uses one CPU core during simulation

    Hi,
    Just recently I've been using MultiSim again, v11 if that matters, and simulating goes slow, to my opinion that is.
    Now there are two things that I've noticed:
    - Multisim only uses one of two CPU cores during simulation, not both;
    - I've enabled CPU throttle (AMD's Cool'n'Quiet) but corespeed remains very low even though Multisim needs CPU power while simulating.
    The simulating of a NE555-based LED-flash circuit requires about 28 seconds to get to 100ms in the simulation. Now if I can get the CPU to throttle up, by for example having Prime95 stress one of the two cores, then the simulation only requires 12 seconds to get to 100ms.
    So here are my two questions:
    1. Is Multisim 11 capable of using more than one CPU core while simulating? If yes, how can I get it to use more than one?
    2. Probably not the right forum to ask, but is there a way to force Windows 7 Ultimate x64 to throttle up the CPU when Multisim starts simulating? Since Multisim does not seem to stress the only core it uses enough to throttle it up. Using Prime95 on one core does trigger a throttle up.
    With regards,
    Bart Grefte
    Relevant specs:
    Windows 7 Ultimate x64
    Multisim v11
    AMD A4-3400
    16GB RAM

    Completely forgot this topic....
    Is there a good reason why there is no multicore support? Multisim can certainly use it for simulating.
    As for the CPU throttling, I found a batch that can increase/decrease the "minimum processor state"-setting and it works immediately, no reboot required.
    @echo off
    powercfg.exe -getactivescheme > "%userprofile%\appdata\~apo.tmp"
    set /p v_currentscheme= <"%userprofile%\appdata\~apo.tmp"
    set v_currentscheme=%v_currentscheme:~24,36%
    del "%userprofile%\appdata\~apo.tmp"
    powercfg -setacvalueindex %v_currentscheme% 54533251-82be-4824-96c1-47b60b740d00 893dee8e-2bef-41e0-89c6-b55d0929964c %1
    powercfg -setdcvalueindex %v_currentscheme% 54533251-82be-4824-96c1-47b60b740d00 893dee8e-2bef-41e0-89c6-b55d0929964c %1
    powercfg -s %v_currentscheme%
    exit
    Usage is simple:
    Start -> run -> c:\pathtobatch.bat 100
    for "minimum processor state"-setting at 100%
    Start -> run -> c:\pathtobatch.bat 5
    for "minimum processor state"-setting at 5%
    Please note that "set v_currentscheme=%v_currentscheme:~24,36%" is not the same for every language. The original batch had "set v_currentscheme=%v_currentscheme:~19,36%" (most likely for the English version of Windows 7), but since my Windows install is in Dutch, I had to change it in order for it to work.
    Running the batch with @echo off removed will show why.

  • User Profile -- Last Log Entry - The Parameter is Incorrect

    HI
    I see an error in the SharedServices Provider serction under UserProfile . It says
    LAST LOG Entry : The Parameter is Incorrect
    This happened after i turned on search setting and Crawling . Is this anything to worry about ? what is this error message mean?
    Satis

    Hi, I've found a solution that works fine on this Post:
    Why this happens :
     - Profmain.aspx calls importStatus.LastCrawlSeedStatus to determine if an error occurred during the last profile import.
    - If the LastCrawlSeedStatus value is not 0, it checks importStatus.LastLogEntry and provides the text message from the log
    - LastCrawlSeedStatus is a property of the content source People_Import (Hidden Content Source)
    - If the registry
    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office Server\12.0\Search\Applications\<GUID>\Gather\ProfileImport\ContentSources\0\StartPages\0
    Or if the registry HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office Server\12.0\Search\Applications\<GUID>\Gather\ProfileImport\ContentSources\1\StartPages\0
    - If the value to anything other than
    0, we can reproduce problem
    - The search account should have full control on this registry key
    - The SSP account should have read access to this key.
    How to Fix it :-
    - Open the registry on the indexer server
    - Checke the value of "lastCrawlSeedStatus" in the registry at
    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office Server\12.0\Search\Applications\<GUID>\Gather\ProfileImport\ContentSources\0\StartPages\0
    - And checke the value of "lastCrawlSeedStatus" in the registry at
    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office Server\12.0\Search\Applications\<GUID>\Gather\ProfileImport\ContentSources\1\StartPages\0
    - We changed the value to
    0
    - Restart search service on
    Index server (better
    restart the server if you can due to too long waiting for stopping and starting the Office SharePoint Search Services)
    I hope to help all colleagues that have this issue.
    Ciao.

Maybe you are looking for

  • Multiple copies of Pages

    I recently bought an iPad, and I bought the newest version of Pages about a month ago.  Do I have to buy a second copy of pages to put on my iPad?  Or is there a way to sync it? Thanks in advance Nickoli

  • Paymont form via fpl9 for negative amount

    Hi, our customer wants to generate a payment form also when the account balance of the customer is negative. however, I'm getting an error message that: Creation of payment form not possible, amount is negative Message no. >6397 Thanks, Vered

  • Convert Text

    Since I have been posting to these forms, I have been annoyed by the conversions that are done to my posts. A word surrounded by asterisks gets bolded. When I decide to make a link to a post, I can never remember the exact format. When I posted Apple

  • Reset my iPod. Now it won't sync

    I had to reset my iPod Nano due to some "skipping"issues. Now I can't resync the information from my computer. What can I do?

  • Unable to see back page in print preview

    Hi Experts, My requirement is to print terms and conditions on the back side of the page. So i have created two pages 1.First and 2.Back. On pages window , in standard attributes,I declared 'First' in Page and 'Back' in Next page.And print mode i had