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


Tags: NI Hardware

Similar Questions

  • 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

  • Measure the voltage and the temperature simultaneously with PCI-6281

    Measure the voltage and the temperature at the same time at the same time. However, when I put the voltage and temperature in a loop, the acquisition of voltage is significantly delayed. When I put the voltage and temperature in two different loop, none of them works.  There is an example in aid of Labview as shown. This structure works fairly quickly? In addition, how a volgate get and temperature Analog DBL 1Chan 1Samp? I check the exported excel, the first column is 0, 1 the second column contains the value of the voltage, temperature value. I wonder how can I get these two values for each scan.

    ,

    Assuming that the DAQ cards can handle it, you can set an analog trigger for the channel of the tension.  Then you just X samples to get your 100us data value.  Keep the last sample.

  • How to acquire of various AI channels simultaneously with a different range for each of them?

    How to acquire of various AI channels simultaneously with a different range for each of them?

    In LabView, I found some examples but in C it is not seem to be any.

    Or you can add channels one by one with individual instructions: the follwing code compilation and runs without error on vitual DAQ hardware:

    ERR = DAQmxCreateTask ("", &taskH); ")
    ERR = DAQmxCreateAIVoltageChan (taskH, ' Dev1/ai0', 'AI0', DAQmx_Val_Cfg_Default,-5,0, 5.0, DAQmx_Val_Volts, "");
    ERR = DAQmxCreateAIVoltageChan (taskH, ' Dev1/ai1', 'AI1', DAQmx_Val_Cfg_Default,-10,0, 10.0, DAQmx_Val_Volts, "");
    DAQmxStartTask (taskH);
    ERR = DAQmxReadAnalogF64 (taskH, 5, 10.0, DAQmx_Val_GroupByChannel, val, 10, & read, 0);
    DAQmxClearTask (taskH);

  • Triggered simultaneous acquire sessions with a single card OR-DAQmx 6363?

    Hello

    Is it possible to perform 2 or more triggered acquire sessions in parallel (simultaneously) with a single card of NOR-DAQmx 6363? If so, please give an idea how it is possible.

    Thank you

    Antony

    No, all the lines that are timed by DI material must share the same trigger/sample clock.

    Best regards

  • 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:

  • 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

  • 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!


  • Analog multichannel peculiar read problem with PCI-6014 - hardware problem

    Hi all

    I see some very special behaviors with a 6014 when I do a multi-channel analog playback.  I am revamping of existing code to a customer, which implies the passing of the traditional DAQ in the DAQmx.  Traditional DAQ does not use a system based on the tasks, my client was in the process of reading clocked by the software for only one channel at a time, depending on what signal was of interest to both.  (application is a series of tests on a control PCB who will interface with some hardware, checking the answers and tensions and others)

    When I rewrote the application using DAQmx, I created a single task that contains all of the analog inputs of the map (AI0:15).  When I am interested in a particular signal, I indexed the channel since the reading chart data.  The strings that contain the actual data are 0, 1, 3, 4, 5, 6, 7, 13, 14 and 15.  All channels are NRSE.

    One of the signals of interest lights AI7.

    When I connect the AI7 signal with an oscilloscope, I read 2.5V - which is exactly what I expect to see.

    When I read AI7 using MAX, I read 2.5V.

    When I read AI7 by itself using a single channel DAQmx reading (i.e. 1 Samp 1Chan or 1Chan N Samp), I read 2.5V.

    When I read AI7 simultaneously with all the channels that have a greater number of channel (i.e. AI8-15), I read 2.5V.

    When I read AI7 simultaneously with any channel that carries a lower channel number (i.e. AI0-6), I read 2.34V.

    ?????

    For example, if I read AI0:15, I read 2.34V on AI7.  If I read AI0:7, I read 2.34V.  If I read AI7:15, I read 2.5V.  If I read AI7:10, I read 2.5V.  If I read AI6:7, I read 2.34V.  And so on.  Any combination of playback channel which includes results AI0 AI1, AI2, AI3, AI4, AI5 or AI6 during a misreading on AI7.

    All channels read because they are supposed to, no matter what channel is included in the job.  AI7 is the only one that illustrates this behavior.

    I wrote code for the acquisition of data for 10 years now and I have never seen anything like this before. The behavior is consistent.  I am sure that it is a hardware problem with the Special Commission that I use.  That's the advice of my customer, I don't know when they bought it, but I think they have had for years.  I doubt that ever, it has been calibrated.

    I guess it's more I'm curious than anything else - what on earth would cause this behavior?

    I'll tell my client to replace the card, if really I just asked my own knowledge.


  • 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.

  • 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

  • Use of VGA output simultaneously with DVI output

    My system as a Radeon X 1300 video card. By looking at system information shows a primary and a secondary exit. My screen is connected to the DVI output, which I assume is the main. The system seems to have output VGA, which I suppose is secondary. Does this mean that I can plug a VGa device activated in the VGA output and have works simultaneously with the monitor. The specific device that I'm considering is made by VRInsight GPS device for use with FSX Flight Simulator. Any help would be appreciated.

    Hello:

    You can as far as I know, because I'm doing it now.

    I use a video card GeForce 6200 AGP, a 19 "monitor LCD Dell on DVI and a Dell LCD 17" running on the VGA port.

    Paul

  • How to read 3 analog inputs simultaneously with 6070E?

    Hello

    I wanted to read 3 analog signals simultaneously using cards of acquiring data NI PXI-6070E and Labview 2010.

    I can with success read and record the 1 signal (which you can see in the attachment), but do not know and can not find examples on how to read 3 signals simultaneously. Any help, especially a simple example would be great.

    Thank you!

    Just click on = pull down from the constant physical channel, select Browse and shift-click or Ctl-click here to add other channels. You can also type in new channels with the ai0 syntax: 2 for three continuous channels for example.

Maybe you are looking for

  • Adding attachments to the iPad mail

    I give up. I spent more time looking for how do what I mean. Can still provide a link to the site that shows how to do this?

  • I can't open google, yahoo, facebook and other sites.

    I can't open google.com , facebook.com, twitter.com, TomsHardware.com, microsoft.comand live.com (so far these sites that I know cannot be opened in firefox), it just says: server not found. But I can open the other sites (same google.co.id is OK, bu

  • OfficeJet 6830: Print head Error Message

    Obviously, there is a problem with many people.  While I remember just when I bought it, and it is even possible that I had for 6 months or a year, this print head thing is a problem, and so far, the machine worked perfectly.  I wouldn't have to go b

  • I need care from apple to help me please.

    Dear Apple Care Alhassane my name is from Thailand, I would like to apple care team to help me on my iPhone more than 6 had problem switch House as my iPhone 6 and still under warranty (not more), because I sent my iPhone to check Bar (authorized ser

  • Try to install the Update Rollup 2 for Windows XP Media Center Edition 2005 - on SP3.

    Hello All this started when my Xbox360 is dead, sent it for repair, came home another, all hung up and tried to connect to the Media Center. Of course, it did not work and the screen says to uninstall? (something), I forgot today, it has been a long