handshake with PCI 6535 DIO

Hi all

I'm a little confused on the mode (8255) communication with 6535 map protocol. I use the SCB-68 with the card connection block. So my question is really simple PFI<0..3> are control rods BLAH triger and event signal. After having read a little I am confussed which ones to use as triger and that one to use as an event. Would appreciate if you guys can refer to some examples of handshaking in card 6535.

Best regards

Hi nolsqn,

According to the documentation default installation is trigger on PFI0 and PFI1

Best regards

CaravagGIO

Tags: NI Software

Similar Questions

  • Acquire simultaneously with PCIe-6535

    Hello

    -J' use a PCIe-6535 to manage an electronic home-made (working) card. The electronic card has a FIFO used to store data.
    I need to read that data during the acquisition, and the moment for playback is defined by a product a DDS signal that
    I have to read too. I'm programming with CVILabwindow version 10.0.0.

    In the software "processes", I start the DDS, and I expect a signal(or event) I detect it with the next part of the code (thread0):

    DAQmxCreateTask("",&line_Clk_TaskHandle);
    DAQmxCreateDIChan (line_Clk_TaskHandle, "port2line3/Dev1", "", DAQmx_Val_ChanPerLine);
    DAQmxCfgChangeDetectionTiming (line_Clk_TaskHandle, "Dev1/port2/line3", "line3/port2/Dev1", DAQmx_Val_ContSamps, 1); I perceive the event UP and DOWN and up and down.
    DAQmxRegisterSignalEvent(line_Clk_TaskHandle,DAQmx_Val_ChangeDetectionEvent,0,ChangeDetectionDD3,);
    DAQmxGetTaskAttribute (line_Clk_TaskHandle, DAQmx_Task_NumChans, & line_NumLines);

    ChangeDetectionDD3 is a function that started with the acquisition of FIFO.
    Acquisition of FIFO is controlled by the following portion of the code (thread1):

    DAQmxErrChk (DAQmxCreateTask("",&taskRead));
    DAQmxErrChk (DAQmxCreateDIChan (taskRead, ' Dev1/port0","Digitalin", DAQmx_Val_ChanForAllLines));
    DAQmxErrChk (DAQmxCfgSampClkTiming (taskRead, "OnboardClock", 5000000, DAQmx_Val_Rising, DAQmx_Val_FiniteSamps, NUM_SAMP));
    DAQmxErrChk (DAQmxExportSignal (taskRead, DAQmx_Val_SampleClock, "/ Dev1/PFI5"));
    DAQmxSetTimingAttribute (taskRead, DAQmx_SampQuant_SampMode, DAQmx_Val_FiniteSamps);

    SYSEn [0] = 0;          ALLOWING the acquisition chain
    RES = DAQmxWriteDigitalLines (Task_SYSENn_Handle, 1, 1, 10.0, DAQmx_Val_GroupByChannel, SYSEn, NULL, NULL);
                
    R4T [0] = 0;          ALLOWING playback of the FIFO
    RES = DAQmxWriteDigitalLines (Task_FIFO_R4T_Handle, 1, 1, 10.0, DAQmx_Val_GroupByChannel, R4T, NULL, NULL);
    READ FIFO
    RES = DAQmxReadDigitalU8 (taskRead, NUM_SAMP, 10.0, DAQmx_Val_GroupByChannel, ftell, NUM_SAMP, & sampsPerChanRead, NULL);
                
    R4T [0] = 1;          STOP reading
    RES = DAQmxWriteDigitalLines (Task_FIFO_R4T_Handle, 1, 1, 10.0, DAQmx_Val_GroupByChannel, R4T, NULL, NULL);

    Since I have to read more than one set of data, I get in this part of the code several times (each time DDS AD9910 send a change on the RAMP_SWP_OVER of two-way continuous line signal ramp Mode RAM, in the case).

    -The problem I get is due to a resource that is already in use"when I read the FIFO through DAQmxReadDigitalU8.
    In particular:
    RUNTIME ERROR NO MORTAL: "Read_FIFO_Thread.c", line 44, col 23, 0x000014C8, int id thread id 1: function DAQmxReadDigitalU8: (is-200022 return value [0xfffcf2aa]). Resource requested by this task has already been reserved by another task. Feature: Dev1 task name: the State _unnamedTask<134> Code:-200022

    I've already simplified to the limits of the code, and I get this ERROR only when I read that both inputs line. When I run the code for a signal acquisition
    only the code works and I have read the FIFO or I read each shipment of the event by the DDS on port2/line3. I thought the problem resides on
    the countdown on the PCIe (which may not be apart as I want: port0 and port2/line3) implicitly used by functions
    dedicated to the detection of the event generated by the DDS.
    I guess the first question is: can I use the Onboard clock in this configuration?
    and if I can use how do I manage it? I mean, what do I have to configure?

    Carlo


  • synchronization of several b PCIe-6535

    Hello

    I need to synchronize all designated offices in four of the b PCIe-6535. They are all connected to the cable RTSI, operating at 5 MHz sampling rate.

    All 128 lines must begin to display the data when a single PFI trigger is received.

    What would be the best way to synchronize these four devices? The examples NOR see the concept of master/slave, but is possible better? I would like to see all four volumes in the form of an array of 128 channels.

    Can I combine all the lines in a single task and write the data to each of them at the same time?

    Thank you

    Dear Pawel

    You can use the RTSI7 line for distributing clock signals (/ SampleClock, specifically). The trigger signal can also be distributed by the RTSI. For routing all available, you can check the routes tab device in MAX. I have also experimented with this array type DAQmx configuration, please find the fixed results.

    Let me know if you have any other questions.

    Kind regards:

  • asynchronous IO with PCIe-6535e and DAQ - mx

    Hi people:

    I am trying to explicitly define and use either async or sync I/O using a PCIe-6535e DIO with DAQ - mx card. Nowhere in the acquisition of data-mx vi can I find the adjustment means either async or sync I/O. Does anyone know of an explicit vi reference say examples that I missed when this is discussed and or fix.

    Also, assuming that I learn how to set the ack/write to the map mode, which defines the functionality and the strobe effect of the PFI pin which act as out of my data / data in banner? I can see that things like width pulse, delay etc. can be defined, but how to define? Or do I have to declare another channel with DAQ - mx and these control me manually. I tried, without real success.

    For example, it would be really useful to do.

    PFx pin _________-----------___________

    xxxxxxxxxxxx XXXXXX (0xe7) line0:7

    For the data from the card.

    and

    xxxxxxxxxxxxx xxxxxxxxxxxx (0xCA) line0:7

    PFx pin ___________-----_______________

    For the data of the car. In this case I'd be strobe the PFx in my FPGA.

    I'm a bit confused as DAQ - mx does not seem to give me the command that I need to set the e/s mode, and I can't find any explicit

    mention as to who, or how to properly synchronize the features of the PFI pin with my data from my vi.

    Thank you.

    Andrew

    Hi Josh:

    After discussions with our technical help academic rep, he suggested I oversample data and incorporate the pulse in the data. I did a little twist on the idea and I have attached a vi test I did. This creates just what I need. It'll work. I got def like other options, but it's good enough for now. If I had a devil FPGA I could move the world, and I can't do the code kludgy as that I joined. I would be interested in def in what other solutions that you or someone else could lead to the hearing.

    Thank you.

    Andrew

  • DI/O cards such as the 651 x are compatible with PCIe 1 x?

    Hello

    This can be a bit of a stupid question, but it's my first outing with NEITHER and yet I somehow received some amount of responsibility for a very strange procurement process.  I hope the question is easy to answer and that will mitigate its possible idiocy.

    Are maps such as the NI 651 x (http://www.ni.com/datasheet/pdf/en/ds-105) compatible with PCIe 1 x?  Of the image, it looks like they are designed to run on PCIe 16 x, but since the speed is not a major concern, that I wondered if she settle and operate normally on PCIe 1 x.

    I am limited in contracts with a default value, extensive construction of tower PC organization, whose mother has two PCIe 16 x and two PCIe 1 x.  Since I will probably need three cards, I was hoping that it would be compatible with the PCIe 1 x slot and we would save the hassle of special purchase order form.

    Thanks for any help!

    N ° it is even not a PCIe connection.  It's PCI.  I recommend that you call your local representative of OR discuss your needs and they can help steer you in the right direction.

  • Generation of SPI by using the b PCIe-6535

    Hello

    I have a data ready signal generated every 100uS or so by a SPINNAKER of slaves.

    The SPI master must generate then 96 SPI clocks anhd captures data returned.

    The process is repeated every 100uS. The SPI 96 clocks must be completed before the next event, hence the need for an ardware or RT system.

    Would it not possible to program the PCIe-6535 b to act as the master of SPI that is to generate the clocks, store data, such as a Windows LabView program can probably pick up data without loss?

    Or I'm looking for something more like a RIO?

    References & code examples would be great!


  • State ban of the NI PCIe-6535 b

    Hello

    I make sure that my PCIe-6535 b never down all active lines at the same time, not even in the transient state or power up/down. This means hardware failure that this control panel.

    Is there a setting I can put this advice to make sure that this will be the case?

    Is there a "prohibited" State that I can configure?

    Dear Pawel

    6535 b, behavior at the start of each line is software-configurable, can be set to three States, 0V, under 2, 5V or 3, 3V. For normal operation, please make sure that the lines are in the correct state of the software. The best way in my opinion is to build an API that always performs a check of the other lines before defining an active line, then use the card only through the API. (If there are other users, you can lock to prevent overrriding audits)

    If the safty software is not applicable in your case (for example, you want to use maximum speeds possible, so there is no time for the controls, or do you need a more secure evem solution) I sugest an e minor addition.

    Kind regards:

  • docking w520 with pci-e slot, but few likely?

    Hi, is there such a thing? I have a w520 I want to put a raid or hba cards. My t61 had a dock with pci-e slot and I'm looking for something similar.

    no such thing with the ThinkPad W510, W520 W530, new.

  • IMAQ extracted buffer is suspended in an ongoing acquisition with PCIe-1429

    I acquire images of 500 x 500 pixels at 1000 FPS from a camera of the Basler A504k using a PCIe-1429 (LabView 8.6, x 64 Vista). The images are processed online, and all works - some time. From time to time the program and out of just to extract vi buffer never gets. No error is produced. I need to kill Labview and restart it to leave. I read http://forums.ni.com/t5/Machine-Vision/BUG-with-PCIe-1429-Cameralink-full-config-Basler-sprint-lines... and implementation of the proposed solution, but no luck. I followed the lost images and buffer number called and can't find any problems. My VI is attached. The images, go to a queue and treatment by another part of the program. Any help will be much appreciated.

    Thanks Vinod,

    Another thing is that the structure of your program looks a little broken. You are extracting tampons from the ring, put a reference to the image in your queue, and then going back and extract a different buffer. This means that your previous buffer is no longer checked and could be replaced, but your loop else may not have finished processing this image yet.

    While this should be causing your current problem, but I thought it is interesting to point out. I think I have two queues of the source images. One that contains free images and one that contains the populated images. You producer loop of who you've given here would consume the free queue, take in one of these images, and then place it in the populated queue. Your consumer loop would be remove from the populated queue, process the image, and then put the image in the free queue.

    Eric

  • CAN I USE PXI-8330 WITH PCI-8331

    CAN I USE PXI-8330 (CHASSIS) WITH PCI-8331 (PC)?

    CAN I USE PXI-8331 (CHASSIS) WITH PCI-8330 (PC)?

    CAN I USE OR PXI-8110 (CHASSIS) WITH PCI-8330 (PC)?

    IS CONTROLLER MUST BE THE SAME MODEL?

    Hello

    MXI controllers have a pair use, as you can see the manual on page 1-4.

    http://www.NI.com/PDF/manuals/370840b.PDF

    OR PXI-8110 is a PXI controller, so it's a computer doesn´t need to be connected to a PC using a card-MXI.

    Kind regards

    Abel

    OR Brazil

  • E3000 won't handshake with the edge router

    Recently, I bought new E3000. I place the E3000 with edge router static IP address rather DCHP which seemed failing at the same IP address and DNS. Associated with the E3000 laptops have their own IP which differ from the IP address of the border router. E3000 is configured with firewall No. minimum protection, for now. The reason for a minimum protection was to get the handshake between the two routers. The border router is a product of Verizon. The old router I was using is a Netgear who did the handshake with the edge router. I have the latest firmware for the E3000 version of the Firmware: 1.0.04)is build 6. Router will not handshake with wired connections or wireless. Used to connect to the E3000 laptop is running Windows 7 Ultimate.  In fact, all laptops here use the same OS and connect wirelessly. I've tried the package of software provided on the site, which housed a diagnosis that apparently could not solve the problem as well. I have not idea about why E3000 not handshake with the edge router. Can we make a few suggestions. Thank you to all those who respond.

    What is the IP address of the router Verizon? What you write suggests that the Verizon router uses 192.168.1.1. If this is the case, establish the E3000 as a switch simple ethernet access point as follows:

    1. disconnect the E3000 from the Verizon router.
    2 wire a single computer in the E3000.
    3. open the web interface at http://192.168.1.1/ (or whatever the IP address you put it now).
    4. on the main configuration page, make sure that your type of internet connection is on "auto/DHCP.
    5. on the same page, set the LAN IP address to 192.168.1.2.
    6. on the same page, disable the DHCP server.
    7. save the settings.
    8 unplug the computer and one of the LAN ports numbered from the E3000 wireless to your router to Verizon.

    That's all. Now, you can use the E3000 as access point and you can use the remaining 3 LAN ports for wired devices.

  • DIO with PCI-1424

    Hello friends, I have a question because I need to know what I need to buy the equipment.

    I have a PCI1424 with a camera of DALSA CA - D1 256bis acquisition card, it really works very well and fast.

    But I need to trigger the acquisition of images with an optical sensor activation.

    I have the optical sensor, and I can install the IMAQ software to wait for a signal in the RTSI bus launch acquisition.

    My question is:

    Should what hardware I buy to connect the optical sensor (object in front of the sensor) signal into the computer?

    I guess that some card DIO with RTSI bus, then I would plug the bus RTSI from the DIO card with the acquisition card RTSI bus to redirect the signal via the RTSI 1424 bus.

    Should what hardware I buy that can redirect the signal from the sensor to the acquisition card 1424 RTSI bus?

    Thanks to you all.

    Frank

    Hi frank_1424

    In fact, you can trigger the acquisition in the way you describe without buying anything at all.  1424 has four lines of triggering on the connector 100-pin.  If you look at page 3-2 of the Manual user , you can see that these are pins to 95-98.  You should be able to relax out of these lines.  If you do not want to dig your cable then yes a DIO card work for you.  If you can give me a little more information, I can make a recommendation for you.  What else could use you this card for in addition to any outbreak of your acquisition or is all that you can from the plug?

  • error-10401 with pcie-6321

    Hello

    I have the error-10401 when I want to configure a port card PCIe-6321 (3 ports of 8 bits each).
    I use the sub - vi ' DIO-configure a port.
    I checked all the settings.
    I also tested the sub - vi 'Read a digital line' and I have the same error.
    The PC used for my tests is on Windows XP and using LabVIEW 2010 SP1 and NI DAQ MX (supplied with the PCIe-6321) 9.3.5.

    Sincerely,

    This function is part of the traditional DAQ driver obsolete. Use the DAQmx functions in your palette.

  • With PCI-6229 NMI Parity error

    Currently, I'm trying to get a PCI-6229 to work with one of our lab computers. We'll use LabVIEW 8.5.1 with DAQmx 6.7.1 to program the card. Using our measurement VI owner, the computer will crash at some point (not really in reproducible way) with a blue screen saying "NMI: Parity Check / Memory parity error. All the tests of auto and examples of NOR (delivered with LabVIEW) perform well however.

    Most likely, this problem is not a RAM issue (MemTest I tried, different memory chips, different memory banks). Also, the PCI computer bus works very well otherwise (for any other acquisition cards for example). Annoying enough, the card seems to do a great job in an old and slow computer. Which is maybe something to look at? Or are there other ideas?
    Our workplace is a Fujitsu-Siemens of Celsius M460 with BIOS version 6.00 rel. 1.09 running Windows XP (32-bit version). The software to use with the card is LabVIEW 8.5.1 with DAQmx 6.7.1.

    Dear Lutz,

    I could reproduce the blue screen, and
    changed your program in order to avoid the race condition. What is
    actually happens is you want 2 tasks over time the
    AOSampleClock as a source before the task of AO started.

    When
    programming as in the example I sent you (see attachment VI), you
    shouldn't deal with this blue screen problem more. However, I recognize
    that such a thing should not happen even when it's 'bad' programming... I'm going to
    inform the development so that it will be corrected with the next DAQmx
    version of the driver.

    Merry Christmas,

    P. Lawrence

    National Instruments

  • Triggers the analogue output with PCI-4461

    Hello

    I'm trying to generate a signal of analog output triggered with a card PCI-4461. First I tried to use the feature OR DAQmx 'start analog edge' with the way analog input AI0 as the source and the channel analog output AO0 as task. After it gave an error that I tried to use the NI DAQmx 'start digital dashboard' function with PCI0 as source and channel of analog output AO0 as task. It ran, but did not produce any output. Now I wonder if I can use the trigger analog or digital of the PCI-4461 to all of the output.

    Thanks for support you,

    Pribislav

    Pribislav salvation,

    you still have this problem? I did exactly the same configuration (power play) and it works fine on my system. The PCI-4461 does not support analog triggering, that's why this error occurs.

    Kind regards

    Michaud

Maybe you are looking for