How not to set default PFI as inputs to the and door to the counter 0?

Hi, community of NOR.

I have problems on a DAQ 6212 trying to serve in the PFI12 and PFI13 and door of the input for the meter to 0 signals.

My application must simply measure the time difference between the two edges of awareness of two signals attached to PFI12 and PFI13.

Data acquisition sends me the following error message when I run my program.

***************************************************************************

DAQmx error: specified route can not be satisfied, because it requires resources
that are currently in use by another way.
Property: DAQmx_CI_TwoEdgeSep_FirstTerm
Property: DAQmx_CI_TwoEdgeSep_FirstEdge
Source device: Dev1
Terminal of source: PFI10

Resources in use by
Source device: Dev1
Terminal of source: PFI12
Target unit: Dev1
Destination terminal: Ctr0Aux

Task name: T3

State code:-89137

***************************************************************************

My code looks like this. (Please note: the world of NI DAQ, being totally new to me, my code comments could be the problem):

************************************************************************

#define DAQmxErrChkTest (functionCall) if (DAQmxFailed (gErrorTest = (functionCall))) goto error; on the other

gErrorTest of Int32;
float64 f64readDelay;
TaskHandle taskHandleT3;

Create a task

DAQmxErrChkTest (DAQmxCreateTask ("T3", & taskHandleT3));

Connect PFI12 to the boot entry storytelling 0 (correct?)

DAQmxErrChkTest (DAQmxConnectTerms ("/ dev1/PFI12 ', ' / Ctr0Aux/dev1", DAQmx_Val_DoNotInvertPolarity));

Connect PFI13 to the entrance to stop tell 0 (correct?)

DAQmxErrChkTest (DAQmxConnectTerms ("/ dev1/PFI13 ', ' / Ctr0Gate/dev1", DAQmx_Val_DoNotInvertPolarity));

A measure of separation of two edge channels join task3. Configure the advanced metrics.

DAQmxErrChkTest (DAQmxCreateCITwoEdgeSepChan (taskHandleT3,

"/ dev1/ctr0."

"",

0.001,

5.0,

DAQmx_Val_Seconds,

DAQmx_Val_Rising,

DAQmx_Val_Rising,

Community salvation OR,.

I myself had the answer for the problems described.

Maybe this code may be useful for you

The code fixed (in blue) is as follows:

#define DAQmxErrChkTest (functionCall) if (DAQmxFailed (gErrorTest = (functionCall))) goto error; on the other

gErrorTest of Int32;
float64 f64readDelay;
TaskHandle taskHandleT3;

Create a task

DAQmxErrChkTest (DAQmxCreateTask ("T3", & taskHandleT3));

This is not necessary

DAQmxErrChkTest (DAQmxConnectTerms ("/ dev1/PFI12 ', ' / Ctr0Aux/dev1", DAQmx_Val_DoNotInvertPolarity));

This is not necessary

DAQmxErrChkTest (DAQmxConnectTerms ("/ dev1/PFI13 ', ' / Ctr0Gate/dev1", DAQmx_Val_DoNotInvertPolarity));

A measure of separation of two edge channels join task3. Configure the advanced metrics.

DAQmxErrChkTest (DAQmxCreateCITwoEdgeSepChan (taskHandleT3,

"/ dev1/ctr0."

"",

0.001,

5.0,

DAQmx_Val_Seconds,

DAQmx_Val_Rising,

DAQmx_Val_Rising,

Tags: NI Hardware

Similar Questions

  • How can I set default values to set the Mode in the config of the AO?

    Hi, how can I set default values to allocate mode in the config of the AO. To be precise, in the attached vi, I need to set the Mode allocate in the AO Config to ' use FIFO memory (6) ' if the value inside the structure of my case is false and 'no change (0)' if the value inside the strusture case is true.

    Create two constants for Mode allocate input (right click > create > constant). A place in the real case of the structure of the case and place it in the case of false. Their son in the same tunnel (border of the structure of the case), then the tunnel of wire to the pole to allocate the AO Config Mode. I do not have traditional DAQ installed, but who should do it.

  • How can I set up a group messaging of the "to...". "box?

    Original title: 360 outlook e-mail

    When I start a new Email I get 5 options on the left of the address bar.

    How can I set up a group messaging of the "to...". "box, I can implement the individual but I'm confused about how to create a group and share with others on my network

    To help you effectively, we need to know exactly which e-mail system you use.  You can see the differences here

  • How can I set a certain web page automatically start and open when I connect Windows?

    How can I set a certain web page automatically start and open when I connect Windows?  My company as a "Home Page" that I would like it to appear when I connect Windows.

    Hello.

    Yes, you can do it. The only way to do this is to create a startup items.

    STEP 1- Make sure that the home page is set correctly

    Second STEP- Creating a startup items

    How to create a startup items:

    1. Right click on the shortcut of browser (Internet Explorer, Mozilla Firefox, Google Chrome), then click on copy.
    2. Open the start menu, click all programs.
    3. Right click on the startup folder, click Explore.
    4. Right-click on an empty area of the Windows Explorer, click Paste shortcut.

    STEP 3- Restart the computer to apply the changes and see the effect

    Response to see if it helps.

  • How can I set up a digital input task to read continuous samples?

    I am trying to create an exclusively digital task that will make digital readings at a rate timed by the material using a PCIe-6509. However, when I try to put the task timing as follows (which works on a PCIe-6509), I get the following error:

    Requested value is not supported for this property value. The value of the property may be invalid because it is in conflict with another property.

    Property: NationalInstruments.DAQmx.Timing.SampleTimingType

    Required value: NationalInstruments.DAQmx.SampleTimingType.SampleClock

    Possible values: NationalInstruments.DAQmx.SampleTimingType.OnDemand, NationalInstruments.DAQmx.SampleTimingType.ChangeDetection

    Task name: DigitalInputTask

    State code:-200077

    The relevant parts of my code are:

        public class DigitalInputReader: IDisposable
    {
    public DigitalInputReader()
    {
    dataReadyHandler = new System.AsyncCallback (DataReadyEventHandler);

    daqmxTask = new DigitalInputTask();
    daqmxTask.Configure (Globals.NI);

    daqmxTask.Control (TaskAction.Verify);
    daqmxTask.Control (TaskAction.Commit);

    daqmxReader = new DigitalMultiChannelReader (daqmxTask.Stream);
    }

    public class DigitalInputTask: task
    {

    public DigitalInputTask(): {base ("DigitalInputTask")}

    public virtual void Configure (NiConfiguration niConfig)
    {
    <= niconfig.digitalinputs.count="" -="" 1;="">
    {
    String physicalChannelName = niConfig.Device + "/ port" + niConfig.DigitalInputs [i]. Port.ToString () + "/ line" + niConfig.DigitalInputs [i]. Channel.ToString ();
    String nameToAssignToChannel = niConfig.DigitalInputs [i]. Name;

    DIChannel ch is this. DIChannels.CreateChannel (physicalChannelName, nameToAssignToChannel, ChannelLineGrouping.OneChannelForEachLine);
    c. InvertLines = niConfig.DigitalInputs [i]. InvertLines;
    }
    var signalSource = "";
    This. Timing.ConfigureSampleClock (signalSource, Globals.MachineSettings.SampleRate, SampleClockActiveEdge.Rising, SampleQuantityMode.ContinuousSamples);// Globals.MachineSettings.SamplesPerChannel);
    }
    }

    The last call to Task.Timing.ConfigureSampleClock, it's which throw errors.

    Of the options available, or SampleTimingType.OnDemand or NationalInstruments.DAQmx.SampleTimingType.ChangeDetection provide the same precisely timed calls that I am familiar with the analog input interruptions.

    How is it possible in a digital task?  I mean, it seems that I could set up another task to do call by material for the production of a clock signal and use the ChangeDetection synchronization mode, but this seems a bit complicated for what should be easy to do.  What Miss me?

    Update: I thought about it.  You cannot call ConfigureSampleClock when the digital input card is a device of 650 x, because these devices have any automated examples of clock.  They are configured to run in mode default finite samples.  You must make all sample synchronizing with these devices in the software.

    Be cautious, however, because the .NET timers ensure they put any faster than their scheduled interval.  In practice, they are usually 5 to 10 ms slow by tick.  This means that if you want to read samples every 100 ms by sample clock, you'd end up reading all 108 ms samples.  All counters based on the elapsed time and number of samples would be away after a few seconds of it.

    Instead, you must do one of four things: write a doggone driver that runs in ring 0 and interfaces with the PCIe card in the required interval (i.e. on NC, not you, in practice), tolerate the inclination of the clock, use a multimedia timer as an interruption audio or video that is more likely to respond to the correct interval, or , my solution, an accurate clock allows you to set the interval of the timer.  I wrote the following code to the timer:

    var CorrectiveStopwatch = new System.Diagnostics.Stopwatch();
    var CorrectedTimer = new System.Timers.Timer()
    {

    Interval = targetInterval,
    AutoReset = true,
    };
    CorrectedTimer.Elapsed += (o, e) =>
    {
    var actualMilliseconds =;

    Adjust the next tick so that it's accurate
    EG: Stopwatch says we're at 2015 ms, we should be at 2000 ms
    2000 + 100 - 2015 = 85 and should trigger at the right time
    var StopwatchCorrectedElapsedMilliseconds = newInterval +.
    targetInterval-
    CorrectiveStopwatch.ElapsedMilliseconds;

    If we're over 1 target interval too slow, trigger ASAP!
    <=>
    {
    NvelIntervalle = 1;
    }

    CorrectedTimer.Interval = NvelIntervalle;

    StopwatchCorrectedElapsedMilliseconds += targetInterval;
    };

    I hope this helps someone.

  • How can I set up an automatic reply to the messages that I can not answer because I'm missing?

    Don't want incoming when I am out of the country, reloaded emails on my blackberry for each incoming e-mail.  So with an atomatic answer that I can not answer would help that shoot.

    I don't see what that has to do with Vista can I or WIndows mail.  Usually, go you to your mailbox, which is located on a server, not on your PC, directly from the Blackberry.  I don't know anyway to have an automated response to messages that arrive in your Inbox on the server side and it is likely that your Blackberry will see little matter what type of response automated you have.  If I was faced with this situation, I would create a Google Mail account, set up my original (server side) account for messages automatically transfer to the gmail account and ignore gmail until my back account.  You can have your original mailbox to send an automatic response, if you want to, because it transmits incoming messages to other mailboxes mailbox.  Your Blackberry should not see the outgoing messages from the server.

  • How can I set default for document splitting process?

    Several times a day I have to split a document into smaller documents using bookmarks as the top-level file name, so that set a target directory.  Is it possible to establish these responses so that I don't have to go through the repetitive keystrokes same every time?

    Try to use the feature of Actions for repeatable processes you need to do.

  • How can I set default values in the Labview Advanced Settings the TestStand step settings tab to run a VI on a remote PC?



  • How can I set up my printer again without the disc?

    HP Pavilion dv7 Notebook PC

    I installed the disk to install my printer wireless with my computer 2 years ago, it is printed. I moved and can not find the disk and I am trying to print on my printer from my computer but not print how can I do to make it print again?

    Mariem wrote:

    I tried this and asks me to connect a usb cable from the computer to the printer and I do not have that it came with a.

    You can pick up a USB cable at almost any computer store or from the Radio Shack.  I get mine for $1 at the Dollar Store...

    To post a new topic see this video.

    The network administrator is the person who set up your network.  For home networks, it would be generally you; If it was a workplace there would likely be a computer scientist responsible for adding devices to the network.

  • How can I set up to dual boot Windows 7 and XP on 2 separate drives?

    I have a new hard drive and a new DVD Windows 7 Ultimate 64-bit upgrade. I want to keep my old hard drive with the ability to work under XP. Can I just install my new drive in any open slot, and then start from my DVD? I'll be able to start on the player of my choice? How does with the marking of the readers? And it defaults to Windows 7 whenever I start my computer? How I will be when you start the disk with XP?

    Hi ohyanet:

    Since you are using a version of 'Upgrade' of Win7 it will assume the license of the prior XP operating system and the Microsoft EULA says that you can no longer use your XP operating system on any computer.  To dual boot with XP'd you need to buy a version "full" of Win7, not an upgrade.  When you install Win7 it will make a copy of XP called Windows.old in your drive (C :) and you can copy the files from it to your new O.S. of Win7, but you will need to re - install all the applications from the original media.)

  • How can I set up a wireless connection with the Gateway desktop computer?

    I recently buy Gateaway computer (CPU) Office. But it says in the user guide that you can configure the Wi - Fi connection

    but I can, t able to put in place. In fact I, m trying to establish a wireless connection for printer. I want to download wireless

    drivers. You can solve my problem. MY PC model number is:-SX2110G if may be able to solve my problem, I will be happy with you.

    Contact technical support
    http://paapp.Acer.com/findsystem/FindSystem.aspx?title=contact+support&brand=gateway

    You have the right drivers for your machine and your operating system?
    http://support.gateway.com/product/default.aspx?modelId=4522.------

    You have a wireless router for your computer to connect via?

    Set up a wireless router
    http://Windows.Microsoft.com/en-us/Windows/set-up-wireless-router#set-up-wireless-router=Windows-8

    What it takes to set up a home network
    http://Windows.Microsoft.com/en-AU/Windows-8/what-you-need-Setup-home-network

    Connect wirelessly to the Internet with Windows 8
    http://www.Dummies.com/how-to/content/connect-wirelessly-to-the-Internet-with-Windows-8.html

  • Setting default value for selectOneChoice when the Page loads

    BPM JDev 11.1.1.5.0

    I have a selectOneChoice component bound to a BPM data control. You need to set a specific value as the default value when the page is loaded for the first time.

    I did the scope of the bean managed as pageFlowScope.
    Then created a variable of string in the bean called 'postal code' and its setter I wrote like:

    You can follow this approach as well. But when you call the countryCode setter? You must set the value of the variable string.

    Then, I used your code in the jspx page.

    You need to edit my code in the jspx you use a managed bean. The code will change as below.

    
       
           
       
     
    

    I was suggesting to use a variable of pageFlowScope as defined in my previous code snippet. And on pageload, set this variable. To find out how to write/execute java code before page loads refer to this post:
    http://www.baigzeeshan.com/2011/05/How-to-run-Java-code-on-every-page-load.html
    In the afterPhase of the post method, you can set the variable pageFlowScope as shown below.

    AdfFacesContext.getCurrentInstance().getPageFlowScope().put("countryCode", "IndiaIN");
    
  • How can I change default then whare clase on the ViewProject

    I HAVE a VIEW OBJECT 'myVacationsVO '.
    select start_date,enda_date,vacation_type
    from vacations
    where emp_id = :p_emp_id;
    In the ViewController project, I have a managed bean that contains some attributed one of the is "empId".
    public calss EmpBean{
    
    private int empId;
    
    public int getEmpId(){
    return empId;
    }
    
    public void setEmpIdint empId;) {
            this.empId; = empId;
     }
    In my page I drag and drop the VO of the datacontrol 'executeWithParamatrer '.

    My question is
    How to set the value by default when the clause of the VO on the viewController project be #{bean.empId}

    Hop it is what you want: {message identifier: = 9952600}

  • HOWTO set default directory of FRA with the backup file format?

    First of all, Happy home at all!


    My database uses default FRA - Flash recovery area, also:

    db_recovery_file_dest = C:\oracle\product\10.2.0/flash_recovery_area

    SQL & gt; list of archive logs
    Database log mode Archive Mode
    Active AutoArchive
    Destination of archive USE_DB_RECOVERY_FILE_DEST
    More old sequence of journal online 14
    Log sequence archive 16
    Current log sequence 16

    1. now, when I say:
    RMAN & gt; basis of data backup;

    Oracle, create and place the file backup in the directory of the FRA, exm:
    C:\oracle\product\10.2.0\flash_recovery_area\ORCL\BACKUPSET\2009_01_10\O1_MF_NNNDF_TAG20090110T161353_4PKGSKYR_. BKP
    All right!


    2 but I don't like the name of OMF file generated, I say:
    RMAN & gt; backup of database format 'DD_%d_%s_%u.bkp' TAG = "MyTag01";


    RMAN put the backup file NOT in FRA directory (such as 1), but now in C:\oracle\product\10.2.0\db_1\database, exm:
    C:\oracle\product\10.2.0\db_1\database\DD_ORCL_42_1AK4FI9L. BKP


    Question: How can I tell RMAN place FRA default directory backup file - area recovery Flash, but using special own format, no OMF?

    Thank you

    If you read from here,
    http://download.Oracle.com/docs/CD/B19306_01/backup.102/b14191/rcmconfg.htm#i1009784
    >
    Creating RMAN in the Flash recovery area files

    This section describes RMAN commands or implicit actions (such as backup of control file) that can create files in the flash recovery area and how to control whether a specific command creates files there or in some other destination. Support in all cases, is that a flash recovery area has already been configured for your database. The commands are:

    BACKUP

    Do not specify a FORMAT of the BACKUP command option and do not configure a FORMAT option for backups to disk. In such a case, RMAN creates backup and copies image elements in the area of flash recovery, with names to the name format for Oracle managed files. >
    If you want to use FRA, you will have to live with OMF, because that's the way it works. If you want to give names of manual backup, it would be on a different location, but not on FRA.
    HTH
    Aman...

  • I deleted my Firefox sync account. How can I set up a new account on the same device?

    Now, when I open Firefox and go to tools, there is only the option "Synchronize now" rather than the "Set Up Sync" option. My account is permanently deleted, b/c "Unable to locate your account" Sync response (s) if I try to sync. How to set up a new account on this same device synchronization? Thank you.

    Hi cloudinoakland, go to Preferences > tools > synchronize and untie your device. You should then get the opportunity to implement synchronization and create a new account again.

Maybe you are looking for

  • Help! Cannot find Mozilla Firefox Forum

    Once connected, I found the link 'Ask a Question' and the 'Article' section before the forum discussions. Is the only way to access the discussion forum by scrolling on the 'Contributor Tools' link and clicking on "Support Forum" House? How can I vie

  • DV7-4276nr: dv7-4276nr device HPQ0004 unknown

    DV7-4276nr device HPQ0004 unknown Have a moment difficult to find the right driver, ive installed the software of quick launch, driver USB Media Reder, still no luck. Anyone know what driver I need? http://support.HP.com/us-en/drivers/selfservice/HP-

  • Change the sample DAQmx and Terminal configuration mode

    Hello I'm studying 'Timing and synchronization features of NOR-DAQmx' from the following link,. http://zone.NI.com/DevZone/CDA/tut/p/ID/4322 Could someone tell me how to Figure 2, Terminal configuration entry in the part "DAQmx virtual channel creat?

  • DVD RW drive (e :)) don't read do not all disks)

    I have a Dell Studio Windows Vista. The DVD RW drive (e :)) does not.) Regardless of the type of disc that I put in, my DVD player does not recognize. When I go to 'My Computer' to open the disc manually, a message appears telling me to insert a disc

  • Unable to send or receive in Outlook. Error message indicating both directions

    Error message received 0x800CCCE, mail.optonline.net Port 25 SMTP server secure SSL, no. Error 1060 socket. Error sending 0x800C0133, same mail.optonline.net POP 3, Port 110