Mapping constant block parameters in simulink to a Veristand control block

Hello,
I am trying to take a simple model of a RL circuit in simulink (built a dll file) and add control of constant blocks in Veristand to dynamically change the value of R and L constant thru the Veristand Slider or Numerical indicator. I can see the ouput of the model executing, based on the initial values I have loaded, but I am not able to mapping these Parameters to the any numeric control. 
Any thoughts of how to accomplish this!
Solved!
Go to Solution.

Trever,
When you add the model in the system explorer, do you have inports on the  R and L on your model in the system explorer?  If you can see them there and the connect inside the model properly, you should be able to attach these to controls in your workspace.
Here is some information on setting up your model. http://zone.ni.com/reference/en-XX/help/372846A-01/veristand/convert_model_to_dll/
-Marshall R
National Instruments
Applications Engineer
One stop for all your NI-VISA Support
GPIB Support has a new homepage

Similar Messages

  • Sorting the data of control block in oracle form 10g

    I have two block....both are the control block..
    in first block i select the date and in second block the data of that date is populated.but the data is populated
    using cursor in when-button-pressed trigger of that first block button...
    in cursor the data is selected and placed in field of detail block using into clause.... each field..
    .and one item of detail block is srno which is create in post-query of detail block using
    :sysyem.trigger_record.
    Now i want after populated the detail block the data is sorted desc one of the field of the detail block...
    Can this possible using set_block_property() of block although the block is control block if yes where i should do
    this??????
    Please explian...????

    but with the cursor of repopulate ...how the block is in desc by one field..because if i use again the same cursor to poulate than whats this benefits???
    if i write a cursor in button when-button-trigger in first block like this code....
    go_block('');
    cursor emp_cur is
    select empno,date,sal
    from emp;
    begin
    for i in cur loop
    select i.empno,i.date,i.sal
    into :empno,:date,:sal
    from emp
    end loop
    end;
    this loop populate the block which is controll block..
    syntax error should be ignored ...i wana to explain what i want to do...
    this is not the actual query i have another query but the concept is that...
    how i can do this...

  • Db_checkpoint: Unable to allocate thread control block

    Hello,
    Every second day BDB 4.8 runs out of cache memory (size = 512MB).
    We have 10 static worker processes (no segfaults) and one
    db_checkpoint-process (checkpoints once a minute and exists).
    We use only DB_WRITE_NOSYNC
    After two days the db_checkpoint-process reports:
    db_checkpoint: Unable to allocate thread control block
    As soon as this error apears, I can neither checkpoint nor
    db_recover.
    Is there any chance (or a patch) to track down the memory leak?
    Thanks

    Hi Sandra,
    It happened again one hour ago. I had hardly problems with BDB 4.6
    Down below you will find a current "db_stat -e"
    We have 10 workers with persistent db-connection and once a minute
    a cronjob starts a checkpoint, then the cron-process exists.
    Every second day (40 to 48 hours) the checkpoint-process can't connect
    to the database and "db_checkpoint -1" says:
    db_checkpoint: Unable to allocate thread control block
    A normal "db_recover" would corrupt the database, I had to recover
    catastrophic.
    For sure the cache is not to small (512 MB, all database files: 1,3 GB)
    Thanks
    Markus
    Mon Nov 30 17:32:44 2009 Local time
    0x120897 Magic number
    0 Panic value
    4.8.24 Environment version
    9 Btree version
    9 Hash version
    1 Lock version
    15 Log version
    4 Queue version
    2 Sequence version
    1 Txn version
    Mon Nov 30 16:31:06 2009 Creation time
    0x9d316701 Environment ID
    2 Primary region allocation and reference count mutex [0/360 0% !Own]
    11 References
    =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
    Thread tracking information
    75 Thread blocks allocated
    4096 Thread allocation threshold
    521 Thread hash buckets
    Thread status blocks:
    process/thread 5055/3086948768: out
    process/thread 5686/3086850464: out
    [...snip...]
    process/thread 6056/3086653856: out
    process/thread 6087/3086649760: out
    =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
    0x40988 Log magic number
    15 Log version number
    16MB Log record cache size
    0 Log file mode
    10Mb Current log file size
    370618 Records entered into the log
    370MB 354KB 853B Log bytes written
    4MB 466KB 1001B Log bytes written since last checkpoint
    17691 Total log file I/O writes
    0 Total log file I/O writes due to overflow
    198 Total log file flushes
    665 Total log file I/O reads
    1786 Current log file number
    8303086 Current log file offset
    1786 On-disk log file number
    3630597 On-disk log file offset
    1 Maximum commits in a log flush
    1 Minimum commits in a log flush
    17MB Log region size
    9 The number of region locks that required waiting (0%)
    =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
    =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
    5387 Last allocated locker ID
    0x7fffffff Current maximum unused locker ID
    9 Number of lock modes
    131072 Maximum number of locks possible
    131072 Maximum number of lockers possible
    131072 Maximum number of lock objects possible
    30 Number of lock object partitions
    622 Number of current locks
    797 Maximum number of locks at any one time
    13 Maximum number of locks in any one bucket
    0 Maximum number of locks stolen by for an empty partition
    0 Maximum number of locks stolen for any one partition
    632 Number of current lockers
    708 Maximum number of lockers at any one time
    69 Number of current lock objects
    160 Maximum number of lock objects at any one time
    2 Maximum number of lock objects in any one bucket
    0 Maximum number of objects stolen by for an empty partition
    0 Maximum number of objects stolen for any one partition
    13M Total number of locks requested (13372706)
    13M Total number of locks released (13372083)
    0 Total number of locks upgraded
    5313 Total number of locks downgraded
    9 Lock requests not available due to conflicts, for which we waited
    1 Lock requests not available due to conflicts, for which we did not wait
    0 Number of deadlocks
    60M Lock timeout value (60000000)
    0 Number of locks that have timed out
    60M Transaction timeout value (60000000)
    0 Number of transactions that have timed out
    66MB 904KB The size of the lock region
    2141 The number of partition locks that required waiting (0%)
    465 The maximum number of times any partition lock was waited for (0%)
    0 The number of object queue operations that required waiting (0%)
    3 The number of locker allocations that required waiting (0%)
    0 The number of region locks that required waiting (0%)
    2 Maximum hash bucket length
    =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
    320MB 1KB 604B Total cache size
    1 Number of caches
    1 Maximum number of caches
    320MB 8KB Pool individual cache size
    0 Maximum memory-mapped file size
    0 Maximum open file descriptors
    0 Maximum sequential buffer writes
    0 Sleep after writing maximum sequential buffers
    0 Requested pages mapped into the process' address space
    17M Requested pages found in the cache (99%)
    71264 Requested pages not found in the cache
    67 Pages created in the cache
    71264 Pages read into the cache
    17944 Pages written from the cache to the backing file
    0 Clean pages forced from the cache
    0 Dirty pages forced from the cache
    0 Dirty pages written by trickle-sync thread
    71298 Current total page count
    71014 Current clean page count
    284 Current dirty page count
    32771 Number of hash buckets used for page location
    4096 Assumed page size used
    16M Total number of times hash chains searched for a page (16751183)
    8 The longest hash chain searched for a page
    39M Total number of hash chain entries checked for page (39437498)
    0 The number of hash bucket locks that required waiting (0%)
    0 The maximum number of times any hash bucket lock was waited for (0%)
    7 The number of region locks that required waiting (0%)
    0 The number of buffers frozen
    0 The number of buffers thawed
    0 The number of frozen buffers freed
    71627 The number of page allocations
    0 The number of hash buckets examined during allocations
    0 The maximum number of hash buckets examined for an allocation
    0 The number of pages examined during allocations
    0 The max number of pages examined for an allocation
    0 Threads waited on page I/O
    0 The number of times a sync is interrupted
    Pool File: article.db
    4096 Page size
    0 Requested pages mapped into the process' address space
    1868517 Requested pages found in the cache (99%)
    13311 Requested pages not found in the cache
    0 Pages created in the cache
    13311 Pages read into the cache
    3428 Pages written from the cache to the backing file
    [...snip...]
    =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
    1786/3630541 File/offset for last checkpoint LSN
    Mon Nov 30 17:32:01 2009 Checkpoint timestamp
    0x8000675a Last transaction ID allocated
    4096 Maximum number of active transactions configured
    0 Active transactions
    3 Maximum active transactions
    26458 Number of transactions begun
    0 Number of transactions aborted
    26458 Number of transactions committed
    0 Snapshot transactions
    0 Maximum snapshot transactions
    0 Number of transactions restored
    1MB 192KB Transaction region size
    0 The number of region locks that required waiting (0%)
    Active transactions:
    =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
    31MB 32KB Mutex region size
    3 The number of region locks that required waiting (0%)
    4 Mutex alignment
    150 Mutex test-and-set spins
    254163 Mutex total count
    149165 Mutex free count
    104998 Mutex in-use count
    104998 Mutex maximum in-use count
    Mutex counts
    149165 Unallocated
    1 env region
    33 lock region
    797 logical lock
    1 log filename
    1 log flush
    1 log region
    74 mpoolfile handle
    71298 mpool buffer
    17 mpool file bucket
    32771 mpool hash bucket
    1 mpool region
    1 mutex region
    1 transaction checkpoint
    1 txn region

  • Change to display field on control block not reflected until form refreshed

    Hi guys, hope someone out there can help me with this query.
    I'm currently developing a form that will allow users to generate offer letters and contracts via a custom form which is used within Apps 11i. This form is a fairly standard multi-text field form with tickboxes which hold the applicant details, two buttons (one to Select All, the other to Clear All) and another button to produce the actual contracts selected.
    There is also a display field which is part of the control block attached to the form; both it and the Produce Contracts button are part of this control block. I've added a bit of code to change the text in the display field to inform the user that the contract or contracts they've requested are being generated, but although the call to the relevant code to do this appears before kicking off the concurrent request to generate the contracts, the update to the field fails to appear until after the concurrent request is complete and its output appears on another screen.
    Does anyone know why this is? I've racked my brains over it and can't seem to understand why. I've pasted the code in below if anyone has any ideas!
    Many thanks, Geoff
    --- procedure display_status_message ---
    --- Displays a status message in the request_extract_ctrl.query_information ---
    --- display item informing user what is going on ---
    --- Changes: ---
    --- G Butler 21/08/08 First version ---
    procedure display_status_message(p_tab_count in binary_integer default 0) as
    c_proc_name constant varchar2(50) := 'display_status_message';
    v_position pls_integer;
    v_msg_string varchar2(500);
    v_status_msg varchar2(2000);
    begin
         v_position := 1;
         --- go to the request_extract_ctrl block
         go_block('REQUEST_EXTRACT_CTRL');
         --- check how many records have been sent for generation
         --- get the correct message from the message dictionary
         if p_tab_count = 1 then
         fnd_message.set_name('XXJSDATA','SSL_CA_LETTER_CONTRACT_SUBMIT');
         elsif p_tab_count > 1 then
              fnd_message.set_name('XXJSDATA','SSL_CA_LETTER_CONTRACTS_SUBMIT');
         end if;
         v_position := 2;
         --- copy the message into the display item field
         v_status_msg := fnd_message.get;
         :request_extract_ctrl.query_information := v_status_msg;
         -- synchronize the change in the display item field with the form on screen
         synchronize;
         v_position := 99;
    exception
         when others then
    v_msg_string :='Unexpected error occurred in display_status_message procedure, position: '||v_position;
    v_msg_string := v_msg_string||'. SQL error: '||sqlerrm;
    fnd_message.set_string(v_msg_string);
         fnd_message.error;
         raise form_trigger_failure;
    end display_status_message;

    I had a similar problem, but it was with the message line. I found that with Web Forms, I had to issue the Synchronize; a second time, but in Client/Server Forms 6i, the first synchronize worked. Here is the code I used:
    <pre><font face = "Lucida Console, Courier New, Courier, Fixed" size = "1" color = "navy"> SYNCHRONIZE;
    if Get_Application_Property(User_Interface) = 'WEB' then
    synchronize;--first does not work on web
    end if;</font></pre>
    Let us know if this works.

  • Is it possible to update (=change) control block items in a query only form ?

    From Form.A we call Form.B with the parameter query_mode = query_only.
    This works fine.
    But in Form.B we have a non table block (=control block) with an poplist item.
    Allthough in query_only mode we like to change (it's not a real update cause it's control block) the poplist.
    But because of query_only mode this item is not updateable.
    Is there a workaround to make the poplist updateable in query_only mode ?

    Hi,
    It is not possible to change the BOX position using the Layout painter like changing windows position.
    You have change in the page Windows text elements only by changing their co ordinates.
    Regards,
    Anji

  • Inserting/updating data in control block based on view

    Hi!
    I`ve created a block based on a view to display data.
    I want this block to be insertable and updateable, that is I will use a on-insert/update trigger to call an insert/update procedure located in the database.
    When trying to change/insert a value in the block, the error message "Error: Can not insert into or update data in a view" pops up. I`ve tried to get rid of this error, without success.
    How can I make a data block based on a view insertable and updateable?
    My guess is that this have something to do with locking the records(there is no rowid in the view)... but I'm not sure.
    Pls advise!!

    Morten
    As well as on-update, on-insert, on-delete triggers you also need an on-lock,
    (even though it might just contain null;) otherwise the form will try to lock the view and fail.
    Actually your terminology is wrong, the block being based on a table or view is not a control block. A control block is not based on anything and has no default functionality for communicating with the database. If it was a control block, the on- triggers would not fire.

  • One or more ActiveX controls could not be displayed because either:1 your current security settings prohibit running ActiveX controls on this page, or 2. You have blocked a publisher of one of the controls.

    hi All,
    i have one of the requirement for an application, we do upload some release not in file server and that is used in application link to see the note. in this note i have converted the Excel into .HTM format(web page). this was working fine, but from last
    two days all of a sudden we are recieving error as above.
    one or more ActiveX controls could not be displayed because either:1 your current security settings prohibit running ActiveX controls on this page, or 2. You have blocked a publisher of one of the controls.
    could anyone please help me on this.
    Thanks and Regards,
    krishnamurthy

    Hi,
    Actually Arnavsharma provided a operable method for you. But no luck, it's not invalid.
    Here I also offer you an method you can try.Please delete the extra (parasite) zone from the Zones subkey :
    Click Start , click Run , type regedit , and then click OK
    Expand the following registry subkey
    HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Zones
    Delete the extra (parasite) zone from the Zones subkey
    Note: The parasite zone is a pseudo-graphic number listed before zone number 0. The pseudo-graphic number looks like a miniature upper case "L"
    Close the registry editor
    Thanks!
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

  • Control Block - Preventing creation of new record

    hi,
    i have a control block with two text fields. i do not want new record created for this block when the down key is pressed.
    How do i do that ?

    Re: data disappears when pressing down arrow key

  • Block for payment in MIRO if there is blocked stock in quality inspection

    Hi all,
    In quality inspection, if they put some quantity into blocked stock, then i should go for payment block in MIRO . Here
    the QA status may be Pass or Fail.
    my payment block will depend upon blocked stock in quality inspection but not on QA status.
    Thanks
    babu

    Hi Pabitra
    If the material is taken to QI, then no liability is created for the vendor during GR. Now if you pass it in QA, then the stock moves to Unrestricted stock. Now if you transfer from Unrestricted stock to blocked stock, this will not block MIRO, as the GR/IR has already been hit.
    if you bolck payment for these type stock, then you can take help of User Exit, in MIRO
    Regards

  • How to clear a record of control block

    i have one control block with 2 items and the Max. records displayed property is set to 10.I have populated 5 records and now i want to clear one record, but the clear_record statement does not seem to be working. How to clear a record in a control block. Please help me out in this doubt of mine.

    You have probably moved focus to another block. You have to go_block and maybe go_record before using clear_block.

  • How to display total in a block without total showing up in relevant detail block

    Hi there,
              I create a worksheet, including two block, one of which have detail information with multiple characts and one key figure, another block only have sumerization information takes one cell, which is summarized key figure for that detail information block.
             I implement this summary cell with formula 'GETDATA', but it is only effective after I show total for detail block.
            such as for detail block:
                         employee_no,  wage type,  earning_amount.
                         overall result                        total for earning_amount
            for summary block:
                         summary of earning_amount for all employees in the detail block.
    please tell me how to display summary block without pulling in overall result for detail block.
    Many Thanks,

    Hi bo zhang,
    This can be a work around
    As Michael Tocik suggested
    goto components tab, right click on data source and select copy
    do not insert cross tab
    then use the formula for DS_2 like
    =SAPGetData("DS_2","earning_amount","employee_no=TOTAL")
    this should work.
    and if you do any drill down for DS_1, the above total will not chnage because that is dependent on DS_2
    Hope it helps
    Best Regards,
    Subhash

  • Data block or control block

    any one please suggest : which is faster and better in 9i forms/reports applications, a data block with form triggers(pre,post,commit_form) for DML ; or a control block with explicit DML for retreiving and posting from/to data base.
    can PJC help in boosting performance. How ?

    Thanks but a.I find the busy dumble for a while before allowing the user to type the content in a database item (at a w/s in LAN about 900 meters away from AS). Posibly validating the item all the way to the database and back.
    b. I found certain form triggers failing e.g. pre/post update resulting erroneous enterprise data.

  • Parental controls blocks all https websites

    When I enabled parental controls for my 9-year old, I didn't expect her not to be able to use Google, Gmail and just about every single other website that requires logging in. The reason? Those websites are all https websites and parental controls blocks *ALL* https websites.
    With https becoming more and more prevalent on the web, adding an exception is not really an option anymore. I don't want to add an exception for half of the internet. It's gotten so bad that she's encountering a popup several times per minute when just doing a little research for her homework. Web filtering is apparently a whilelist only solution, suitable only for the smallest of children - the ones that you sit next to because they can't type a web address themselves, 5 years or younger.
    The only solution I could find was to turn off web filtering completely and use OpenDNS instead. Does anyone else know of a better solution?

    Hello,
    A alternative application as a option that is very worthy,
    <http://www.netnanny.com/mac>
    Randy Mac
    RMACS, LLC

  • SOS Help!! Control Block is hitting me on my nerves....

    Hello All!
    I have a problem and id any body can solve this then i will be very thankful to her/him.
    Actually, i have four tables.One of them(studentfee) has two primary keys.(Rollono & Date)in this table the rollno is both PK & FK which reference the rollno of student table.Now problem is that i have a control block and two txt items on it. One is for Month and is used to add the date in the studentfee table and other fields will be added by mean of another data block.And that is the problem bcs the form generate the error(may be bcs other primary key is not entered).
    I think that this problem can be solved by Global variable(assigning the values to Golbal variable in the control block form
    and referencing them in the data block form)
    but this is not helping,too.Now i know
    that i am doing something wrong but couldn't grasp that one.Either i am not generating right code for Global variables OR am starting another session that is why the form is unable to get information from the global variable when i use it in the next form.
    Another question is that: Is there any way to build an .exe Or other file of my
    project which can be run and be ported to another machine(with all tables and data).
    Please, send me the answer to my email or to the oracle site and i will be very thankul to you. Bye..
    [email protected]

    Hi,
    In one block you can have items EXPLECITELLY belonging to only one DB table. You mention this table in the property palette of the block.
    If your block has items which belong to other DB table one way (but not the only way) to work around is with POST_QUERY trigger using primarykey_foreignkey (or other) relation to insert in the item the appropriate value. If there are many values we use master-detail relationships and second block.
    Do not forget before exiting the block to insert, update, delete ,etc. the changed value belonging to different tables using the PRE_INSERT, PRE_UPDATE, ... etc. triggers.
    Try to by a book explaining the Forms principles and methods.
    Keep in eye that Forms is a complex, very complex software tool. Before using them successful you have to invest time and efforts to study the basic solution methods.
    Success!
    Joseph Schwertner,
    Prof.Dr. In Computer Science

  • Execute query in control block?

    I have a non database block which is the control block. In this block i have a button for query/ enter query. My other blocks are all based on a database table. So when i run the form and press the exec query button, on the control block, i want to be able to select something from an lov, or a drop down or even a text item which are located on any of the other blocks. and then hit the exec query button again to query the specific information.
    But its not working. i can't seem to get the exec query button to work in the control block and i tried placing it on one of the blocks but i can only select from that block to query on and not any of the other blocks.
    how can i get the exec query button to work on any of the other blocks depending on what i want to query up?

    You will have to build a default where clause in the pre query trigger of the base table block(s)
    example shown below.
    declare
    wh_clause varchar2(1500);
    begin
    if :qry_blk.item1 is not null then
         wh_clause := 'block.item1 like '''||:qry_blk.item1||'%'||'''';
    end if;
    set_block_property('block', DEFAULT_WHERE, wh_clause);
    end;
    then in your button, you will say
    go_block('block');
    execute_query;          
    I have a non database block which is the control block. In this block i have a button for query/ enter query. My other blocks are all based on a database table. So when i run the form and press the exec query button, on the control block, i want to be able to select something from an lov, or a drop down or even a text item which are located on any of the other blocks. and then hit the exec query button again to query the specific information.
    But its not working. i can't seem to get the exec query button to work in the control block and i tried placing it on one of the blocks but i can only select from that block to query on and not any of the other blocks.
    how can i get the exec query button to work on any of the other blocks depending on what i want to query up?

Maybe you are looking for

  • Entry Sheet Printout only after Release

    Hi all, I wanna know if its possible to configure that an Entry Sheet could only be printed after released? If so, how could this be made? Regards. Gregory. Edited by: Gregory Mayorga on May 28, 2010 4:21 PM

  • Sales Open Orders

    Hi Experts, I would like to create an infoset query which could show me Open Orders. The fields to show are among others: Sales Order, item, amount still pending and quantities still pending. I know that transaction VA05 is available, but for some re

  • Adding Events Without a Specific Time

    Sometimes I want to add an event to a calendar that has no specific time and is not an "all day event." I can't seem to figure out how to do it.

  • Why the video played in QuickTime Player only audio available and no picture?

    Hi dear all, I need to play a video through QuickTime player 7.1.6, however there was only sound and black background shown, no picture. I have tried to play the video with Media Classic Player and it is totally fine.  The following shown the movie i

  • Multisim database error

    i just installed NI Circuit Design Suite and when i start up multisim v10 student i get a lot of error message's saying "not a valid password. Error Code: 3031.The Master Database cannot be read. Features using the Master Database will not work" and