Problemms with simple XSpice model

I try to create a simple XSpice model. For example NOT-element.
I wrote MOD and IFS files and compiled it. But element work one time, when i start simulation.
IFS-file
NAME_TABLE:
C_Function_Name: cm_testor
Spice_Model_Name: testor
Description: "A simple gain block"
PORT_TABLE:
Port_Name: in out
Description: "input" "output"
Direction: in out
Default_Type: d d
Allowed_Types: [d] [d]
Vector: no no
Vector_Bounds: - -
Null_Allowed: no no
Mod File
SPICEdev * FAR DynDEVices[] = {
&cm_testor_info
#include
#include
void cm_testor(ARGS)
if(INPUT_STATE(in) == ONE)
OUTPUT_STATE(out) = ZERO;
else
OUTPUT_STATE(out) = ONE;
Solved!
Go to Solution.

Hi,
I am sorry for the long delay, I was only able to get you code to work during the intial stage but when the simulation was running the component didn't toggle between high and low.  I had to get help from a developer to make this model  toggle between high and low during the simulation.
Attached is the .mod, ifs and the dll we created.   In the .mod file, we modify your code to include a delay, without the delay Multisim will not toogle during simulation.  Also, in the .ifs file, I added a parameter section  for the rise_delay paremter.
When you create a component in Multisim using the Component Wizard, in step 1, make sure you select "Digital" under "Component Type" and then select "Til" from the "Component Technology" field.
Tien P.
National Instruments
Attachments:
testor.zip ‏28 KB
testor.ms12 ‏57 KB

Similar Messages

  • SQL Server Database - Transaction logs growing largely with Simple Recovery model

    Hello,
    There is SQL server database on client side in production environment with huge transaction logs.
    Requirement :
    1. Take database backup
    2. Transaction log backup is not required. - so it is set to Simple recovery model.
    I am aware that, Simple Recovery model also increases the transaction logs same as in Full Recovery model as given on below link.
    http://realsqlguy.com/origins-no-simple-mode-doesnt-disable-the-transaction-log/
    Last week, this transaction log became of 1TB size and blocked everything on the database server.
    How to over come with this situation?
    PS :  There are huge bulk uploads to the database tables.
    Current Configuration :
    1. Simple Recovery model
    2. Target Recovery time : 3 Sec
    3. Recovery interval : 0
    4. No SQL Agent job schedule to shrink database.
    5. No other checkpoints created except automatic ones.
    Can anyone please guide me to have correct configuration on SQL server for client's production environment?
    Please let me know if any other details required from server.
    Thank you,
    Mittal.

    @dave_gona,
    Thank you for your response.
    Can you please explain me this in more details -- 
    What do you mean by one batch ?
    1. Number of rows to be inserted at a time ?
    2. or Size of data in one cell does matter here.
    As in my case, I am clubbing together all the data in one xml (on c# side) and inserting it as one record. Data is large in size, but only 1 record is inserted.
    Is it a good idea to shrink transaction log periodically, as it is not happening itself in simple recovery model.
    HI Mittal,
    Shrinking is bad activity yu should not shrink log files regularly, in rare case if you want to recovery space you may do it.
    Have manual chekpoints in Bulk insert operation.
    I cannot tell upfront what should be batch size but you can start with 1/4 th of what you are currently inserting.
    Most important what does below query return for database
    select log_reuse_wait_desc from sys.databases where name='db_name'
    The value it returns is what stopping the log from getting cleared and reused.
    What is version and editon of SQl server we are talking about. What is output of
    select @@version
    Please mark this reply as answer if it solved your issue or vote as helpful if it helped so that other forum members can benefit from it
    My Technet Wiki Article
    MVP

  • Simple Tree Model  displays the subtree on second click

    Hi,
    I want to display a simple tree model structure with root "Tableset" and subnodes like "MARA". If i click on Mara it has to display all the fields from that table.
    But it takes two clicks till the subtree opens? I suppose it needs something like a "fresh Tree".
    Sinan

    Hello Sinan,
    you have to call the method expand_root_nodes of the tree model:
    CALL METHOD model->expand_root_nodes
              EXPORTING expand_subtree = expand_subtree
                        level_count    = level_count.
    expand_subtree:
    If you set this parameter to 'X' , the system expands all subtrees of the root nodes
    level_count:
    Specifies the depth to which the root nodes should be expanded. Possible values:
    0
    : Only the root nodes themselves are expanded 1
    : The root nodes and their first level of child nodes are expanded n
          : The root nodes are expanded down to their nth level of child nodes.
    Note: If you set the expand_subtree parameter to 'X' , the value of level_count is ignored.

  • Excel Workbook with Excel Data Model stored on SharePoint - daily refresh

    I'm not sure if this is exactly the right forum but I'm hoping that someone here can either answer or point me in the right direction.
    I have an Excel Workbook with an Excel Data Model.
    The Excel Data Model uses SQL to contact our data warehouse and pull through data into tables.
    We are storing the Workbook on a SharePoint site and viewing it using Excel Services.
    The data in our data warehouse is updated daily and so I would like to refresh the workbook daily and remove the option to refresh the data in the browser.
    Is this possible with a workbook that has an Excel Data Model (I've seen lots of posts that relate to workbooks with connections to tabular models).
    Thanks
    Paul

    Hi Paul,
    I have answered this issue in this thread that you posted in SQL Server PowerPivot for SharePoint forum, please see:
    http://social.msdn.microsoft.com/Forums/en-US/9627939c-e9f1-48ae-a6ed-0c238d8f2d69/excel-workbook-with-excel-data-model-stored-on-sharepoint-daily-refresh?forum=sqlkjpowerpointforsharepoint
    Furthermore, this issue is more related to PowerPivot for SharePoint. If you have any more questions about PowerPivot for SharePoint, I would sugget you open a new thread in the forum below for better support:
    http://social.msdn.microsoft.com/Forums/en-US/home?forum=sqlkjpowerpointforsharepoint
    Thanks for your understanding.
    Regards,
    Elvis Long
    TechNet Community Support

  • I want to replace one of my older Airport Extremes with the new model.  Any tips?

    I have 2 older airport extreems that are connected by a network cable.  They share the same Netrwork ID.
    I want to replace one of them with the new model as I want to use the old router on another project.
    Any tips out there for a no-issue switch?
    Should the newer and faster Extreme be connected  to the Modem or does it nt make a didfference?
    Thanks

    use the new router as your primary router with the modem - this will be a factory  install from the default configuration -   as long as you use same network name password and type a password that you used for the express in bridge mode, you should be able to plug it in and have it work like before.  just make sure that you configure everything individually and then power all devices down and repower each one individually starting with the modem then the router in the express and that should work 

  • How to create a Shuttle box in Apex with simple copy and move option..

    I want to create a shuttle box in Apex with simple copy option. the demo application I downloaded from oracle had a two level selection query option which I dont need and was not even compatible with my version. All I need is a way to shuttle single query values between two multiple select lists. I could not find any demo.
    My Apex version 2.1 with XE
    query : select distinct fieldid d, fieldid r from field order by 1
    What kind of buttons do I need.. ? submitting or url redirecting ?

    Hello,
    >>
    The demo is not working in my apex 2.1 as I mentioned in the post.
    >>
    Not working is not enough of a description to help you out. I assume that what you mean is it won't install into XE since the demo was built in 2.2 and uses some 2.2 specific technology for the install.
    The way to get around that issue like I said was to get a free workspace on apex.oracle.com install the demo application there and then using some cutting and pasting recreate the demo app in your XE instance.
    Carl

  • Why is the transaction log file not truncated though its simple recovery model?

    My database is simple recovery model and when I view the free space in log file it shows 99%. Why doesn't my log file truncate the committed
    data automatically to free space in ldf file? When I shrink it does shrink. Please advice.
    mayooran99

    My database is simple recovery model and when I view the free space in log file it shows 99%. Why doesn't my log file truncate the committed
    data automatically to free space in ldf file? When I shrink it does shrink. Please advice.
    mayooran99
    If log records were never deleted(truncated) from the transaction log it wont show as 99% free.Simple recoveyr model
    Log truncation automatically frees space in the logical log for reuse by the transaction log and thats what you are seeing. Truncation wont change file size. It more like
    log clearing, marking
    parts of the log free for reuse. 
    As you said "When I shrink it does shrink" I dont see any issues here. Log truncation and shrink file is 2 different things.
    Please read below link for understanding "Transaction log Truncate vs Shrink"
    http://blog.sqlxdetails.com/transaction-log-truncate-why-it-didnt-shrink-my-log/

  • External drive issue with late 2010 model 27" imac

    I'm having trouble getting a Seagate Freeagent Go 2.5" 1TB to mount with the new 27" model imacs (11,3).
    At first I thought that maybe it wasn't supplying enough power but after buying an external powered hub it still won't mount.
    It must be something to do with the newest model since I have an early 2010 model imac which works fine with the drive.

    Hello Brett!,
    A rule i usually live by when purchasing externals, is to firstly check the file format (many are factory formatted in NTFS or FAT32) and if that is the case then change them to HFS+ using disk utility. That is of course if you intend to only use it with your mac, for example i use an external formatted in FAT32 and it works on Windows and Mac.
    Secondly its a good code of practice to make sure the drive spins up, as that is the easiest way to check for a dodgy powersupply.
    Thirdly and hopefully finally, if those tips don't work then try mounting it on another mac or pc and see if it is detected in any form, that'll tell you if there is a connection issue.
    Regards,

  • How associating an XMLSchema to an XMLType Field with the database model ?

    How can I precise the XMLSchema to an XMLType Field with the database model ?
    I know how to do it in a SQL Syntax :
    CREATE TABLE xwarehouses (
    warehouse_id NUMBER,
    warehouse_spec XMLTYPE)
    XMLTYPE warehouse_spec STORE AS OBJECT RELATIONAL
    XMLSCHEMA "http://www.oracle.com/xwarehouses.xsd"
    ELEMENT "Warehouse";
    , but we have decided to generate the script with the Jdeveloper database modeler tools, and we don't how to precise this with using this tools ?
    Anyone could help me ?

    I'm not sure that it answers your question but under the tools menu there is an option called register schema with XDB.

  • How Can i use Html frames with  simple JSP???

    How Can i use Html frames with simple JSP???
    Actually i am creating an application in which i have used Index.html as frame.
    Noew i am trying that if i click on a link of one frame(say menu frame) the \result shoul come to some other frame(say frame named mainwindow).
    Hoe can i do like this???
    Anand Pritam

    Well i am using..
    < Base target="mainwindow">
    But it is no working is there some other way??

  • Dynamic JCo Connection with Adaptive RFC Model 2

    Hi gurus,
    I'm trying to dinamically change a model data connector inside my web dynpro. I'm using an Adaptive RFC Model 2 to communicate with the R/3 backend. I've found that is possible to change the connector modifiyng the code inside the web dynpro. In detail I've found this example:
    IWDDynamicRFCModel model1 = (IWDDynamicRFCModel) WDModelFactory.getModelInstance(Model1.class);
    I put this code into wdDoInit method but I get the following error:
    "<comp_name>.wdDoInit failed to create or init instance of model 'model_name' in scope NO_SCOPE with instanceId 'null'"
    Furthermore I've used the deprecated Adaptive RFC Model and when I instantiate a model, ModelName m=new ModelName(), I see that the methods m.setJcoClient(client) and m.setSystemName(systemName) are visible, while when I try to do the same with Adaptive RFC Model 2, with my model m, the methods before there aren't.
    So this is my question: is it possible to change data connector dinamically with Adaptive RFC Model 2?
    Thanks a lot

    Dear Lukinho,
    You may try this ;
    try {
    IWDJCOClientConnection clientCon =  WDSystemLandscape.getJCOClientConnection("<name of the JCO connection>");
    String clientName      = clientCon.getClientName();
    String lang          = clientCon.getLanguage();
    String passowrd          = clientCon.getPassword();
    String sysID          = clientCon.getSystemIdentifier();
    String user          = clientCon.getUser();
    //etc...
    } catch (WDSystemLandscapeException e1) {
    // TODO Auto-generated catch block
    e1.printStackTrace();
    I got this code from the thread   [Multiple Client Logon in JCO   |Re: Multiple Client Logon in JCO;
    Also have a look at this thread
    [JCo Destination   |Re: JCo Destination;
    Hope it helps!!
    Warm Regards
    Upendra Agrawal

  • SQL Server 2012 DB log file doesn't shrink (simple recovery model)

    I've found several similar questions in this forum, but none of the answers have resolved my problem: I have a SQL Server 2012 DB using simple recovery model.  The MDF file is 12 GB and the LDF file is 10 GB.  I'm trying to shrink the size of the
    LDF file.  I've read that for simple recovery model DBs there are reasons for delaying log file shrinking, but I still can't find a solution based on these reasons.
    When I try to shrink it using this command:
    DBCC SHRINKFILE(MyDB_log, 1000000)
    I get these results, and no change of file size:
    DbId FileId CurrentSize MinimumSize UsedPages EstimatedPages8 2 1241328 128 1241328 128
    The same results running this:
    DBCC SHRINKFILE(MyDB_log, 1000000, TRUNCATEONLY)
    There doesn't appear to be any open transactions:
    DBCC OPENTRAN()No active open transactions.DBCC execution completed. If DBCC printed error messages, contact your system administrator.
    And this returns NOTHING:
    SELECT name, database_id, log_reuse_wait_desc FROM sys.databases WHERE database_id = DB_ID()name database_id log_reuse_wait_descMyDB 8 NOTHING
    I've also tried running the following, but nothing useful is returned:
    SELECT * FROM sys.dm_tran_database_transactionsSELECT * FROM sys.dm_exec_requests WHERE database_id=DB_ID()SELECT * FROM sys.dm_tran_locks WHERE resource_database_id=DB_ID()
    Any other suggestions of what I can do to shrink this log file?  Or perhaps someone can justify its enormous size?
    David Collacott

    The answer is pretty simple.
    The following code is the problem:
    DBCC SHRINKFILE(MyDB_log, 1000000)
    You are telling SQL Server that you want to "shrink" the MyDB_log file and the target size is 1TB.  Well according to you the MyDB_Log file is well below the 1TB size you are targeting, in fact it's only 10GB so SQL Server is doing precisely what you
    are telling it to do.
    See, according to the SQL Server documentation
    here, target size "Is the size for the file in megabytes, expressed as an integer."
    Now if you'd like to actually shrink the log file down to, oh say 1GB, then you should try the following command:
    DBCC SHRINKFILE(MyDB_log, 1000)
    The theory being 1000 * 1048576 (i.e. 1MB) is equal to 1GB.

  • Can I desynchronize one station with batch process model?

    Hi,
    My project has 5 stations run test in parallel. I decide to use batch process model since I want them to start and stop together. Beside start and stop, I have some certain part in the test sequence need to sync together. But in 5 stations, I want one station work without sync at these steps. I tried using batch synchronize with precondition but it looks like other stations still wait for the one I skip the sync. My another option is using rendervous with number of parallel thread is total - 1. I test and this works. But I still want to know if I can use batch synchronize step or not because this offer the start sync and exit sync feature.
    Thank you!
    Solved!
    Go to Solution.

    NTT wrote:
    Doug,
    Thanks for your answer.
    I want to have something happens parallel with other threads but without affect by batch sync steps. I have multiple stations working parallel in assembly line. They are sync because of pick and place. But I want to have one process works as station manager who keep track of UUT between station and other environment condition like pressure, temperature.
    Thang
    Generally, the intent of the TestSockets in the process models is that they will have a 1 to 1 correspondence to UUTs, does your 5th socket correspond to a UUT? In otherwords are there 5 UUTs under test at one time? UUTs often need things like report generation or database logging. Does your 5th socket require report generation? If not perhaps this 5th socket is really more of a utility thread and thus creating a new thread or execution at runtime makes sense for it. If your 5th socket instead does really correspond to a UUT that is being tested in parallel enitrely separately from the other UUTs then perhaps you should start up a new execution for that socket using the sequential model and just have that running at the same time as your other sockets are running with the batch model.
    So it really depends on what you are using that 5th station/thread for as to what approach would likely work best.
    Hope this helps,
    -Doug

  • Dynamic tooltips for charts (BusinessGraphics) with simple series

    Hello,
    I was wondering wheter the tooltip for charts with simple series can set dynamically. I cannot bind it to the context within the properties of the BusinessGraphics control but maybe it can be set in the code?
    This way I want to show the value of the column for instance as tooltip in a chart, or is there a better solution?
    thx,
    jeroen

    I got it!
    This thread helped me.
    [http://forums.sdn.sap.com/thread.jspa?threadID=1343796|http://forums.sdn.sap.com/thread.jspa?threadID=1343796]

  • JDK errors in Multiprocessor with weak memory model

    When reading this article to understand some of the Double-check locking problems :
    I got surprised by point 4. Appart the String example, it means that any build immutable object like build during a single-thread phase have no garanty later in multi-thread phase to be read a in fully initialized state.
    So I checked implentation of some JDK classes to how is managed some static field. The first I checked (in JDK 1.4.1) is Locale.getDefaultLocale().
    LOL in fact it's a case of double-check locking.
    The internal comment is:
    // do not synchronize this method - see 4071298
    // it's OK if more than one default locale happens to be created
    What is 4071298?
    Secondly, setting two times the default locale isn't the problem with Double-check locking.
    So any explanation this is ok? Or it's just a JDK example of wrong Double-check locking?

    When talking about languages that run in a virtual machine, concern yourself only with the virtual machine, because that is where your code will be executed.
    When talking about code that runs in a physical machine, concern yourself with the physical machine (CPU/RAM/etc.) because that is where your code will be executed.
    In summary, concern yourself with the memory model of the machine that will run your code. Which is the Java VM in this case.

Maybe you are looking for

  • Entourage (running under leopard) in microsoft exchange

    Is it possible that entourage in leopard works properly or I need to update to snow leopard. It tooks me one week but I´m not able to do it right. thanks again.

  • POP and SMTP ports

    Does anyone knows how to use different POP3 and SMTP ports on CCA? My mail server does not use the standard ones... I tried to use pop.host.com:port but I only got timeouts and host unreachable errors. Thanks

  • Adding an additional CAS to an existing NAC OOB deployment 4.7.3

    Hi Guys, If I am to add the Self-generated certificate of my new CAS to my existing CAM's trusted certificate authorities list, will it just be added or will it replace the existing trusted certificate?

  • Error in DBCHECK

    Hello, i've a problem. This weeks i found some problems DBCHECK (db13) in DVP and PRD system On PRD: SAPDBA log from                                      0607110600.chk   Return code:    0001 Success with warnings          Database host:            s

  • Qosmio G40 - perpetual scrolling in menus

    I have a Qosmio G series and lately after working ok for a while some menu scroll bars start perpetually scrolling by themselves even when I reboot the shuting down menu quickly flips between the 'shut down' options. I don't know why this is happenin