Counter function : How works the Set attribute function

Hi,
I use Labview and a 6713 DAQ
I want to use the "set attribute vi" but I don't exactly what means the "attribute value number" and the attribute value type" in that vi
>Where can I find some data about that?
>What is the relation between the internal clock frequency and the attribute value number if I generate a pulse train ?
>How can I configure the frequency of my DAQ ? ( I can use 20MHz or 100KHz )
Any help is greatly appreciated
Renaud

Renaud,
You can read the on-line help for the Set Attribute VI by right-clicking over the VI and selecting "Help." The help will describe each of those parameters. In addition, you can search through counter examples for your 6713 by selecting from the menu bar Help>>Search Examples>>I/O Interfaces>>Counters. Any example that demonstrates the functionality of the DAQ-STC counter will work for your board. In addition, you will find examples on pulse train generation.
Hope this helps.
Regards,
Erin

Similar Messages

  • GRC - Role Expert v5.2: how does the Transaction Usage functionality work

    Hi All,
    re: GRC - Role Expert v5.2: how does the Transaction Usage functionality work
    We are implementing GRC suite v5.2, but specifically my question is regarding Role Expert:
    SAP documentation states that it is possible to use Role Expert to do the following: for roles allows you to see if, or how much, a transaction is being used, when it was last used, and who used it.
    My question is how without Audit Log or RBE?
    Let me know if you have ever used this functionality and if it requires the SAP Back-End Audit Log to be turned on or RBE.
    Thanks in advance!

    Hi Gary,
    You dont need a RBE tool activation to get the successful transaction usage log with Role Expert.
    Role Expert functionality allows you to log all the transactions that have been added/deleted to the role that is changed. Also when you create a new role via the Role Expert then automatically the transaction log starts.
    If you go the "History" tab in the Role Expert, then you can find all the last changes made to the role.
    Also you can go to the "Risk Analysis" tab to find the log of Risk Analysis performed with the added tcodes.
    Hope this helps.
    Thanks,
    Kiran Kandepalli.

  • How do I set a function = to *** in Numbers to have a running total

    Hi
    How can I set a function in numbers that is the same as "***" in excel.  I just want to have a column that accumulates the totals in another column.

    Select the cell where you want the results to appear, then type
              =Sum(
    Then hold down the Command key and click on each of the cells in the other column whose results/contents you want incorporated into the running total.
    Then type
    and press Return.

  • How to add set attribute method in webdynpro abap using code wizard.

    Hi developer,
    I am new to webdynpro abap , i have developed a small component from sap technical abap but i am not able to add the set attribute method using read context node /attribute in wizard code ,pleae guide me in solution.
    thanks,
    ravi.

    Hi,
    could you copy / past your code ?
    if you need help on webdynpro and your beginner, try to watch the video on internet of WebBProfessor. It's really good videos !
    regards
    Fred

  • How work the decompiler flash?

    i wnat to know how work the decompiler flash..
    thank nissan.

    Hello & welcome Iotu!
    http://www.tech-recipes.com/rx/4836/os-x-how-to-burn-a-multisession-cd-or-dvd/
    http://myrightbrain.wordpress.com/2006/08/12/how-to-do-multisession-burns-with-m ac-os-x/

  • I have been using Photoshop Elements 11 photo merge function.  However, the Photomerge panorama function is no longer accessible - it is visible but greyed out on the "enhance" menu.  I have tried to reinstall software, but no change.

    I have been using Photoshop Elements 11 photo merge function.  However, the Photomerge panorama function is no longer accessible - it is visible but greyed out on the "enhance" menu.  I have tried to reinstall software, but no change.

    Click on Expert and the Enhance>Photomerge>Photomerge Panorama should be available

  • Help w/MaxDB Function; also: how does the "Debug SQL" function work?

    Hi there forum folks,
    In my former life, I was a Basis guy, but I haven't had the pleasure of working directly with SAP applications in a few months.  My current project is to attempt to use MaxDB in a real estate environment.  We're tracking home listings so that we can build statistical reports... such as "what agents are in the Top 100 in postal code X?"
    Anyway, as part of this project, I have attempted to construct my very first MaxDB database function.  Unfortunately, it doesn't give me the answers I'm hoping to see.  Here's the function:
    CREATE FUNCTION COUNT_LISTINGS (AGENTID CHAR(10)) RETURNS FIXED(6,1) AS
      VAR COLISTINGAGENTID CHAR(10);
          LISTINGAGENTID   CHAR(10);
          MLSNUMBER        CHAR(7);
          UNITS            FIXED(6,1);
      SET UNITS = 0;
      DECLARE FUNCTIONRESULT CURSOR FOR
        SELECT MLSNUMBER,
               LISTINGAGENTID,
               COLISTINGAGENTID FROM FREDDIE.GLAR_SOLDS
         WHERE LISTINGAGENTID = :agentid OR COLISTINGAGENTID = :agentid;
      IF $COUNT IS NULL THEN
        BEGIN
          CLOSE FUNCTIONRESULT;
          RETURN UNITS;
        END
      ELSE
        SET $RC = 0;
      WHILE $RC = 0 DO BEGIN
        FETCH FUNCTIONRESULT INTO :mlsnumber, :listingagentid, :colistingagentid;
        IF ( LISTINGAGENTID   = AGENTID AND COLISTINGAGENTID IS NULL ) OR
           ( COLISTINGAGENTID = AGENTID AND LISTINGAGENTID   IS NULL ) THEN
          SET UNITS = UNITS + 1
        ELSE
          SET UNITS = UNITS + 0.5;
      END;
    CLOSE FUNCTIONRESULT;
    RETURN UNITS;
    I've tried to follow the official MaxDB documentation.  My first deviation from that standard was the use of the "$COUNT" variable (instead of the "$RC" variable) immediately after the DECLARE/SELECT statement above.  When I tried to use $RC, for either a successful or unsuccessful query, $RC was always set to a non-zero value.
    I believe I'm past that, but now my issue is down around that FETCH statement.  The UNITS variable doesn't end up with the value I expect.  I know that it can be terribly confusing to try to analyze someone else's logic, but here's a brief narrative that describes what I'm trying to do...
    The GLAR_SOLDS table holds one line for each home sold.  It's keyed by the MLSnumber.  Each record also stores up to four agents who've been involved in the transaction: the listing agent, the co-listing agent, the selling agent, and the co-selling agent.  The database function I've written above pertains to the listing side only.  If I can get this to work, a separate function will process the selling side.  If no co-listing agent is involved in a given sell, that agent should get credit for 1 unit sold.  If he/she has help from a co-listing agent, the agent should only get credit for 1/2 unit sold.
    Also, does anyone know how the "Debug SQL" functionality is supposed to work within Database Studio?  When I right-mouse click on my function, and follow the path thru "Debug As...", after entering the connection & function arguments, I'm presented with an empty screen.  If you could point me to some documentation somewhere, I'd gratefully read it.
    I'm using MaxDB 7.7.06.09 on Windows XP (WIN32) with MaxDB Database Studio 7.7.06.09 (build 009-123-202-944).
    Thanks everyone for your help & advice.
    ~Fred

    Fred,
    please either provide the full SQL statements for your example or stick with mine.
    I'm not going to build it up myself a second time to suit yours now.
    >  But now, my issue is how do I store the resultant data in its own table?
    So where is the problem?
    INSERT INTO <target table> (field 1, field 2, ...)  (<your query>)  UDPATE DUPLICATES-
    With my tables this looks like this:
    create table sell_result (list_agent varchar(20) primary key, SUM_CREDIT fixed (10,2))
    insert
    into sell_result (list_agent,sum_credit)
        ( select list_agent, sum (credit) as SUM_CREDIT
          from ( select sh.object_id,lag.name as list_agent, 1 as credit
                 from soldhomes sh join agents lag on lag.id = sh.list_agent_id
                union all
                 select sh.object_id, lag.name as list_coagent, 0.5 as credit
                 from soldhomes sh join agents lag on lag.id = sh.list_coagent_id
          group by list_agent
    update duplicates
    Check what we have now
    sqlcli db770=> select * from sell_result
    | LIST_AGENT           | SUM_CREDIT        |
    | -------------------- | ----------------- |
    | Lars                 |              4.50 |
    | Lisa                 |              3.00 |
    | Mona                 |              2.50 |
    | Paul                 |              2.50 |
    4 rows selected (600 usec)
    Now add some sales data...
    Insert into soldhomes values (11, 1, 2, NULL, NULL)
    Insert into soldhomes values (12, 2, NULL, NULL, NULL)
    Insert into soldhomes values (13, 2, NULL, NULL, NULL)
    Re-run the INSERT command and you're done:
    sqlcli db770=> select * from sell_result
    | LIST_AGENT           | SUM_CREDIT        |
    | -------------------- | ----------------- |
    | Lars                 |              5.50 |
    | Lisa                 |              3.00 |
    | Mona                 |              5.00 |
    | Paul                 |              2.50 |
    4 rows selected (390 usec)
    Neat, isn't it?

  • How does the "Read TDMS" function work when reading part of a data file?

    Hi everyone,
    I have stored some rather large .lvm files that causing me a a big headache when trying to read/analyse the data.... As a work around I first convereted these files to .tdms.... Now the files are much smaller (50%) and can be load/plot within a couple of seconds rather than 10's of seconds.
    Specifically, the files include 7 channels of data that were sampled at 2kHz for about 8-9 mins..... So, each file contains about 700,000 data points or elements.... I am using a producer/consumer architechure to read/plot all the data, then using cursors to identify a data subset, which is send via a queue to the consumer where analysis occurs.... Given the size of the files, when subset is quite large I get "Out of Memory" errors and LabVIEW crashes.
    What I am thinking is that I can down-sample or decimate the data in the producer back to 1kHz (I need to ms resolution so I can see the spikes and can appropriately selected the subset) then index back into the original tdms file to send the undeciated data to the consumer.
    With the "Read TDMS" function, the help states:
    COUNT: Specifies the maximum number of data elements to read from the .tdms file for each channel. The default is –1.
    OFFSET: Specifies the number of data elements into the .tdms file at which the function begins analyzing the .tdms file. The default is 0.
    I am confused by the term "elements". Does this mean actual "data points" as in elements within the 2D array? Or bytes? I am hoping array elements... Would this then mean that given my 7 channels of data, each element value that is a multiple of 7 would index into a new line of data? I also assume this index is zero based... So with no offset, a count value of 0 would return all the data elements at time 0.0000s for all channels (regardless differences in the precision of each channel, unlike bytes), a value of 7 would return all the data elements at time 0.0005s, a value of 14 would return all the data elements at time 0.0010s, etc etc..
    Also, if anyone has any example code for indexing into a file using this method they could shareI would be very appreciative... I would assume a for loop could also be used to read the data subset into the consumer in smaller chunks to reduce the memory load?
    Many thanks,
    Jack

    You should have a different channel in the TDMS file.  So you are reading X elements from a channel starting at element Y.  Yes, those are elements in the array, not Bytes.  NI did a good job of making the API easy to use.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

  • Extract function not working with tag attributes

    Hi all,
    I have an xml document stored in the db as an xmlType. I am trying to use the extract function to retrieve values. The extract will work fine on tags without attributes. Any tags with attributes or tags beyond the tags with attributes will not be accessible.
    <tag1>
    <tag2>hi</tag2>
    <tag3 att="hello">bye</tag3>
    <tag4> hi again </tag4>
    </tag1>
    In the example above I can extract tag2 values but not tag3 or tag4 values.
    here is my select statement
    works
    select e.xmlval.extract('/tag1/tag2').getStringval()
    from test_xml e;
    does not work
    select e.xmlval.extract('/tag1/tag2/tag3').getStringval()
    from test_xml e;
    does not work
    select e.xmlval.extract('/tag1/tag2/tag3/tag4').getStringval()
    from test_xml e;
    Any ideas?

    Hi all,
    Found the issue. The problem was that I was not specifying the second argument to the extract function.
    The tag attribute that I was not handling was xmlns="".
    I used this atttribute as the second argument in the extract function and now I am off and running.
    Hope this helps someone.
    Cheers

  • Upgraded to Mavericks and have lost the closedown/restart function - how can I recover this function. Pressing on/off button just switches off the display. Thanks

    Have just upgraded to Mavericks OS X and have lost the closedown/restart function. Pressing the on/off button just switches off the screen. Thanks

    Hold the power button for about 7 seconds to shutdown or select shutdown under the  menu.

  • How to add/set attribute "collectiveParentRDN" in DSEE6.3.1 installation.

    Hi,
    I'm new to DSEE and I have a question ,
    I have a code which
    1. First it binds to LDAP server through a proxy user.
    2. Authenticates a user
    3. Gathers all the roles that a user is a member of.
    It uses ,”collectiveParentRDN ” as a DN attribute.
    For e,g,in following line from the code:
    userDN = attrs.get("collectiveParentRDN").get().toString();
    But I’m getting userDN as null as there is no attribute called collectiveParentRDN in the LDAP schema I’m using.
    However when I use “entryDN” instead, it works.
    But I need to use “collectiveParentRDN” . and I'm not able to configure this attribute in the
    When I try to add this attribute I get a constraint /schema violation error.
    Can anyone please tell me how to add /set this attribute to DSEE6.3.1 LDAP server.?
    Here is the complete code snippet:
    import java.util.ArrayList;
    import java.util.Hashtable;
    import javax.naming.Context;
    import javax.naming.NamingEnumeration;
    import javax.naming.directory.Attributes;
    import javax.naming.directory.DirContext;
    import javax.naming.directory.InitialDirContext;
    import javax.naming.directory.SearchControls;
    import javax.naming.directory.SearchResult;
    public class LDAPPrototype {
         public static final String LDAP_URL = "ldap://localhost:389";
         public static final String LDAP_LDAPSERVER_SEARCHBASE = "o=MyLDAP";
         public static final String SECURITY_AUTHENTICATION_METHOD = "simple";
         public static final String INITIAL_CONTEXT_FACTORY = "com.sun.jndi.ldap.LdapCtxFactory";
         public static final String LDAP_USER_GROUP_ATTR = "nsRole";
         private static final String LDAP_USER_LOGIN = "dsingh1";
         private static final String LDAP_USER_PASSWORD = "password";
         // NOTE: Three new params for authenticating proxy.
         public static final String LDAP_PROXY_PROXYDN = "uid=will,ou=Blue,ou=People,o=MyLDAP";
         public static final String LDAP_PROXY_UID = "will";
         public static final String LDAP_PROXY_PASSWORD = "password";
         // NOTE: TWO new params to get users correct DN after search
         public static final String LDAP_USER_DN_ATTR = "collectiveParentRDN";
         public static final String LDAP_USER_CN_ATTR = "cn";
         public static void ldapAuthentication() {
              Hashtable env = new Hashtable();
              Hashtable cloneEnv = new Hashtable();
              DirContext ctx = null;
              String userDN = null;
              String userCN = null;
              String searchBase = null;
              try {
                   env.put(Context.SECURITY_AUTHENTICATION,
                             SECURITY_AUTHENTICATION_METHOD);
                   env.put(Context.INITIAL_CONTEXT_FACTORY, INITIAL_CONTEXT_FACTORY);
                   env.put(Context.PROVIDER_URL, LDAP_URL);
                   cloneEnv = new Hashtable(env);
                   env.put(Context.SECURITY_PRINCIPAL, LDAP_PROXY_PROXYDN);
                   env.put(Context.SECURITY_CREDENTIALS, LDAP_PROXY_PASSWORD);
                   ctx = new InitialDirContext(env);
                   System.out.println("Initial bind succesful");
                   SearchControls searchCtls = new SearchControls();
                   String[] returnedAtts = { LDAP_USER_DN_ATTR, LDAP_USER_CN_ATTR };
                   searchCtls.setReturningAttributes(returnedAtts);
                   searchCtls.setSearchScope(SearchControls.SUBTREE_SCOPE);
                   String searchFilter = "(uid=" + LDAP_USER_LOGIN + ")";
                   searchBase = LDAP_LDAPSERVER_SEARCHBASE;
                   System.out.println("Checking for user !!!");
                   NamingEnumeration answer = ctx.search(searchBase, searchFilter,
                             searchCtls);
                   System.out.println("User search successful !!!");
                   Attributes attrs = null;
                   while (answer.hasMore()) {
                        System.out.println("Searching for user attrributes!!!");
                        // Print all the user attributes
                        SearchResult sr = (SearchResult) answer.next();
                        attrs = sr.getAttributes();
                        System.out.println("Num of attributes = " + attrs.size());
                        // NamingEnumeration attrKeys = attrs.getIDs();
                        // while (attrKeys.hasMore()) {
                        // String at = attrKeys.next().toString();
                        // System.out.println("Key = " + at + ", value = " +
                        // attrs.get(at).get());
                        if (attrs.get(LDAP_USER_DN_ATTR) != null) {
                             System.out.println("User DN found for user: "
                                       + LDAP_USER_LOGIN);
                             userDN = attrs.get("collectiveParentRDN").get().toString();
                             System.out.println("User DN = " + userDN);
                        if (attrs.get(LDAP_USER_CN_ATTR) != null) {
                             System.out.println("User CN found for user: "
                                       + LDAP_USER_LOGIN);
                             userCN = attrs.get(LDAP_USER_CN_ATTR).get().toString();
                             System.out.println("User CN = " + userCN);
                        if ((userDN != null) && (userCN != null)) {
                             break;
                   userDN = LDAP_USER_CN_ATTR + "=" + userCN + "," + userDN;
                   System.out.println("Modified user DN = " + userDN);
                   cloneEnv.put(Context.SECURITY_PRINCIPAL, userDN);
                   cloneEnv.put(Context.SECURITY_CREDENTIALS, LDAP_USER_PASSWORD);
                   System.out.println("Authenticating user : " + userDN);
                   ctx = new InitialDirContext(cloneEnv);
                   System.out.println("Authenticated user : " + userDN);
                   System.out.println("Get user groups !!!");
                   String[] returnedGroups = { LDAP_USER_GROUP_ATTR };
                   searchCtls.setReturningAttributes(returnedGroups);
                   NamingEnumeration groups = ctx.search(searchBase, searchFilter,
                             searchCtls);
                   ArrayList<String> groupList = new ArrayList<String>();
                   while (groups.hasMore()) {
                        // Print all the user attributes
                        SearchResult sr = (SearchResult) groups.next();
                        attrs = sr.getAttributes();
                        if (attrs.get(LDAP_USER_GROUP_ATTR) != null) {
                             System.out.println("Num of groups found = " + attrs.size());
                             String groupName = attrs.get(LDAP_USER_GROUP_ATTR).get()
                                       .toString();
                             groupList.add(groupName);
                             System.out.println("Group found = " + groupName);
              } catch (Exception e) {
                   System.out.println(e);
                   e.printStackTrace();
         public static void main(String[] args) {
              ldapAuthentication();
    }Thanks in Advance.
    Rahul

    You are right, that attribute is not in the schema.
    I think perhaps that could be the reason I'm getting an schema violation error when I'm trying to add it.
    Can you please tell me how do I add any new attribute to the schema ?
    Thanks in advance
    Rahul.

  • How can i set attribute sizelimit in each specific UID?? and need some advi

    I just cannot give the develop's team the "Directory Manager" so i created the "Application uid" for connecting the Directory Server instead of giving them the password.
    then i set acl this application uid that have full access in specific baseDN
    which have almost 10,000 users and also set global nsslapd-sizelimit to be -1 (unlimited).
    unfortunately,
    there are so many application uid to connect my ldap.
    and my boss afraid of the load balancing issue may cause.. (especially with the Production)
    ohh by the way... my ldap version is
    iPlanet-Directory/5.1 Service Pack 1 20020606
    kinda old , huh?
    then i don't know what on mine mind.. i just suggest my boss that we should upgrade to be the lastest one ()..it's not only for solve this sizelimit issue.. but i do have another concern about password policy also.
    so ..Here is the question,
    1.) There are any solution that i just can solve my sizelimite problem..(don't want to set it as the global)
    2.) How about set as the role? i don't know how.. is it related with the 1.) ??
    3.) I need advantages as much as i can find to persuade my boss for buy the lastest one, please suggest what will be the stable and best one for now..
    please helpppppppppp..............

    To set individual resource limits see the user manual:
    http://docs.sun.com/source/816-6698-10/useracct.html#14891
    To convince your boss to upgrade, probably the best way to do it is to tell him that there have been many performance improvements and many, many bug fixes since your version.
    In the not too distant future, you won't be able to get support for 5.1, and right now, if you encounter any problem that has been fixed in a later release, the response from Sun will most likely be that to solve your problem you have to upgrade.
    Upgrading is going to have to happen in the not too distant future, one way or another -- it is infinitely preferable to do tha upgrade on YOUR schedule rather than being forced into an upgrade to resolve some urgent problem. The way that the universe works, the forced upgrade will occur at the worst possible time, causing the maximum disruption possible.

  • FCS and image sequences (TGA...) : how works the proxy creation?

    Hello,
    I would like to know how work FCS with image sequences (TGA, TIFF sequences...) for proxy creation.
    For example, the image sequences are created by 3D workstation at the speed of one frame per second.
    Does FCS create a proxy each time the folder is checked? The old proxy is delated?
    Thank you for your answer

    Jim is right. You can't replace a clip with an image sequence.
    If you are rendering your comps from one system, follow Jim's sage advice.
    But, in the cases when I do a multi-system network 3d render, there is
    no way for all systems to write to the same Uncompressed AVI file...
    so rendering to an image sequence is the only option.
    You say:
    ...for speed reasons -  converting them to lower res quicktime files
    and using those to edit in Premiere Pro.
    You might consider converting your sequences to both a low-res proxy for editing,
    and also convert to full-res lossless codec AVI files at the same time for swapping out later.

  • How works the analogo filter of the 4472?

    I need understand how filter the signals the 4472 board.
    Thanks

    Hello!
    That's a pretty broad question, the best thing to do would be to take a look at the 4472 manual on pages 3-4 through 3-9 at the following URL:
    http://www.ni.com/pdf/manuals/322940c.pdf
    This is an extensive explanation of how the antialiasing filters work, including several graphs of outputs.
    Hope this helps!
    Brian Spears
    Applications Engineer
    National Instruments

  • How does it work the reading (list) function on a mac?

    Hello there,
    Well, I was wondering how does it work, I mean, What's necessary to get this funtion work.. When you're reading something you see that there's is an options it lets you to get in a reading mode but sometimes some web pages won't let you do that
    Why?
    How does it work?
    Shortcuts:
    To show reading mode (shift + comand + R)
    To show the list bookmarks (shift + cmd + L)
    Thank you very much

    Then there's something going on with Safari on your Mac.
    Try troubleshooting Safari extensions and third party plugins.
    From the Safari menu bar click Safari > Preferences then select the Extensions tab. Turn that OFF, quit and relaunch Safari to test. If that helped, turn one extension on then quit and relaunch Safari to test until you find the incompatible extension then click uninstall.
    If it's not an extensions issue, try troubleshooting third party plug-ins.
    Back to Safari > Preferences. This time select the Security tab. Deselect:  Allow all other plug-ins. Quit and relaunch Safari to test.
    If that made a difference, instructions for troubleshooting plugins here.

Maybe you are looking for