Externally Control Count Direction with 6501

I have a USB-6501 Digital I/O & Counter card. I have an encoder that outputs a 50% duty cycle digital squarewave for a count, aswell as a digital high, low to indecate the count direction. Under the DAQmx configureation panel there is an option to have a externally controlled count direction. When selected I get an error saying:
Error - 2000777 occurred at DAQ Assistant
Possible Reason(s):
Measurements: Requested value is not a
supported value for this property.
Property: CI.CountEdges.Dir
You Have Requested: Externally Controlled
You Can Select: Count Up
Channel Name: CountEdges
To me this sounds like my USB-6501 does not support this function. If this is ture is there a way I could perform the same task in code? If not what hardware could perform this?
Thanks,
Randon Rose

Hello,
You are correct that your device does not support that functionality. The USB-6501 counter is only usable as an event counter, which means it can only count falling edges of an incoming signal. This counter is usable on only one external terminal, also port 2 line 7.
If you would like to know what you can do with this device check out this link, which is the manual.
Chris W

Similar Messages

  • Externally controlled counter direction with USB-6211

    I am using a USB-6211 and created a simple read counter application with the DAQ Assistant. It counts pulses (1 sample on demand) on Counter 0 (PFI0). When I set Direction to Externally Contolled it does not work properly. It counts random up and down. According to the manual my direction input line is Ctr 0 B (PFI1), but the level of this pin has no effect. What am I doing wrong?

    Hello Steffan,
    According to the following Knowledge Base you have cannot use the default settings wehn trying to externaly control the direction of the counter:
    http://digital.ni.com/public.nsf/allkb/1A8818274130FA388625722E00760CC9?OpenDocument
    Since these changes cannot be done in the DAQ assistant you have to use the DAQmx API to resolve this. I have attached a small example that does a simple event count on the source pin of counter 0 (which is also the A input of the counter). With a property node I have set the Counter Direction input terminal to PFI 1 (which is the B input). Now when the PFI 1 is low you will count up, when it is high you will count down.
    hope this helps,
    Regards,
    RikP - National Instruments Applications Engineering
    Message Edited by RikP on 06-05-2008 10:12 AM
    Rik Prins, CLD
    Applications Engineering Specialist Northern Europe, National Instruments
    Please tip your answer providers with kudos.
    Any attached Code is provided As Is. It has not been tested or validated as a product, for use in a deployed application or system,
    or for use in hazardous environments. You assume all risks for use of the Code and use of the Code is subject
    to the Sample Code License Terms which can be found at: http://ni.com/samplecodelicense
    Attachments:
    Count Digital Events Up-Down USB-621x.vi ‏33 KB

  • Problems with external counter direction

    I have a DAQPad-6015 attached to a SC-2345, in slot 19 of the SC-2345 I have a SCC-CTR01.  Within MAX I have created a task to retrieve the counter information but because there is no option of a SCC-CTR01 I have configured it as a SCC-FT01.  Attached to the "SCR" input of the SCC-CTR01 I have a signal generator and on the test pannel I can see the counter count the edges as I wanted.  My next step is to externally control the direction with the "GATE" input on the SCC-CTR01 and have had no luck.  I am able to see the TTL signals from the SCC-CTR01 on the green connector stack, I can see the signal generator out on PFI 8 and I can see the "GATE" switch on PFI 9.  I am also able to switch the count direction by tieing P0.6 to 5 volts when in the mode of "Count Direction, Externally Controlled" is selected.  I am not able to connect PFI9 to P0.6 as there appears to be another output tied to P0.6.  Where do I go from here?
    Ken

    Hi Ken-
    The code snippet in that KB shows how to use a DAQmx Property Node to override the default direction terminal in case you need an isolated input terminal for your count direction and are using an M Series device (which features configurable counter terminals)
    I'm assuming you are using an E Series device judging by your P0.6 query.  To answer your question, Yes- you can use pin 16 on the built-in breakout area of the SC-2345 carrier to externally control the count direction of your counter.  There is no need to tristate the line as long as you specify "Externally Controlled" for count direction in your DAQ Assistant settings.  If you still require an isolated input terminal for the count direction you could use an SCC-DI01 module to interface directly with P0.6.  All of this information is available in the KB you mentioned.  Please let me know if you need additional clarification.
    Thanks-
    Tom W
    National Instruments

  • Guide to External Jobs on 10g with dbms_scheduler e.g. scripts,batch files

    GUIDE TO RUNNING EXTERNAL JOBS ON 10g WITH DBMS_SCHEDULER
    NOTE: Users using 11g should use the new method of specifying a credential which eliminates many of the issues mentioned in this note.
    This guide covers several common questions and problems encountered when using
    dbms_scheduler to run external jobs, either on Windows or on UNIX.
    What operating system (OS) user does the job run as ?
    External jobs which have a credential (available in 11g) run as the user
    specified in the credential. But for jobs without credentials including
    all jobs in 10gR1 and 10gR2 there are several cases.
    - On UNIX systems, in releases including and after 10.2.0.2 there is a file $ORACLE_HOME/rdbms/admin/externaljob.ora . All external jobs not in the SYS schema and with no credential run as the user and group specified in this file. This should be nobody:nobody by default.
    - On UNIX systems, in releases prior to 10.2.0.2 there was no "externaljob.ora" file. In this case all external jobs not in the SYS schema and with no credential run as the owner and group of the $ORACLE_HOME/bin/extjob file which should be setuid and setgid. By default extjob is owned by nobody:nobody except for oracle-xe where it is owned by oracle:oraclegroup and is not setuid/setgid.
    - On Windows, external jobs not in the SYS schema and with no credential run as the user that the OracleJobScheduler Windows service runs as. This service must be started before these jobs can run.
    - In all releases on both Windows and UNIX systems, external jobs in the SYS schema without a credential run as the oracle user.
    What errors are reported in SCHEDULERJOB_RUN_DETAILS views ?
    If a job fails, the first place to look for diagnostic information is the SCHEDULERJOB_RUN_DETAILS set of views. In 10gR2 and up the first 200 characters of the standard error stream is included in the additional_info column.
    In all releases, the error number returned by the job is converted into a
    system error message (e.g. errno.h on UNIX or net helpmsg on Windows) and that
    system error message is recorded in the additional info column. If there is no
    corresponding message the number is displayed.
    In 11g and up the error number returned by the job is additionally recorded in
    the error# column. In earlier releases 27369 would always be recorded in the
    error# column.
    Generic Issues Applicable to UNIX and Windows
    - The job action (script or executable) must return 0 or the job run will be marked as failed.
    - Always use the full pathname to executables and scripts.
    - Do not count on environment variables being set in your job. Make sure that the script or executable that your jobs runs sets all required environment variables including ORACLE_HOME, ORACLE_SID, PATH etc.
    - It is not recommended to pass in a complete command line including arguments as the action. Instead it is recommended to pass in only the path to and name of the executable and to pass in arguments as job argument values.
    - Scripts with special characters in the execution path or script name may give problems.
    - Ensure that the OS user your job runs as has the required privileges/permissions to run your job. See above for how to tell who the job runs as.
    - External job actions cannot contain redirection operators e.g. > < >> | && ||
    - In general try getting a simple external job working first e.g. /bin/echo or ipconfig.exe on Windows. Also try running the job action directly from the commandline as the OS user that the job will run as.
    Windows-specific Issues
    - The OracleJobScheduler Windows service must be started before external jobs will run (except for jobs in the SYS schema and jobs with credentials).
    - The user that the OracleJobScheduler Windows service runs as must have the "Log on as batch job" Windows privilege.
    - A batch file (ending in .bat) cannot be called directly by the Scheduler. Instead cmd.exe must be used and the name of the batch file passed in as an argument. For example
    begin
    dbms_scheduler.create_job('myjob',
       job_action=>'C:\WINDOWS\SYSTEM32\CMD.EXE',
       number_of_arguments=>3,
       job_type=>'executable', enabled=>false);
    dbms_scheduler.set_job_argument_value('myjob',1,'/q');
    dbms_scheduler.set_job_argument_value('myjob',2,'/c');
    dbms_scheduler.set_job_argument_value('myjob',3,'c:\temp\test.bat');
    dbms_scheduler.enable('myjob');
    end;
    /- In 10gR1 external jobs that wrote to standard output or standard error streams would sometimes return errors. Redirect to files or suppress all output and error messages when using 10gR1 to run external jobs.
    UNIX-specific Issues
    - When running scripts, make sure that the executable bit is set.
    - When running scripts directly, make sure that the first line of the script in a valid shebang line - starting with "#!" and containing the interpreter for the script.
    - In release 10.2.0.1, jobs creating a large amount of standard error text may hang when running (this was fixed in the first 10.2.0.2 patchset). If you are seeing this issue, redirect standard error to a file in your job. This issue has been seen when running the expdp utility which may produce large amounts of standard error text.
    - the user that the job runs as (see above section) must have execute access on $ORACLE_HOME/bin and all parent directories. If this is not the case the job may be reported as failed or hang in a running state. For example if your $ORACLE_HOME is /opt/oracle/db then you would have to make sure that
    chmod a+rx /opt
    chmod a+rx /opt/oracle
    chmod a+rx /opt/oracle/db
    chmod a+rx /opt/oracle/db/bin
    - On oracle-xe, the primary group of your oracle user (if it exists) must be dba before you install oracle-xe for external jobs to work. If you have an oracle user from a regular Oracle installation it may have the primary group set to oinstall.
    - On oracle-xe, the extjobo executable is missing so external jobs in the SYS schema will not work properly. This can be fixed by copying the extjob executable to extjobo in the same directory ($ORACLE_HOME/bin).
    - Check that correct permissions are set for external job files - extjob and externaljob.ora (see below)
    Correct permissions for extjob and externaljob.ora on UNIX
    There is some confusion as to what correct permissions are for external job related files.
    In 10gR1 and 10.2.0.1 :
    - rdbms/admin/externaljob.ora should not exist
    - bin/extjob should be setuid and setgid 6550 (r-sr-s---). It should be owned by the user that jobs should run as and by the group that jobs should run as.
    - bin/extjobo should have normal 755 (rwxr-xr-x) permissions and be owned by oracle:oraclegroup
    In 10.2.0.2 and higher
    - rdbms/admin/externaljob.ora file must must be owned by root:oraclegroup and be writable only by the owner i.e. 644 (rw-r--r--) It must contain at least two lines: one specifying the run-user and one specifying the run-group.
    - bin/extjob file must be also owned by root:oraclegroup but must be setuid i.e. 4750 (-rwsr-x---)
    - bin/extjobo should have normal 755 (rwxr-xr-x) permissions and be owned by oracle:oraclegroup
    In 11g and higher
    Same as 10.2.0.2 but additionally bin/jssu should exist with root setuid
    permissions i.e. owned by root:oraclegroup with 4750 (-rwsr-x---)
    Internal Error numbers for UNIX on 10.2.0.2 or 10.1.0.6 or higher
    If you are not using a credential and are using version 10.2.0.2 or higher or 10.1.0.6 or higher you may come across an internal error number. Here are the meanings for the internal error numbers.
    274661 - can't get owner of or permissions of externaljob.ora file
    274662 - not running as root or externaljob.ora file is writable by group or other or externaljob.ora file not owned by root (can't switch user)
    274663 - setting the group or effective group failed
    274664 - setting the user or effective user failed
    274665 - a user or group id was not changed successfully
    274666 - cannot access or open externaljob.ora file
    274667 - invalid run_user specified in externaljob.ora file
    274668 - invalid run_group specified in externaljob.ora file
    274669 - error parsing externaljob.ora file
    274670 - extjobo is running as root user or group

    Hi Ravi,
    Can you help me...
    Hi All,
    I planned to create a job to do rman backup daily at 04:00 AM.
    1. I created a program as follows
    BEGIN
    DBMS_SCHEDULER.CREATE_PROGRAM(
    program_name => 'rman_backup_prg',
    program_action => '/u02/rmanback/rman.sh',
    program_type => 'EXECUTABLE',
    comments => 'RMAN BACKUP');
    END;
    my rman script is
    #!/usr/bin/ksh
    export ORACLE_HOME=/u01/app/oracle/product/10.2.0/db_1
    export PATH=$PATH:/u01/app/oracle/product/10.2.0/db_1/bin
    /u01/app/oracle/product/10.2.0/db_1/bin/exp rman/cat@catdb file=/u02/rmanback/rm
    an_220108.dmp log=/u02/rmanback/rman_220108.log owner=rman statistics=none comp
    ress=n buffer=400000
    compress *.dmp
    exit
    2. I created a schedule as follows
    BEGIN
    DBMS_SCHEDULER.CREATE_SCHEDULE(
    schedule_name => 'rman_backup_schedule',
    start_date => SYSTIMESTAMP,
    end_date => '31-DEC-16 05.00.00 AM',
    repeat_interval => 'FREQ=DAILY; BYHOUR=4',
    comments => 'Every day at 4 am');
    END;
    3. I created ajob as follows.
    BEGIN
    DBMS_SCHEDULER.CREATE_JOB (
    job_name => 'rman_backup_job',
    program_name => 'rman_backup_prg',
    schedule_name => 'rman_backup_schedule',
    enabled=> true,
    auto_drop=> false
    END;
    While I am running the job I am getting the following error anybody help me.
    ORA-27369: job of type EXECUTABLE failed with exit code: Not owner
    ORA-06512: at "SYS.DBMS_ISCHED", line 150
    ORA-06512: at "SYS.DBMS_SCHEDULER", line 441
    ORA-06512: at line 2
    If I removed "compress *.dmp" line in rman script it is working fine.
    /* additional Info from dba_scheduler_job_run_details as follows */
    ORA-27369: job of type EXECUTABLE failed with exit code: Not owner
    STANDARD_ERROR="
    Export: Release 10.2.0.3.0 - Production on Tue Jan 22 14:30:08 2008
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    Connected to: Oracle Database 10g Release 10.2.0.3.0 - Production
    Export"
    Regards,
    Kiran

  • Idoc control record DIRECT field mapping

    Hello,
    I have a file to idoc scenario where the receiver system is an external one.
    I have the necessity to set in the outbound idoc control record DIRECT = 1.
    The XI system is XI 3.0 SP 19 and I've set up the mapping of the idoc control record in the message mapping and selected Apply Control Record Values from Payload and Take receiver from Payload in the Receiver Communication Channel but the idoc is still generated with DIRECT = 2.
    In the documentation the field DIRECT is listed as one that will be filled using the message mapping if Apply Control Record Values from Payload is selected.
    How can I generate an idoc with DIRECT = 1?
    Regards,
    Elisa

    Hello Punit,
    I know that logically the right value should be 2 but the request of the receiver system is to have it as 1.
    They only elaborate the idoc they receive with DIRECT = 1 (outbound).
    In SAP documentation the field is listed as one that can be mapping with the message mapping but the idoc adapter is ignoring the mapping even when the Apply Control Record Values from Payload is selected.
    Regards,
    Elisa

  • External control over vst's; or some kind of midi learn

    I'm moving this post from Audition Feature Requests to here, 'couse nobody ansewer anything..
    External control over vst's; a midi learn-like
    I'm not really shure if AA3 have it or not, but I can't find the way to get control of parameters on third part plugins with my BCR2000.. (rotary control)
    I can use my midi keyboard to play Vsti
    I can use my Mackie for the main mixer...
    But what about the capability of automatise, for example.. a feedback level's delay whit some rotary external midi hardware?
    Maybe it is possible and I don't know, but I can't find the way to do it searching in AA3... I neither can't find info on internet forums..
    I'll be very grateful if anyone say something about it
    Thanks!!
    Nico

    Hi Nico,
    Currently, Audition offers no direct support for controlling VST parameters via MIDI, although there are VST effects that handle MIDI control themselves.  It is a feature I'd like to see, and it is currently in our feature database in consideration for the next release of Audition.
    Durin

  • CM:  control counts in a BAI-formatted bank statement file

    Hi,
    Having a dispute with the bank. We're currently using the bank's propietary bank statement file. We're trying to move to one of the standard formats, in this case, the BAI (actually BAI2) format. So we're testing their BAI-formatted bank statement file.
    However, one of the control counts in a test file is off. Oracle CM is flagging this. The total credits control count in the file is not the same as counted during the processing of the file by Oracle CM. At issue are float adjustment transactions which are in the file but not counted in the file's total credits control count, re: BAI type code 100 in record type 03 contains the total credits control amount and the total credits control count.
    Float adjustment transactions are described as credit detail transactions (which have a BAI type code of 397). They are non-monetary transactions and thus their associated credit amount is 0. Are these transactions part of the total credits control count? Per BAI specs, I believe that they are counted.
    Thanks, Mike

    Some more information:
    - this is first bank statement for this account
    - i've tried setting up rules that map the external tcodes to various processing types with same result
    I think it's simply calculating the opening balance by subtracting the Total Credits from  the Total Debits.
    Opening Balance       532.573,91-
    Total Debit             3.721,99
    Total credits         536.295,90
    Closing Bal.                0,00
    Is this normal behavior?

  • Encoder Clk and Direction with BNC-2120 and 6251 M Series

    I'm trying to measure the angular position using optical encoder connected to LS-7084. I have connected CLK to PFI3 on BNC-2120 and UP/DN to PFI4. I created two tasks using DAQmx. one task to get the direction and the other to get the counts. I have a problem with passing teh information from the first while loop to the count option on the second task. please advice. Thank You
    Attachments:
    Measure Angular Position V5.vi ‏100 KB

    I don't have LV at my network PC and can't open your vi now, but can offer this:
    There's a different method to configure your measurement with a single counter task so that the board's hardware accounts for the Direction bit.  To measure a Clock and Dir type of incremental position signal, you actually do *not* configure the counter to measure encoder position.  You configure it to count edges, and then use a DAQmx Channel property node to further specify that the count direction is controlled by the Dir signal found at PFI4.  The right property is probably found several sub-menus deep in the property hierarchy.
    It'll definitely be better to let the hardware deal with this for you than to try to manage the complexity of two simultaneous tasks.
    -Kevin P.

  • Can I use ARD to control my mac with Back to my Mac service?

    Can I use ARD to control my mac with Back to my Mac service?
    The with Back to my Mac service on you see your mac in the Shared column, hit Share Screen & your good - on ARD I don't see my remote Mac listed anywhere in that program.
    Thanks

    ARD, to the best of my knowledge, does not work via Back To My Mac. Certainly it's not an direct or obvious feature, though I can't say that there might not be a workaround I've not heard of.

  • How to control report direction at runtime

    Hi All
    I want to control report direction(Left_To_Right or Right_To_Left) at runtime.
    to make every thing is clear I want to call the report from Form passing parameter ,according the parameter the direction should be directed

    Yes, it work and I was know it, for this reason I emphasis that I created control at "DESIGN time", I want to change the direction of controls that created at design time not creating at runtime with var tf:TLFTextField = new TLFTextField();
    To reproduce the problem create TLFText on your scene with text tool and name it "MyText" then
    var tf:TLFTextField = MyText; // instead new TLFTextField();
    ..rest of your code
    now you will see that nothing will be change! I struggled many hours but still no success.
    Do you have any idea in this case?

  • Read Archive Object direct with Offset

    Dear all
    i need to access an invoice into the Archive. I know the archivename and the offset.
    I open my archive and this works well. Now i have not found a possibility to access directly to the right object with the right offset.
    I use now the FM ARCHIVE_GET_NEXT_OBJECT and check the offset, but this takes a long time on big archives. How can I access the object directly with the offset?
    Herbert

    Hi Jorge,
    If you want to read the data for reporting or
    control purposes, you have to write a report, which reads data from the archive files sequentially.
    Alternatively, you can also use the Archiving Information System (AS). This tool enables you to define an
    InfoStructure, and create reports based on these InfoStructures. The InfoStructures define an index for
    the archive file data. At the moment, the archiving process in the BW system does not fill the
    InfoStructures during the archiving session automatically. This has to be performed manually when
    needed.
    Another way of displaying data from the archive file is by using the ‘Extractor checker’ (TCODE RSA3).
    Enter the name of the export DataSource of the respective data target (name of the data target preceded
    by ‘8’), and choose the archive files that are to be read. The extractor checker reads the selected archive
    files sequentially. Selection conditions can be entered for filtering but have to be entered in in internal
    format (e.g. 20011130 for date 30.11.2001).
    Anup.

  • Is this how i control frame rate with IMAQdr property node?

    Is this how i control frame rate with IMAQdr property node? if not, can someone point me in the right direction? for some reason, it doesnt work..
    Attachments:
    pic.JPG ‏75 KB

    Please see this related thread http://forums.ni.com/t5/LabVIEW/IMAQdr-Property-No​de/m-p/1642950/highlight/false#M590168
    Matt
    Product Owner - NI Community
    National Instruments

  • Want to control the direction of a simple dc motor

    i am using a NI cDAQ 9472 to control the direction of motor with the help of a motor driver L293D by generating a pwm signal. I am able write the code for one direction of the motor, but how to write the code to control both directions of motor

    venky@4 a écrit :
    i am using a NI cDAQ 9472 to control the direction of motor with the help of a motor driver L293D by generating a pwm signal. I am able write the code for one direction of the motor, but how to write the code to control both directions of motor
    You didn't provided much information, we don't know what your code looks like and how you connected the L293D. Typically you would have to reverse to polarity of the outputs feeding the inputs of the L293D (1A, 2A or 3A, 4A).
    Ben64

  • BAM Data Control - Group query with Active Data Service

    Trying to get a group query from a BAM data control to work with Active Data Service in an ADF application (JDeveloper 11.1.1.4.0).
    With a flat query, as the data changes, I can see DataChangeEvents fired, resulting in a data push to the client -
    <BAMDataChangeEventFilter> <log>
    #### DataChangeEvent #### on [DataControl name=CEP_Person_DOB_Flat, binding=data.view_mainPageDef.FlatDOB1.view_pageDefs_FlatDOBViewPageDef_WEB_INF_FlatDOB_xml_FlatDOB.QueryIterator]
    Filter/Collection Id : 1966
    Collection Level : 0
    Event Id : 5
    ==== DataChangeEntry (#1)
    ChangeType : INSERT_AFTER
    KeyPath : [2157, 0]
    InsertKeyPath : [null, 0]
    AttributeNames : [id, _PersonKey, _County, _Surname, _AGE, _DOB, _Country, _FirstName]
    AttributeValues : [2157, 10008/129, Vagzukarbsm, Gnnfzxxyqfgpsijcr, 110, Thu Dec 26 00:00:00 GMT 1901, Ekcqvrkoksr, Vwhm]
    When I try a group query on the same data, currently just trying to group by _DOB for every 10 years to count the number of people, I get no data change events fired, so don't get any data pushed to the client, though the data has been changed if I refresh the page.
    Any ideas ?

    can you include bam and jdev versions and also include exception from logs?

  • External Control in 5.5

    Am I reading the specs right? Is Adobe discontinuing support for external control in the new release????? If this is true, it is VERY DISAPOINTING as using my Mackie Control is intregral to my workflow. Also, did I read it correctly that there is NO MIDI SUPPORT as well???
    This isn't making sense.

    pbrent wrote:
    Am I reading the specs right? Is Adobe discontinuing support for external control in the new release????? If this is true, it is VERY DISAPOINTING as using my Mackie Control is intregral to my workflow. Also, did I read it correctly that there is NO MIDI SUPPORT as well???
    You seem to be falling into the trap of believing that because something isn't there at present, that its support is discontinued, and that simply isn't true - although it might well be for MIDI. The true situation is is quite simple; It is that there are several things not present in the new release that were present in 3.0.1, but that does not mean that they won't be replaced or upgraded in the future - except perhaps for MIDI, in which Audition would always be playing catch-up, and which isn't strictly neccessary in audio software anyway. As has been stated before, Audition isn't music programming software like Cubase, etc, it's audio software. Music software generally has all sorts of other things in it to clutter it up, and if it's music production you want to do, you are far better off with software dedicated to that task anyway. People apparently have a lot of success using Reaper for multitrack music recording, and using Audition as a dedicated editor for it - which seems perfectly reasonable to me.
    It was always going to be the case with this release that anybody used to using the facilities in Audition just for audio would be disappointed. I'm disappointed. But I'm not giving up on it, because I know darn well that eventually (hopefully quite soon), Adobe will realise that in order to keep the product viable at all, they will have to put audio facilities back on audio software!

Maybe you are looking for