Detection of changes in PCI-6509 missing first data entry

Hello

I have two 6509 cards in separate computers, connected to each other. I use six lines, with one channel for each line, to send signals between the two boxes.

I used the driver NOR-DAQmx 8.0.2 on SUSE Linux, coded in C.

Starting by examples of digital I/o that I did a card pass in four lines and the other card received the signal, using the detection of change on the falling edge only, with the lines reversed.

To send a signal it took the value 1 on this line, using digital lines of writing and then set it to 0 using the same function.

If I send 4 signals, apartment of 100 ms, 1 on each line. The recipient will detect all four edges of falls, but the function of reading digital lines (in the recall of events highlights registed) returns zero for the first detection. I read only one sample of each line. Once that happens all seems fine.

I read that more than a sample for the first digital reading for function call?

What I have to do my signal longer, for the moment it comes to 150us? I can do this with an expectation in the code. I can afford it to streatch for about 1 ms, but it's always with this kind of treatment.

Is there some call the initialization to get the driver to initialize the internal memory or something? (Maybe it's my wrt slow code, but I don't see how, there is almost nothing.)

Thank you

I think we arrived at the conclusion that this card cannot detect as close as 450ns interruptions. The API does not quickly that detect enough them between the interruption and the call to read data lines.

It seems that we should have brought a card counting rather than a map of interruption.

Tags: NI Hardware

Similar Questions

  • Detection of changing DIO PCI-6035E

    CVI 8.1

    PCI-6035E

    Ex: ReadDigChan - ChangeDetectionEvent.c

    When I try either configure a DAQmx task in this application example or MAX

    I get this error:

    Error: Requested value is not supported for this property.

    Property: SampTimingType

    You asked: change Detection

    You can select: on request

    I am creating an application in which a task DAQmx monitors

    a single bit of DIO via an asynchronous callback function.

    Any ideas?

    -Chet

    Chet,

    Please post on the Forums of NOR. I was able to look into the problem you encounter and this is because the E series devices do not support ownership of change detection. If you simply try to monitor a bit, you will need to use polling to determine when the forest has changed and then perform an action, once you determine that the ILO has changed. Let me know if you have any other questions.

  • To detect a change in a Variable?

    Hi all

    I can detect a change in variable (a string of data)?

    I do an AS2 SWF (level 7 Player) with navigation of the combobox control.

    I have a page name variable that I change from outside the SWF with the Director and Authorware using (I think) FlashVars.

    The variable (internally) is set by default when SWF is initialized.

    Authorized external variable values are always one of the combobox data field values.

    The combobox default variable is not always the index 0 (zero) position. Or the order of the data or the other.

    The variable can be modified internally in combobox nav used to independent navigation of the external variable. -It works

    When the nav var shared changes of the external source, the ComboBox must change for the variable game data to combobox corresponding. That's what I'm trying to do.

    I can change the drop-down list Configuration programmatically (index), but failed to recognize him as a change event. Or tell him by programming

    The combobox control can be selected by the data variable, or is the only option to use the index (loop index values to match the variable data field)?

    And update the selection combobox (and therefore the nav page) by triggering a change by programming event?

    Detect the var itself without the OnEnterFrame turn change is my goal - if it even works in the version I use (flash palyer 7).

    Thank you

    Jim

    You can use watch(). I have not used for some time, so you will need to check the documentation.

  • Fourth card PCIe-6509 undetected by MAE

    Summary:

    Measurement & Automation Explorer detects not only the fourth card of the NI PCIe-6509 installed in an HP Z800 workstation.

    Description of the problem:

    After the installation of three cards of the NI PCIe-6509 and startup of Windows 7 (64 bit), Measurement & Automation Explorer (MAE) shows three cards.  Device Manager (DM ' Microsoft Windows) also shows that three "acquisition devices data' labeled ' PCIe-6509".»  After the closure of the PC, installation of a fourth map and start, MAE shows another three cards with the same names of devices as before, but one of the devices now displays the serial number of the fourth card.  DM 4 now shows 'Materials of Acquisition of data' labeled ' PCIe-6509 ".»  Three devices MAE report Bus numbers corresponding to three of the DM, property values 'bus '.  These bus numbers 0 x 3, 0x1C and 0 x 60.  The fourth DM has a value of property 'Bus' of '0 x 28 '.

    To try a new hardware detection, I removed all the cards and removed the MAE devices, then reinstalled the cards one by one.  First, I installed the card that was not previously reported to the MFA.  After the installation of each of the first three cards, the MAE has reported each additional device.  During the installation of the fourth card, MAE has reported only three devices, with the third unit indicating the serial number of the card of the fourth.  This is the same behavior, such as observed at the start.

    Issues related to the:

    Why does Measurement & Automation Explorer detect all four cards at the same time?

    Is there a limitation in the driver or the MFA which translates a number of maximum card of three?

    Measurement & Automation Explorer System Information

    Operating System (OS) professional
    6.01.7600 OS version
    News of the BONE
    Processor Intel Xeon processor X 5677 3.47 GHz / Intel64 family 6 model 44 Stepping 2 / GenuineIntel / 3458 MHz
    Number of processors 4
    3.98 GB of RAM physical memory
    Drive C:\                           428 GB on 465 GB of free
                                       
    National Instruments software: Version:
                                       
    CVI Run-Time 9.1.0.428
    NOR-DAQmx Device Driver 9.2.3f1
    NOR-DAQmx ADE 9.2.3 support
    NOR-DAQmx Configuration 9.2.3 MAX
    IVI Compliance Package 4.2
    LabVIEW Run-Time 2010 10.0.0
    4.7.4f0 Measurement & Automation Explorer
    Measurement Studio Visual Studio 2005 support - see the different versions below.
    DotNET
    9.0.20.362 common
    OR PXI Platform Services 2.5.6
    Software OR-PAL 2.6.2
    LabVIEW SignalExpress 4.0
    NEITHER spy 2.7.2.49152
    System OR Configuration 1.1.3f0
    NI-VISA 5.0
    NI-VISA run-time 5.0
    LabVIEW 8.2.1 Run-Time 8.2.1
    LabVIEW Run-Time 8.5.1 8.5.1
    LabVIEW 8.6.1 Run-Time 8.6.1
    LabVIEW Run-Time 2009 SP1 9.0.1

    Vary the order of card insertion while maintaining the slot filling order (location 1-> 3-> 4-> 7).  With the insertion order of original card (serial numbers A-> B-> C-> D), MAX reported after each insertion A-> A, B-> A, B,C -> A, B,D.  By repeating the sequence with swapped third and fourth cards (A-> B-> D-> C), MAX reported after each insertion A-> A, B-> A, B,D -> A, B,C.  So I conclude that the failure is in correlation with the slot (insertion order or position) and not correlated to the card.

    Connect the hard drive power connector.  When connecting the power supply to the cards in slots 4 and 7, with the cards in slots 1 and 3, MAX always also detects the only cards in slots 1, 3 and 7.

    Remove the cards.  A configuration where MAX detects cards in slots 1, 3 and 7 and does not report the card in slot 4, I removed the map into the Groove 4.  MAX continued to three newsletters in slots 1, 3 and 7.  Then I restored the configuration of four cards, and then I removed the cards in slots 4 and 7.  MAX continued to report the three cards, and each reported card self test failed.  This is the first time that MAX has reported more devices that are currently installed in the computer.

    Remove the database from the MAX.  With the cards in slots 1, 3, 4 and 7, I followed the instructions suggested to remove the potentially corrupted Max database.  For the first start following removal of the database, MAX recognizes all four cards!  All cards self-test successfully.  Yet, when starting, MAX recognizes only the cards in slots 1, 3 and 7 and reported the device to the card in the slot 4 as missing/deleted (white icon, cannot reset or self test).  MAX continues to present the card in slot 4 as missing or deleted after the additional boots/reboots.  This behavior supports the theory that MAX is corrupt its data base.  To work around this supposed corruption, the user must delete the database before you turn off the computer and reconfigure the devices from the start of the computer - unwanted resolution.

    The use of the niche Vary.  I have the cards installed in slots 1, 3, 4 and 5 (leaving empty slot 7 instead of slot 5), removed the MAX Database and start the computer.  MAX has recognized all four cards, as expected from previous experience.  After the restart, MAX continued to report all such cards as detected.  The table below shows the failure and the working configuration, including details of the bus of each slot.  With this configuration work, our software detects and uses the four cards.

    Recognition of map 4 MAX
                          ___FAILS___ ___WORKS___ 
    Slot 1: PCIe2 x 8 (4) PCIe-6509 PCIe-6509
    Slot 2: PCIe2 x 16 (8) NVIDIA NVIDIA
    Slot 3: PCIe x 8 (4) PCIe-6509 PCIe-6509
    Slot 4: PCIe2 x 16 (8) PCIe-6509 PCIe-6509
    Slot 5: PCIe2 x 16 empty PCIe-6509
    Slot 6: other other PCI
    Accommodation for 7: empty PCIe2 x 16 (8) PCIe-6509

    Thank you, Frank, for your support and expertise.  Together, we found a working configuration for our application.

  • PCIe-6509 register level programming: cannot access the ASIC slave

    I'm running one of the RPL (boardBringUp.cpp) examples using the RTX operating system.

    The program crashes when I try to access the STC3 ASIC "slave".  When I try to read the signature ASIC slave when I try to access the OID or ports starting at port 6 which is the first port on the slave STC3.

    Any ideas on what to try?

    I just noticed that the RTX operating system layer was not modified to work with the PCIe-6509. The layer of the operating system allocates only byte 0 x 40000 for retgisters of the card. The problem is that the notebook for the STC3 slave register is 0 x 40004, the origin of the problem. You can change the osiUserCode.cpp to allocate more memory to bar0. I recommend 0 x 80000.

    Thank you

    Steven T.

  • Digital reading Pulse with PCIe 6509

    Hi all

    I'm trying to decode an infrared control using the PCIe 6509, but I've no chance that a signal from a remote control. It seems that when I use the VI of change detection, it does not generate the interrupt, but it cannot produce enough it fast to create a template to use with the reading VI Daqmx. Does anyone know if something like this is possible? The idea is to make the PCIe 6509 generate a digital output signal for each key different on the controller.

    Thank you!

    Kenny

    Arduinos are often used.  There are a few boxes to software tools out there like LIFA and Lynx.  Then you just need a serial port to communicate.

  • PCI-6509 in DAQmx configuration

    Hello

    We plan to use a PCI-6509 for state change detection. Our system will receive a signal on a line from a source and then relay to another system. We intend to do in Linux using the ANSI C DAQmx drivers.

    The manual indicates that the card is configurable by software. I have looked at the DAQmx and think I understood the concepts of tasks, lines, channels, ports.  I can put the contours of state change detection, by following the examples provided.

    Please make sure that the two things are happening on our outing.

    (1) the default state of the line is high (so applogies didn't quiet terminology right), 5V. When send us output to the bottom line, we need the signal drops to 0V (or like).

    (2) the signal pulse width output should be at least, but ideally, 500ns.

    Is it possible to configure the card for that?

    If it is could someone provide some clues on where to look in the DAQmx drivers / a link to an example appropriate, it would be a great help.

    (Don't mind working stuff myself, but there is a lot to go and it is difficult to know where to start)

    Thank you

    Hi, thanks for the response.

    No I was not linking to change the power of the State. I think the property to reverse lines will do what I want in terms of getting the signal in the right way round.

    > The best time you can expect will be approximately 1ms.

    OK, useful info. Thank you. It's what we need at this speed.

  • Detection of changing DAQmx online PFI (unbuffered)?

    Hello!

    I'm developing a detection of change on a line of digital input to a software event trigger.  I use the PCIe 6321 DAQ board.

    It works well with an IO line buffered (i.e. any line of port0, see extract of code). However, as I need the lines buffered for other tasks, I would use one of the lines, PFI (port 1 or 2).

    Now, if I use for instance port1/line2, I get error-201062: "selected lines do not support buffering operations. Ensure that lines are supported buffering operations are used in the task. If you use the calendar to change detection, the task should be replaced by without buffer to support these lines. »

    So, is there a way to make the detection of change on a line without buffer?

    I have searched the web for help and resources, but did not find anything useful.

    I would be happy to advice or suggestions.

    Best regards

    Sebastian

    No, only non - PFI port 0 lines will support the detection of changes in hardware.  Otherwise, you're stuck with the search on ports software 1 or 2, with a limited time resolution and no guarantee to catch all the changes.

    -Kevin P

  • Reinvest a presentation Manager and detect any changes in size

    Hello

    I am trying to create a user interface that mixes elements I draw myself with native widgets and I do this by substituting the painting and drawing to an image in the background before drawing the fields themselves.

    To position the fields, I created my own Manager and position fields in absolute position based on my own component positions. For the base case works very well...

    When I type in a field, it grows, I do not detect this growth so I can not ebb the user interface. How can I detect a change to the default size of the field? I followed the field muddy/Sales status but that doesn't seem to help here is a picture of my test case, white in the middle is a native field and find it me difficult to follow its growth in real time:

    When I start the native UI scroll fields remain in place, I tried calling invalidateLayout, but it throws an exception? How to trigger the IU blackberry to call sublayout again?

    That's what I mean fields are now on top of my drawn text box:

    Thank you

    Shai.

    Yes, I noticed that you implement LWUIT. Two big thumbs up!

    First of all - don't spend just a new Manager (...) as a parameter in your full screen (I hope you meant that when you wrote FullCanvas).  Create a handler that is personalized with its own sublayout() and do the work there. In this way, you will be able to instantiate this Manager custom rather than writing the same code over and over again.

    Second - substitute object it inside the Manager, not the screen.  Not necessary, but once again - for the best control.

    Third - It's weird that sublayout of your Manager is not called automatically, but you can force it anyway:

    // in your MyClass:
    protected void sublayout(int width, int height) {
      layoutDelegate(width, height);
    }
    

    Have not tested but it should work.  This way, you should be able to rearrange and re - position your fields in the same manager that has all the knowledge, he needs.

    One problem remains, though - how are you going to partially show these fields when they slide to the edge of the screen?  I hope that you can set negative positions for them. Documentation for the manager class specifies all IllegalArgumentException on negative x and y in setPositionChild, so you might be lucky .

  • Right-click menu changed: used to be the first "Open link in a new window", "Open link in a new tab" second; in 4.0, the opposite is true. Can I customize 4.0 to switch back?

    Right-click menu changed: used to be the first "Open link in a new window", "Open link in a new tab" second; in 4.0, the opposite is true. Can I customize 4.0 to switch back?

    To change the order of these items, use the following:

    You must update the following (your versions have known security problems):

    • Shockwave Flash 10.2 r152
    • Next-generation Java plug-in 1.6.0_22 for Mozilla browsers
    1. Check your plugin versions on one of the following links:

    2. Update the Flash plugin to the latest version.
      • Download and SAVE to your desktop, so you can find the Setup program later
      • If you do not have the current version, click on the "Player Download Center" link on the 'download and information' or 'Download manual installers' below
      • Once the download is complete, exit Firefox
      • Click on the installer, you just download and install
        • Windows 7 and Vista: will need to right click on the installer and choose 'run as administrator '.
      • Launch Firefox and recheck your version or up to the download link below to test the installation
      • Download and information: http://www.adobe.com/software/flash/about/
        • Use Firefox to go to the site above to update the Firefox plugin (will also install the plugin for most other browsers, except IE)
        • Use IE to go to the site above to update the ActiveX to IE
      • Download manual installers.
    3. Update the Java plugin to the latest version.
  • M40 PCI - device missing...

    Hello

    I have a Toshiba Satellite M40-135 (France version), I installed all the drivers CD of drivers, but there are still some PCI device missing :( Where to find the driver for the device in PCI (opus system Win XP).

    Thanks for informative and soon the answer.

    Hello, Axel

    It is not easy to say on this path, device that is not recognized and properly installed. Check it please this interesting article http://support.microsoft.com/?kbid=298837. I hope it can help you.

  • E/s PCI-6509 direction bit by bit

    I am writing to the low-level code to use the card PCI-6509.  I already did it for the PCIe-6509.  However, the code DDK, I downloaded doesn't seem to allow me to select the input/output direction of an individual bit... it seems to be in groups of 8 - bit only.  My understanding is that the PCI-6509 Board is supposed to allow individual control, I/O direction (as does the Commission PCIe).  Can someone help me.

    Thank you.

    Hi Jwstonge

    Unfortunately, the 6509 PCI Variant can be configured port-to-port, not line-by-line.

    Ce Ko gives a list of what devices are supported online configuration.

    The PCIe-6509 is built on a different architecture than the other form factors.

    Kind regards

    Luke B.

  • Problem with detection of changes in a loop

    Hey,.

    I have a NOR-9423 module in a cDAQ chassis (not to mention that of other modules), and it is used for the detection of change for a binary input. That's a little busy, coming from an engine step by step via a digital i/o. I want to enqueu a certain task when the busy bit goes from low to high and another task when it goes from high to low.

    The problem is that my VI everything stops and waits for detection, as the error did not go through.

    If I put a - 1 for the timeout, then of course everything block also, since reading that VI waits indefinitely change.

    So basically, all I have to do is detect a change of edge and put an appropriate task in the queue.

    Any help, thanks...

    You must move the "beginning of entry trigger" and the associated logic (enqueue) in a separate loop. This will allow the logic to run its own while you wait for a trigger to start upper.

  • Detection of change DAQmx - cancel the event error logging

    I am trying to use DAQmx for detection on some digital lines of changes. I think I installed everything in this article, but I always get error 'Error 1 has occurred to unregister events in the detection of change in Test - Error.vi Unregister'. When I change the structure to register for another event, not involving DAQmx but using the same structure, I get this error.

    I need this implementation on a code that runs for a very long time and according to the above article:

    "Use the Unregister function for events and function to destroy the user events to release the associated events and the reference of user event. LabVIEW unregisters all events and destroyed the existing user automatically events when the top-level VI end of execution. However, to conserve memory resources, National Instruments recommends that you unsubscribe and destroy the user events explicitly, especially in an application that is running for a long period of time. »

    Here are some screenshots of my comic, but also the .vi. Note that the detection of real change does not work well, it's just after I click on 'stop' I get the error generated by the "unregister to events.vi.

    Note When you transfer the .vi, I saw the issues described on this thread and had to change the name of the file...

    crossrulz wrote:

    You must cancel the registration of the event before deleting the task DAQmx.

    Delete the task implicitly cancels registration of events.  If you disable the task, rather than simply cancel, the event is already cancelled and you don't need two nodes.

    Or quite simply, the event is part of the job.  no tasks, no event and LabVIEW cleans the records for the non-existent event.  Other events that are not 'owned' by similar of e/s Sessions must use the unregister (as of the events of user)

  • PCI.sys missing or corrupted Server R2 2012

    After the Windows updates, you now receive an error during startup which States PCI.sys missing or corrupted.  I tried to replace the file with a new copy pci.sys, ran chkdsk c:/r, and nothing seems to work.

    I have the impression that the registry is to blame, but don't know where to start

    This issue is beyond the scope of this site (for consumers) and to be sure, you get the best (and fastest) reply, we have to ask either on Technet (for IT Pro) or MSDN (for developers)
    *

Maybe you are looking for