May I change counter parameter while it is counting?

Hi all.
I'm using CVI 7.1 and traditional daq with a PCI-6601 board to perform simple event counting to count delays on some tested devices
For my application I need to change the type of counting from ungated to gated while the counter is running: is it possible?
My application is configured this way:
GPCTR_Set_Application (1, ND_COUNTER_0, ND_SIMPLE_EVENT_CNT);
GPCTR_Change_Parameter (1, ND_COUNTER_0, ND_SOURCE, ND_INTERNAL_100_KHZ);
GPCTR_Control (1, ND_COUNTER_0, ND_PROGRAM);
Now, while the counter is running I need to follow on counting only if the gate signal is high. If I simply use
GPCTR_Change_Parameter (1, ND_COUNTER_0, ND_GATE, ND_PFI_38);
I receive the error that "The specified resource is already armed", so I tried with
GPCTR_Control (1, ND_COUNTER_0, ND_DISARM);
GPCTR_Change_Parameter (1, ND_COUNTER_0, ND_GATE, ND_PFI_38);
GPCTR_Control (1, ND_COUNTER_0, ND_ARM);
but the counter continues counting regardless the state of the gate signal. That's why my question: how can I perform this task?
(Note: if configured from start for gated counting, the counter operates regularly based on gate state)
Proud to use LW/CVI from 3.1 on.
My contributions to the Developer Zone Community
If I have helped you, why not giving me a kudos?

Kevin, in my application I am monitoring a long-lasting process (approx. 45 seconds long) in which I must measure the time a contact is on. 6601 card is dedicated to measure this time: the contact is used as the gate signal of the counter so that time measurement is exactly related to the process being surveyed. The problem is that during part of this process I cannot be connected to the actual contact, so I cannot use its state as the gating signal during all time.
I was hoping that I could change counter configuration on the fly so that I can start counting based on the gate, switch to ungated counting while I cannot survey the contact and switch back to gated at the end of the interval, when I can use again the contact as counter gate.
In the meanwhile I am monitoring some other parts of the process and acquiring measures on serial (that is intrinsically "slow") devices: due to this sum of processes going on inside the computer, I cannot rely of my program being enough fast as to monitor the state of the DUT and mirror it in a gating signal.
I have tested my solution to sum up partial timer counts and found it not so easy to manage so I decided to introduce a little hardware modification in the measuring system and OR the gating signal with a digital output of the 6601: I can manage in the software to drive this signal with significant margin on actual phenomenon, so that I am now using the counter always in gated mode. This solution is more or less in the way of your last answer seem we arrived at it contemporarily!
Proud to use LW/CVI from 3.1 on.
My contributions to the Developer Zone Community
If I have helped you, why not giving me a kudos?

Similar Messages

  • When to change COMPATIBLE parameter while upgrading to Oracle 11G

    We are planning to upgrade from Oracle 10.2.0.4 on AIX to Oracle 11.2.0.2 soon.
    While reading oracle upgrade documents and from oracle upgrade blog, it is mentioned that once we change compatible parameter,
    we will not be able to catdwgrd.sql to downgrade.
    However, if we don't change compatible parameter after an upgrade, all the testing efforts during upgrade process wont be complete
    as we may need to do another round of testing after changing this value.
    So what is the best time for changing this compatible parameter? 1 week or 2 weeks after upgrade?
    We are considering catdwgrd.sql as our option to fallback if something goes wrong.
    Thank You
    Sarayu

    Hi,
    It's a difficult question. If your applications are validated with 11gR2, if your OS is certified to work with Oracle 11gR2, if you adjusted the requirements etc. it will work. Will it work 100% well ? Maybe not but downgrading is really an extreme solution. 11gR2 is a fully supported version and anyway you will obtain efficient support from Oracle if you encountered a bug etc.
    If you have doubts change when you are sure every critical activity/charge you expect went well for example. We cannot know if it will be after 1 week or 2 weeks : it's up to you.
    Be sure you check what Tom says about the COMPATIBLE parameter (it's interesting to know exactly what it covers, it does not cover the optimizer features etc.) : http://asktom.oracle.com/pls/apex/f?p=100:11:0::::P11_QUESTION_ID:485421569569
    Best regards
    Phil

  • How to change COMPATIBLE parameter while creating the database using DBCA

    I have installed 10.2.01.0 on centos 4.7
    Now i want to create database with COMAPTIBLE parameter 9.2.0.1
    I m trying to create database through DBCA, changed the initialization parameter COMAPTIBLE to 9.2.0.1.
    But gives me error
    ORA-19583: conversation termintated to error
    ORA-19870: error reading backup peice /opt/oracle/assistants/dbca/templates/Seed_Database.dfb
    ORA-00600: internal error code,arguments: [krbrckhr_compressed],[opt/oracle/assistants/dbca/templates/Seed_Database.dfb],[29],[30],[11420],[],[],[]
    ORA-06512: at "SYS.X$DBMS_BACKUP_RESTORE", line 5149
    ORA-06512: at line 16
    if i dont change the value of COMPATIBLE parameter then its running perfactly...
    But i have to set compatible parameter as 9.2.0.1....
    Can anybody tell me how to create database using 10g R2- 10.2.0.1.0 with compatible parameter 9.2.0.1

    Thank you for your response.
    I have tried that opting.
    After creating the database with COMAPTIBLE parameter 10.2.0.1.0 changed that parameter in init.ora file to 9.2.0 and start the database.
    But at that time getting
    ORA-00201: contorl file version 10.2.01.0 incompatible with ORACLE version 9.2.0.0
    ORA-00202: control file '/opt/oracle/oradata/ORCL/control01.ctl'

  • Error in sharepoint 2010 designer while saving:"Content in the embedded form may be changed by the the server to remove unsafe content.Do you want to reload your page to see the results of the save? "

    Hi, 
    I am doing development  in sharepoint 2010 and facing this very weird problem.
    If I create a site page with the sharepoint look and feel for that site and try to save the site page,i am getting this error:**"Content in the embedded form may be changed by the the server to remove unsafe content.Do you want to reload your page to see
    the results of the save? "** and when i say reload,the server removes some parts of my page, e.g onclick event of html,asp buttons.
    This error just comes for any sharepoint site page,e.g i took a copy of 'How To Read Library' page just edited the text part of taht page,and when i try to save this error again comes up.
    However,if i create a simple aspx page with only htmltags like head body,then thr is no problem ,everything works great. But sharepoint look and feel pages are giving troubles while saving.
    has anybody seen this earlier,what could be the reason for this?
    Thanks

    I think the excerpt and link below is the why, but the page talks about server code and not javascript.  I guessing that this is why blank pages work, but not wiki pages.  Can anyone verify this?
    The following are general rules for using server-side code on a site page.
    If the page is uncustomized, server-side code is supported on the page.
    If the page is customized, server-side code does not run, and the page does not render. This includes the code-behind for the page itself.
    http://msdn.microsoft.com/en-us/library/office/aa979592(v=office.14).aspx

  • The status of "QUERY_VIEW_DATA_PROVIDER" "DP_1" may only change during comm

    Hi,
    I am facing the below mentioned error while executing a report on the web with a Variable :-
    The status of "QUERY_VIEW_DATA_PROVIDER" "DP_1" may only change during command processing
    (The report was run on web with a recently configured portal)
    Code for Variable Exit :-
        WHEN 'ZZVAR_YS'.  "Yesterday
          CASE P_STEP.
            WHEN 1.
              "Pre Processing
              clear l_s_range.
              clear lv_date.
              lv_date = sy-datum - 1.
              l_s_range-opt  = 'EQ'.
              l_s_range-sign = 'I'.
              l_s_range-low  = lv_date.
              append l_s_range to p_t_range.
            WHEN 2.
              "No After Processing
          ENDCASE.
    Variable  Characteristics at reporting End :
    1.     Optional
    2.     Not ready for Input
    3.     Single value
    4.                  Customer exit Variable
    Pointers will be of immense help.
    Thanks & Regards,
    Rahul

    Thanks,
    That was some useful information.
    Solved using dynamic assignment of Data provider.
    Regards,
    Rahul R Nair

  • SQL REPORTING 2008, 2012 - WHEN I CHANGE A PARAMETER WE HAVE ALWAYS A SCREEN REFRESH (POSTBACK)

    hi,
    my name is Pedro Mesquita, from Portugal Europe.
    i have this problem with my client and it seems it is common to all other projects : i have a report with parameters depending on each other (but curiously this happens also with reports without depending parameters and the order for which thay are created
    counts!) and when the user changes one parameter the screen (sql reporting front-end) does a postback and refreshs! is this by design by microsoft ?! the client wants to keep the previous rendered report to help him build the new one.
    how can i avoid this?
    microsoft help please?
    best regards
    Pedro Mesquita

    Oh Microsoft.....
    This means that we must build our front-end to control this "feature"....
    AJAX would solve this....
    Thank you.
    Best Regards,
    Pedro
    Pedro Mesquita

  • Significance of Initial (intial_extent)parameter while creation of table

    Hi All,
    I am designing a new schema for my 10g database and I am in process of creation of tablespaces and tables.
    My Tablespace are extent management local autoallocate and auto segment space management.
    With “segment space management Auto”, I understand that I don’t have to define storage clause in tablespace and freelist will be taken care by bitmap
    My question is
    while creation of tables what’s the significance of Intial (intial_extent in user_tables) parameter.?
    Do I need to consider this parameter while defining large and small tables?
    Is this not controlled by “auto segment space management.” Parameter of tablespace.?

    While it is unlikely to make a measurable impact on anything in practice, it is almost always preferable in theory, assuming perfect knowledge of the system, to have a few different tablespaces with different uniform extent sizes and to put each object in the appropriate tablespace for its size (i.e. giant tables in the tablespace with giant extent sizes, tiny tables in the tablespace with tiny extent sizes, etc.). The problem with this, however, is that you very rarely have perfect knowledge in advance about object sizes and growth and size patterns are likely to evolve over the life of the system, so you can suck up a great deal of DBA and developer time gathering and maintaining this sort of information as well as responding to changes over time (i.e. moving objects from one tablespace to another as their usage patterns change). For most systems, the potential benefit to having a perfect setup, rather than putting everything in an AUTOALLOCATE tablespace, is far smaller than the cost of actually doing so.
    Unless you have some reason to believe that your application is in the minority where squeezing the last bit of storage efficiency is worth the hassle, I'd tend to suggest throwing everything in an AUTOALLOCATE tablespace.
    Justin

  • Change Prototype Parameter from a TestStand DLL Module Programmat​icaly

    Hi.
    I started this post inside the LabWindows section, but had no replies there.
    Hope I can get some help here.
    Please see the follwing link
    http://forums.ni.com/ni/board/message?board.id=180​&message.id=46129&query.id=804485#M46129
    Thanks in advance.
    Daniel Coelho
    VISToolkit - http://www.vistoolkit.com - Your Real Virtual Instrument Solution
    Controlar - Electronica Industrial e Sistemas, Lda
    Solved!
    Go to Solution.

    Hi Doug.
    I'm sorry for the delay.
    Here's how I solved the problem: I changed from CVI module to DLL module.
    Here's a sample of my code:
    //I changed from CVIModuleGetParameters() and CVIParametersGetItem() to TS_DllModuleGetParameters() and TS_DllParametersGetItem and now it works fine.
    //seqContextCVI = ThisContext reference object
    void __declspec(dllexport) __stdcall GetControlarParameters(CAObjHandle seqContext)
        int error = 0;
        ErrMsg errMsg = {'\0'};
        ERRORINFO errorInfo;
        char strItemLabel2[1024] = "";
        CAObjHandle step = 0;
        CAObjHandle seqFile = 0;
        CAObjHandle module = 0;
        CAObjHandle parameters = 0;
        CAObjHandle parameter = 0;
        tsErrChk(TS_SeqContextGetStep (seqContext, &errorInfo, &step));
        tsErrChk(TS_StepGetModule(step, &errorInfo, &module));
        tsErrChk(TS_DllModuleGetParameters (module, &errorInfo, &parameters));
        tsErrChk(TS_DllParametersGetItem (parameters, &errorInfo, CA_VariantInt(1), &parameter));
        sprintf(strItemLabel2, "\"%s\"", "TEST");
        tsErrChk(TS_CommonCParameterSetValueExpr(parameter​, &errorInfo, strItemLabel2));
        // NOTE: After making an edit to a step you need to mark the file as modified by
        // incrementing the file's change count. This is also necessary for the change to show
        // up in the sequence editor imediately.
        tsErrChk(TS_SeqContextGetSequenceFile (seqContext, &errorInfo, seqFile));
        tsErrChk(TS_SeqFileIncChangeCount(seqFile, &errorInfo));
    Error: 
        CA_DiscardObjHandle(step);
        CA_DiscardObjHandle(seqFile);
        CA_DiscardObjHandle(module);
        CA_DiscardObjHandle(parameters);
        CA_DiscardObjHandle(parameter);
        // If an error occurred, set the error flag to cause a run-time error in TestStand.
        if (error < 0)
            TS_SetStepError(seqContext, error, errMsg);
    Thank you for all the help.
    My best regards.
    Daniel Coelho
    VISToolkit - http://www.vistoolkit.com - Your Real Virtual Instrument Solution
    Controlar - Electronica Industrial e Sistemas, Lda

  • Service order IW32 - change header data while saving with UE

    Hello
    I have the following problem. I need to clear while saving
    order in IW31/2 one single fields this is CAUFVD-ABGSL
    but I cannot find any user exist that could allow me to CHANGE this field I tryied to use :
    IWO10009 IH-Auftrag: Kundenprüfung zum Zeitpunkt 'Sichern'
    but it has only CAUFVD as importing parameter *"  IMPORTING
    *"     VALUE(CAUFVD_IMP) LIKE  CAUFVD STRUCTURE  CAUFVD
    while I need to change one field while saving order
    Did somebody dealt with this problem
    I will be really gratefull for help
    Best regards
    Bogumila

    Hi,
    I've had a request for one of my customers to automatically change this field as well.
    Apparently, it was possible to change the CAUFVD structure, but it wasn't updating the database table AUFK.
    First of all, I wrote a new function module to update it straight in the AUFK database table, using the order ID and the provided RA key. This because using FM BAPI_ALM_ORDER_MAINTAIN threw an error.
    FUNCTION Z_0PM_CHANGE_RA_KEY.
    *"*"Update Function Module:
    *"*"Local Interface:
    *"  IMPORTING
    *"     VALUE(IV_AUFNR) TYPE  AUFNR
    *"     VALUE(IV_RA_KEY) TYPE  ABGR_SCHL
         UPDATE aufk SET abgsl = iv_ra_key WHERE aufnr = iv_aufnr.
    ENDFUNCTION.
    Then in user exit PPCO0001 - FM EXIT_SAPLCOBT_001 I'm calling this in an update task, to avoid any current object locks while saving. It's working both in transactions IW31 and IW32:
    SELECT SINGLE absl FROM z0pmrakey
            INTO lv_ra_key
            WHERE auart = lv_auart_rep
              AND ilart = lv_ilart_rep
              AND eqtyp = lv_eqtyp_rep.
          CALL FUNCTION 'Z_0PM_CHANGE_RA_KEY' IN UPDATE TASK
            EXPORTING
              iv_aufnr       = lv_aufnr
              iv_ra_key      = lv_ra_key.
    In case you have any questions, please ask.
    Kind regards,
    Joris

  • What is the maximum size of the application to download to iPad via GSM. Is it 20 Mb? Is it possible to change this parameter?

    What is the maximum size of application to download to iPad via GSM. Is it 20 Mb? Does exist any possibility to change this parameter? In the towm where I live there is lack of wifi and the only possibiluty to download something from Apple Store is to use GSM/3G.

    It has partly to do with the carrier.  From what I've summized from reviews & feedback online is since Apple iPhone was the most advanced phone on the market when it was initially released the carriers were concerned about using up bandwidth with the apps & movie downloads so a limit was intially set for 10mb max on 3G connection.  Later apple raised the limit, against the carrier's advice, to 20mb max.
    The interesting part is the limitation doesn't exist on Android phone when they also have large apps & movies which are available for download & they use the same networks the iPhone uses!  So why are the iPhone users still limited to the amount they can download at once while the Android users are not.  They pay the same for thier data plans, if not less in some cases, that iPhone users do!

  • How  change NLS_NUMERIC_CHARACTERS parameter for load external table

    Hi,
    I use this version:
    OWB 11gR2
    Database 11gR2
    Parameter NLS_NUMERIC_CHARACTERS Database ., Instance ,.
    When I created database with wizard and in this moment I don't set spanish language, later I changed this parameters in instance parameters.
    Now I want load data from a file to external table, but I've an error when I try load data with decimal point.
    why does it use the database parameter instead of instance parameter?
    Is possible to change this parameter?
    Cheers
    Marisol

    At this moment , this is not possible . You can see metalink note ID 268906.1.
    It says:
    Currently, external tables always use the setting of NLS_NUMERIC_CHARACTERS
    +at the database level.+
    Cheers
    Marisol

  • I want to buy Adobe Creative Suite 6 Master Collection Chinese version,but Flash Builder is English version in it, May I change this software to Chinese version?

    I want to buy Adobe Creative Suite 6 Master Collection Chinese version,but Flash Builder is English version in it, May I change this software to Chinese version?

    There is no reason to do that. You can buy a legitimate copy of the product from Adobe.
    If the price is too good to be true, it's too good to be true. Caveat emptor.

  • How can i change the font while im coding?

    How can i change the font while im coding? I am not talking about the final product and inserting fonts in my documet i am talking about when i am in the progress of coding I want to change the font so it is way more pleaseing to the eye when I am staring at it while coding? please do help and thanks!

    Editing the source is a bit of a pain because you'll have to redo it after every update.  It's better to write yourself a mini-extension that adds a new stylesheet -- that is also very simple to do.  Just follow these instructions: https://github.com/adobe/brackets/wiki/Customize-Your-Code-Font.
    - Peter

  • Change the permission while placing the file

    Hi Experts,
    I have a production issue :
    I am placing the .txt file into a SFTP server location from a SFTP Location[NO Transformation in the file]. (Sender and receiver channels are SFTP)
    I am using user- user1(for example) which have the read write access to the particular folder, hence when it places the file it places with 664 permission .(This permission gives only user1 as read/write access , but other user have read only access).
    The requirement :
    The user2 want to deletes the file from the particular folder location , they want to know by any means can PI change the permission while placing the file into that location so that user2 can also have read/write access.
    Can you provide the opinion whether it can be done using SFTP receiver channel or any other option to change the permission of the file.

    As far as i know the permissions are related to the folder and the User not for files
    While creating the access, a particular user authorizations related particular folder, not related to files.
    So this should be done some thing like by giving the read/write access to user2 as well
    Regards

  • Can you please tell me how can i change the parameter of Applet using Aspec

    Respect Members
    Can we apply Aspectwerkz on Applet? In our project we have to
    change the method parameters before its execution(Around Advice) , can we do this in applet using Aspectwerkz?
    Can you please tell me how can i change the parameter of Applet using Aspectwerkz or AspectJ ?
    I did it by for Java Application using the AspectJ And Aspectwerkz But not able to do for Applet.
    For Applet I Am setting the parameter in JAVA plug in for Aspectwerkz e.g. -Xdebug -Xrunaspectwerkz -Xbootclasspath & path for xml file in which pointcut is defined.
    If you any Friend working on it or any author who might be helpfull for me please Forward this mail to him/her
    THANKs in Advance
    [email protected]

    hello rodale, what you're seeing is probably a side effect of firefox not being able to save certain preferences into its profile folder.
    go to ''firefox > help > troubleshooting information'', click on ''profile folder/show folder'' and close all firefox windows afterwards. a windows explorer window should open up - in there delete the file named '''user.js'''.
    in case this didn't solve the issue yet please also refer to [[How to fix preferences that won't save]].

Maybe you are looking for

  • Having trouble getting time capsule to backup my files automatically.

    I have been having trouble with time capsule ever since I upgraded to the Mountain Lion OX.  I get the error message..."backup disk can not be found".  The only was I can get it to work (temporarily) is to unlug the time capsule and plug it back in. 

  • Alternatives to treetables

    Hi guys, the treetable component is probably one of the more powerful components I've ever come across, but the availability is rather scarse. In this light, I was wondering what are the alternatives to the same? Thanks, karthikeyan.r

  • Decimal error in table BSEG.

    Dear experts, I will present my problem in a scenario. I'm using txc FB70 to make an invoice in currency COP (columbian peso) or MXP (mexican peso). When using MXP it works fine, but with COP the amount entry in table BSEG gets divided by 100. The re

  • Adding songs to the shuttle

    Hi, Can't figure out the inconsistent behaviour of the iTunes s/w and whatever the interactions of the XP automatic features such as recognizing the iPod as an external disk. Is there a specific way to set an option on the PC/XP NOT to recognize the

  • Simulate induction motor online starting with labview

    Hi All,          I want to simulate induction motor online starting with Labview. I have installed labview 2009,with control design and simulation,simulation interface toolkit Solved! Go to Solution.