How to decrease counter ?

Hi, and sorry for a newbie question written in bad English...
how can i control the count direction (up/down)of a counter by a DIO?
In my appliance a counter counts the low-high edges of a step frequency signal. (stepper: escap, DAQ: 6024E)
So when DIO is high (rotation direction right) the counter counts upwards, and when low (direction left) it counts downwards.
How to do it?
Thanks
Dietmar

Dietmar,
Assuming you want to setup the encoder all in HW,
For CTR0, connect UP/DN to DIO6.
For CTR1, connect UP/DN to DIO7.
You can also reference this very detailed application note on using encoders with DAQ STC(the digital chip on our E-Series boards)
http://zone.ni.com/devzone/conceptd.nsf/webmain/6F25CBA2CD73417786256869005E5FC3?opendocument&node=DZ52326_US
This should do it for you.
Kevin R

Similar Messages

  • How to Decrease fragmentation level of a table.

    Hello Everyone,
    There is a table present in my production database.
    Its version is Oracle 10G(10.2.0.1.0)
    i)Its size is 26 GB with fragmentation level.
    ii)It has more then 48 crores of rows.
    iii)Its size is 20 GB without fragmentation level.(So 6 GB of unused space is wasted).
    Following are my doubts regarding the above points.
    i) How to decrease the fragmentation level of the table.
    ii) if there is any way to decrease the fragmentation level,how much time it will take to perform the particular activity so as to decrease the fragmentation level.

    Well Mine is Oracle 10G. Hence the production database is Locally Managed.Well it has more then 48 millions of rows in my table
    Definition of Fragmentation :-
    When rows are not stored contiguously, or if rows are split onto more than one block, performance decreases because these rows require additional block accesses.
    When a lot of DML operations are applied on a table, the table will become fragmented because DML does not release free space from the table below the HWM.
    Definition of High Water Mark(HWM):-
    HWM is an indicator of USED BLOCKS in the database. Blocks below the high water mark (used blocks) have at least once contained data. This data might have been deleted. Since Oracle knows that blocks beyond the high water mark don't have data, it only reads blocks up to the high water mark when doing a full table scan.
    Please go through the below example if you have any doubts.
    EXAMPLE:-
    How to find table fragmentation?
    SQL> select count(*) from big1;
    1000000 rows selected.
    SQL> delete from big1 where rownum <= 300000;
    300000 rows deleted.
    SQL> commit;
    Commit complete.
    SQL> update big1 set object_id = 0 where rownum <=350000;
    342226 rows updated.
    SQL> commit;
    Commit complete.
    SQL> exec dbms_stats.gather_table_stats('SCOTT','BIG1');
    PL/SQL procedure successfully completed.
    Now lets determine the size of table
    TABLE SIZE(with fragmentation)
    SQL> select table_name,round((blocks*8),2)||'kb' "size"
    2 from user_tables
    3 where table_name = 'BIG1';
    TABLE_NAME size
    BIG1 72952kb
    ACTUAL DATA in table:
    SQL> select table_name,round((num_rows*avg_row_len/1024),2)||'kb' "size"
    2 from user_tables
    3 where table_name = 'BIG1';
    TABLE_NAME size
    BIG1 30604.2kb
    Note = 72952 - 30604 = 42348 Kb is wasted space in table
    Edited by: 855956 on May 3, 2011 12:11 PM

  • How do I count the number of records returned in the CMIS query

    How do I count the number of records returned in the query CMIS?
    SELECT COUNT(*) FROM ora:t:IDC:GlobalProfile WHERE ora:p:xRegionDefinition = \'RD_PROJETOS_EXCLUSIVOS\''}
    Euler Homero

    Hi Euler,
    interestingly enough, the reference guide for CMIS ( http://wiki.alfresco.com/wiki/CMIS_Query_Language ) that I found does not mention the COUNT function at all. On the other hand it states that: "The SELECT clause identifies which virtual columns to return in the result set. It can be either a comma-separated list of one or more queryNames of properties that are defined by queryable object types or * for all virtual columns."
    There are, however, some other posts like e.g. http://alfrescoshare.wordpress.com/2010/01/20/count-the-total-number-of-documents-in-alfresco-using-sql/ which state that they could make it working.
    Having asked in the WebCenter Portal forum, I assume that your content repository is WebCenter Content. The CMIS doc for the Content is available here: http://docs.oracle.com/cd/E23943_01/doc.1111/e15813.pdf (no COUNT there either). It does, however, mention explicitly that "CMIS queries return a Result Set where each Entry object will contain only the properties that were specified in the query.". This means your could rather investigate the Result Set. Note that there are also other means than CMIS how to get the requested result set (e.g. calling a search service directly via so-called RIDC).
    In the given context I am also interested what your use case is. OOTB CMIS in WebCenter Portal is used, for instance, in Content Presenter, where it is content rather than "parameters" what's displayed.

  • How to print count page of HP LaserJet Pro M1214nfh Multifunction Printer

    Hi there, I need to find out how to print counter of my printer, I mean the total number of printed pages.
    my printer model is :
    HP LaserJet Pro M1214nfh Multifunction Printer
    thanks alot.

    Hello motevalli69,
    Welcome to the HP Forums.
    To get the number amount of the pages printed, I am going to give you the User Guide for your printer.  Please go to the section Table 2-5.  Reports Menu. 
    I hope this is the information you are looking for.
    Please feel free to write me back if you have any other questions.
    Cheers,  
    Click the “Kudos Thumbs Up" at the bottom of this post to say “Thanks” for helping!
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    W a t e r b o y 71
    I work on behalf of HP

  • How setup cycle counts with wms picking

    How setup cycle counts to dispatch tasks when make picking of an order with wms and activate an exception?

    Hi,
    We need to use customization with respect to your requirement as you cannot meet the whole requirement with seeded parameters available in Picking rules. Let me know your mail id so that i can farward you an document that is from oracle which suggests about the using the functions and packages in the picking rules.
    Regards,
    Sravan.

  • How to decrease the width of left column in the "2 column layout"?

    Hi all,
    I create two webdynpro based iViews in the EP, then I create a page use the "2 column layout(Narrow:Wide)".I put one iview in the left column and another iview in the right column. When I preview my page, I found the left column still too wide. So how to decrease the width of my page's left column?
    Thanks and Best regards
    Deyang

    Hi Deyang,
    You have to create your own layout:
    - Navigate to System Administration->Support
    - Choose Portal Runtime -> Browse Deployment
    - Navigate under pcd or under temp, and download the layouts par (com.sap.portal.layouts.default.par.bak if I recall correctly)
    - Import that par as a project to Developer Studio
    - Make your changes (create a new jsp acording to the existing examples, and update the portalapp.xml accordingly)
    - Export to par (in a different name!) and deploy
    - In the portal content: new from par -> Layout (don't forget to mark it as a template).
    - Your new layout template will now be available when you create new pages.
    good luck!

  • How to use Count with Date Parameters

    Hello,
    I am having issues using the Count() function in conjunction with date parameters.
    This is a Siebel report and in my report I have 2 date parameters(From Date, To Date). In a nutshell I am basically trying to count Opportunities that has a start date within the given date period. However I don't see a reasonable way to put my date parameters within the Count() function. The reason being is that I need to have a huge chunk of code to convert the dates into a common format that can be compared, and it won't even fit within the code block in my rtf template. I am not even sure how to put multiple conditional statements inside a Count() function since all the examples I have seen are very simple.
    Anyone have a suggestion on how to use Count() with date parameters?
    Thanks.

    Any chance you can get the date formats in the correct format from siebel?
    I don't know Siebel - so I can't help you with that. If you get the correct format it is just
    <?count(row[(FromDate>=date) and  (date<=ToDate))?>
    Otherwise the approach would probably need to use string function to get year/monthd/day from the date
    and store it into a varialbe and compare later the same way
    <?variable@incontext:from; ....?>
    <?variable@incontext:to; ...?>
    <?count(row[($from>=date) and  (date<=$to))?>
    Potentially you can use the date functions such as xdofx:to_date to do the conversion
    [http://download.oracle.com/docs/cd/E12844_01/doc/bip.1013/e12187/T421739T481158.htm]
    But I am not sure if they are available in your siebel implementation.
    Hope that helps

  • How do I count objects of a specific type in a Vector? Java 1.3 source.

    How do I count the objects of a specific type in a Vector?

    isInstance may allow too much for your needs as it allows any object which can be typecast to 'type' while you seem to want to limit to objects which are exactly of the type 'type'. In such a case you could do this:
    for (Enumeration e = attachmentTypes.elements(); e.hasMoreElements();)
      Object check = e.nextElement();
      if (check.getClass().equals(type)) {
        counter++;
    }Javadoc of the isInstance() method:
    http://docs.oracle.com/javase/1.4.2/docs/api/java/lang/Class.html#isInstance%28java.lang.Object%29
    (I link to the old Javadoc given you mentioned Java 1.3 compatible source)

  • How to get count of rows for a table?

    Hi,
    How to get count of rows for a table and secondly, how can i have access to a particular cell in a table?
    Regards,
    Devashish

    Hi Devashish,
    WdContext.node<Your_node_name>().size() will give you the no: of rows.
    This should be the node that is bound to the table's datasource property.
    WdContext.node<Your_node_name>().get<node_name>ElementAt(index_value); will select the row at that particular index.
    You can access an attribute of a particular row as
    WdContext.node<Your_node_name>().get<node_name>ElementAt(index_value).get<attribute_name>();
    Hope this helps,
    Best Regards,
    Nibu.
    Message was edited by: Nibu Wilson

  • How to decrease width of the dropdown bookmark panel (FF 11)?

    How to decrease width of the dropdown bookmark panel (FF 11)?
    This panel is too wide and covers too much space in underlying windows. The book marks text should not be truncated but some way needs to be found to allow the entire text of any line to be viewed when the cursor lands on it. Much of the information in "HELP" related to this question turns out to be very very old (essentially meaningless in 2012).

    My bookmarks truncate, but only after many, many characters. Then you can view the full title, as well as the URL, in the mouseover tooltip.
    To narrow the width of the bookmark menus:
    (1) There might be an existing add-on targeted to this; I didn't search.
    (2) You could create a custom style rule. One way to do this is to use the Stylish extension and add the following userstyle (create a blank rule first):
    <br>@namespace url(http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul);
    #bookmarksMenu menupopup {max-width:15em;}
    That works in my test, but you can tweak that maximum width to suit your needs. (1 "em" is about 16 pixels). Stylish can be installed from here: [https://addons.mozilla.org/en-US/firefox/addon/stylish/ Stylish :: Add-ons for Firefox].
    (3) You could create a custom style rule in the file userChrome.css, which you can add to your personal Firefox profile. I didn't test it.

  • How to decrease SGA size in oracle 9i

    hi,
    how to decrease SGA size .. now SGA size=400m i want to drecrease to 150m
    Thanks,
    Mohammed

    Why do you want to do this? Is your system low on memory?
    Perhaps your DB is on a laptop with
    only a small amount of memory?
    Well an enterprise database server set of
    thread inside a complex service would need
    a high powered laptop with large amounts
    of memory.
    Or perhaps your UAT server has 10 databases
    on it all competing for resource?The culprit may not be Oracle.
    For example (as you have not told us your operating system, windows linux unix?) IBM's AIX unix operating system comes configured optimally for managing file caching in the OS memory; as Oracle also caches the blocks read from disk sometimes the file system caching is redundant and ends up using memory better allocated to Oracle. In that case you tune the Unix kernel to reduce memory allocated to the file system caching. The default settings allow IBM AIX to take up to 80% of system memory for caching bad if you have allocated 40% to the SGA already.........
    The really cool thing about AIX is you can do this on the fly and you don't need to reboot so when you go live you juggle until you get an optimal setting and then monitor.
    In the end you may just have to add memory.

  • How can i count no rows in my database table

    plz tell me how can i count no of rows in my database table with[b] ResultSet object

    Hi ! hope this code helps you .
    We can use the count(*) to get the total no of records in the table ad then access it through the getString method .
    import java.sql.*;
    public class JdbcTest
         public static void main(String [] args ) throws Exception
              Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
              String DBURL = "jdbc:odbc:mydsn" ;
              Connection conn = DriverManager.getConnection(DBURL);
              Statement st = conn.createStatement();
              ResultSet rs = st.executeQuery("select count(*) from table1");
              rs.next();
              System.out.println("total rec = " + rs.getString(1));     
    Cheers !

  • How to get count,index and compare to arraylists

    hi
    how to get count,index and comparing of 2 arraylist.... plz suggest me asap...

    How is your question related to JDBC? And what have you done so far with your code?

  • How do you count the multiple columns of a field in a table

    How do you count the multiple columns of a field in a table

    Hi,
    4396bf34-e890-4202-a6b0-4e08c9ff0e89 wrote:
    How do you count the multiple columns of a field in a table
    Whenever you have a problem, post a little sample data (CREATE TABLE and INSERT statements, relevant columns only) for all tables involved, and also post the results you want from that data.
    Explain, using specific examples, how you get those results from that data.
    Always say which version of Oracle you're using (e.g., 11.2.0.2.0).
    See the forum FAQ: https://forums.oracle.com/message/9362002
    "Field" isn't a standard database term.  Some people say "field" when they mean "column", but I don't think that's what you mean ("How do you count the multiple columns of a column ..").  Do you want to know how many times a column is used (as opposed to NULL), or the number of different values in a column?  You really need to show what you want.

  • How to decrease performane of a web dynpro abap application

    Hi Folks,
            I am new to web dynpro abap .pls tell me how to decrease performane of a web dynpro abap application but dont say by using icm tracking and wd_trace_tool.that are used to find out errors?

    >You mean to say we can use Runtime analysis and SQL trace in WDABAP?
    Yes, that is exactly what I mean.
    >I Thomas i need e learning tutorials created by you.I am new to WDABAP.if possible try to send URL of your e learning tutorials
    They are all available here on SCN in the Web Dynpro ABAP eLearning library:
    http://www.sdn.sap.com/irj/scn/webdynpro-elearning

Maybe you are looking for

  • Unstable Intel(R) HD Graphics driver file

    Blue screen crashes caused by unstable driver file. (igdpmd64.sys) in Screen Display drivers. Caused multible crashes, until I disabled Intel(R) HD Graphics Family. Now Windows wants to keep shutting down the other graphics driver (which is a low res

  • How to trigger the quote re approval process

    hi i want to trigger the quote re approval process when order line details are changed after approval. can any one suggest me the way to perform this task whether i can create a database trigger ? thanks and regards srini

  • How to remotely deploy adf application using ant script

    Please suggest some pointer on how to remotely deploy adf application using ant script. I have created automatic inbuild ant script using jdevloper and ojdeploy that create a war file into my adf application deploy folder. Now i want my war to be dep

  • Itunes won't run after upgrade

    I upgraded to the latest iTunes (10.6), but when I click on the icon I get an error message that says it can't open my iTunes library because it was created by a newer version of iTunes. How is that even possible if I just upgraded? Now I can't get i

  • Centering with layers problem

    I have a problem centering a layer that has an image with relative positioning. I've replicated this phenomena with some basic code to make it easy to convey: I would like to position a layer with an image that is horizontally center to the page rega