High Speed Digital I/O using 6533

I would like to have a application sending out bit sequence through port0 of PCI 6533 card, and using port2 recieve those bits, then do a pattern matching.
I set the output bit pattern changes at the 10th iteration of my control loop, however, I got the changed bit pattern at lots of iteration later. I cannot figure out what happened.
I want to achieve the pattern matching in the oder of milliseconds(immediately knows the bit pattern has changed). But it seems my programs structure cannot do that. Please take a look at my program and give me some advice, thank a lot.
Best Regrads,
Stee
Attachments:
Testing_6533_buffer.vi ‏143 KB

Hi Stee,
I might have a couple ideas why your data might be delayed. But help me understand what you are trying to accomplish. Are you trying to acquire continuous data from port 2? Are you acquiring it using change detection (you want to acquire everytime there is a difference in the data)? Do you want to acquire it with a pattern match trigger?
What I imagine is happening is that you are only acquiring data every so often and the PCI-6533 card by default is transferring this data via DMA. The interesting thing about this is that if you need each sample right away transferred to the PC Memory so you can read it, it might not happen with DMA. This is because in DMA mode on the PCI-6533 the "MITE" chip that packs data for transport waits until it h
as enough samples to send. Therefore, if you are only acquiring so often, you might be trying to read the present data (which is on the board) but the MITE is waiting to pack the data and send it to the PC Memory so you can read it.
What you need to do in this case is use the Set DAQ Device Info.vi to change the transfer mode from DMA to interrupts for the second group (your digital input). In interrupt mode, as soon as you input data, it is sent via interrupts to PC Memory. This means it won't wait for a "packet" to be filled before it sends the data. This means if you are acquiring digital input at rates up to 500kHz, interrupts will allow you to get the data right away.
Anyway, let me know if I wasn't clear in my explanation. Hope that helps.
Ron
Applications Engineer
National Instruments

Similar Messages

  • Making sure Network High Speed Cable is being used

    Hey all,
    I have a quick question.
    I have a new iMac 24 inch Alum computer. I have a highspeed internet system already. My modem is both wireless and linked with cables. I have the cable linked into my Mac.
    How can I make sure that my iMac is using the 'cable' instead of wireless? In Boot Camp WinXP mode, I faster download speeds, so I 'think' that OSX is using wireless mode.
    I have Airport turned off.
    Is there a way to secure and or set to priority, the 'cable' link route?
    Many thanks...
    Loving this Mac! Its a giant iPod!!!
    Bill

    Cool.. I didnt know if it was using WiFi or some other wireless direction that I didnt know about.
    I am hearing now that others are having download issues also in OSX after the latest update. One found a cure for it at MacRumours.com where they added DNS entries and suddenly the download speeds in cable and AirPort were resolved and back to high speeds.
    Bill

  • Continuous High Speed Digital Acquire- Monitor SPI data lines

    Hi
    I need to monitor a serial interface that runs at 5-10Mhz of SPI protocol.
    I am using a PCI 6534 with upto 20MHz capability. I have access to Chip Select, Data In, Data Out and SCLK.
    Valid Data is sent when Chip Select is low.
    I have tried start trigger (ACK) when chip select low and stop trigger (REQ) when chip select high however have been unsuccessful to acquire all data.
    I need  to be able to trigger off the chip select line going low and then read digital lines (Data In , Data Out, SCLK) until chip select then goes high.  
    Once i have acquired all data (Packets of 8 bytes - 40bytes), i will then need to decode the output.
    Can anyone help please?

    Seamus
    I have previously used a 8451 device to drive a SPI circuit, however for this application i just need to monitor 4 digital lines, (i cannot interface or drive the lines i have to monitor / decode them).
    I have found many examples of acquiring data from digital lines however i need to trigger of a signal then start acquring all data on the other lines.
    I can use digital start trigger for chip select falling edge and stop trigger on the Chip Select rising edge. When trigger found data of 4 lines needs to be stored then decoded.  
    Thanks

  • High Speed Clock Signal Generation Using FPGA Ouput

    Hi,
    This a screen shot of a LabVIEW FPGA program. Here I am trying to generate 5MHz Clock signal at Connector 0 DIO12. But I get around 2MHz when I measure the signal using an oscilloscope. Would some tell me what’s wrong ?
    LabVIEW 2011
    FPGA Target  : PXI 7841
    I set DIO 12 to Nerver Arbitrate in the property setting.
    Solved!
    Go to Solution.

    I'm not certain but maybe some of the delay is happening because you are changing the mode of the pin.  According to the specs on the card it is capable of having a Maximum Clock Rate of 40MHz under the DIO section.  So if you are purely doing digital reads, or digital writes you should be able to update/read 40,000,000 times a second.  If you perform a read, which can take up to 1/40M of a second, then invert which takes some time but practically none, then another write which can take up to 1/40M of a second, your loop rate should still be faster than the 10MHz you showed.  That's why I suspect there is time involved in changing over the pin from a read mode to a write.
    If you try to do something similar with the analog you'll notice the maximum update rate is only 1MHz.  So while your logic and code can run at 40MHz you can only update the analog value at 1MHz.  Because of this in the past I have had two loops.  One running a at the maximum clock rate doing the logic calculations, and then sending the result to another loop that updates the output at the maximum rate which in the case of an analog out is only 1MHz.
    Unofficial Forum Rules and Guidelines - Hooovahh - LabVIEW Overlord
    If 10 out of 10 experts in any field say something is bad, you should probably take their opinion seriously.

  • I need a high speed digital I/O solution!

    I'm looking for the following digital I/O recording solution:
    16 channels input
    100MHz sampling rate
    Able to acquire 1 sec of data at 100MHz
    Does anyone know of hardware that can do this? I would prefer somekind of PCI card to a desktop logic analyzer.
    Thanks in advance.

    Hi,
    Unfortunately, the fastest DIO card available can not be clocked at 100MHz. Even if there is a card that can tolerate the above rate, most PCI Buses have a 132 MB/s bandwidth, and clocking data across it with the above rate is not feasible.
    Regards,
    RamziH.

  • High speed digital data display.

    I am using Labview 6.0 on Win2K. I want to develop an application that can display real-time video data at rates upto 24MB/sec. Can Labview cope with this amount of data?

    Byr,
    It all depends on what you intend to do with the data and whether you actually have a source that will bring data into LV at such a rate, but for the acutuall display protion 24MB/Sec should be cake.
    Regards,
    Amaury Rolin
    NI Applications Engineer

  • Digital start trigger and high speed camera

    Is there any particular option or way available in LabVIEW to initiate the data acquisition and high speed camera using a digital start trigger? If yes, shall I create a task for high speed camera and then synchronize it with the other tasks?
    Kind Regards, 

    Hi Helen19411,
    The way to trigger data acquisition in LabVIEW is to use the 'DAQmx Start Trigger VI'. To set this up I recommend taking a look at this example: 
    http://www.ni.com/example/25282/en/
    Without any information about the high speed camera you are using, I can't give much advice. If the device is viewable in MAX then you may be able to create a task, and so long as you synchronise both channels in your code, the digital trigger should activate both events.
    Kind Regards,
    TomS
    Applications Engineer
    National Instruments

  • How to write to DAQCard-5633 Port at high speed

    I am looking for a sample vi that allows me to write a 8 bit x n digital array out at high speeds with a DAQCard-5633 high speed digital I/O card.  I realize I need to use the traditional DIO vis, specifically the DIO Write.vi, but haven't been able to make it work yet.  I tried the sample vi I found on-line called syncDIO_32HS.vi, but that doesn't write anything out, and gives a timeout error.  I know the card works because I can do low speed DC write type operations.

    I found the solution myself.  If I am using I/O connector handshaking I need to connect REQ and ACK. I should have used internal handshaking.

  • High speed and Low Speed CAN

    Hi
    This is my first time to use CAN.
    I have LabVIEW  2010 and  LabVIEW FPGA
    I have NI 3110 Dual-Core Industrial Controller with Windows OS, NI 9157, NI 9852 CAN Low Speed Module and NI 9853 CAN High Speed Module to be used to monitor the CAN messages from an ECU unit.
    The connection is done as the following:
    ·         The High speed CAN is connected to the NI-CAN 9853 (Port 0)
    ·         The low speed CAN is connected to the NI-CAN 9852 (Port 0)
    ·         The baud rate of the 9853 is 500kbps
    ·         The baud rate of the 9852 is 50kbps
    ·         Both modules are set to “Listen Only”
    ·         “Module Clock” in both modules is set to 20MHz
    ·         CAN networks are 29-bit and 11-bit.
    My consideration is to read all the messages from both modules without losing any message. Below is a picture from the block diagram on the FPGA target, is this the best way to read CAN messages from both modules? Also, could you please suggest what is the best way to read the messages on Host vi?
    Unfortunately, I do not have the module right now to do some test, so that I cannot get the iteration time (“CAN Low Speed Loop” and “CAN High Speed Loop” show in the picture below), could you please tell how to calculate the iteration time needed for each loop depending on the above information.

    The way that you have proposed to use the CAN module to monitor the BUS is a bad idea.  We have a prebuilt driver that will do most of this work for you.  You will need to download and install the NI-CAN 2.7.3 and then you will be able to use the example finder.  In the example finder look for.
    The example finder is accessed through the Help menu.
    Jacob K || Applications Engineer || National Instruments

  • I have slow internet speed and having issue with download of photoshop cc is there an alternate I can go somewhere with high speed to download.

    I have slow internet speed and having issue with download of photoshop cc is there an alternate I can go somewhere with high speed to download. without using this creative cloud that downloads first.

    We need to know more about your system, please download EtreCheck and run the report and please post it on your next reply. Then we can see how your system is configured, what apps are on it and look for anything obvious. We will look forward to seeing your report.

  • Must I have a high speed USB port?

    Every time i connect my brand new 60 gig ipod to my computer a bubble pops up saying "A high speed device is plugged into a non-high speed USB port" Ive seen this before with other devices and its never been a problem, however with this ipod plugged in my computer freezes up, i can still click stuff and all but nothing happens, and then when i disconnect the ipod everything pops up and its like it was never frozen....very wierd, like the screen freezes when the ipod is plugged in. Anyone have any advice for me?

    No, you do not have to have a high speed usb port to use the pod or iTunes. It really does make it much faster though, but it is not necessary.
    I get the same bubble at home where I have the older 1.1 usb ports. It takes about 3 to 4 minutes to read my Pod and associate it with my PC. This happens everytime. The more you put on it, the longer it is going to take.
    On my new laptop which has 2.0, it takes 25 seconds to register everything. That's 3500 pics and 16 gigs of music; Hence you can see why 2.0 is on my christmas list for the desktop lol.
    Try giving it at least 5 minutes to fully register. The first time you do it, it always takes a long time. Also do you have any other USB things hooked up that may be conflicting with the pod?

  • High speed sampling with analog trigger

    I am a new user of DAQ card and I need to sample the analog signal with a high speed.
    I will use a sinusoidal-like wave to trigger the sampling and set a voltage around the peak of trigger wave with rising slope. When the voltage arrived, I only sample one point from CH0 or CH1. The frequency of the trigger wave is about 5MHz and I heard the LabView only works at KHz level. Is it possible to use LABView to realize my application?
    If it's possible, would you mind telling me how to realize? Or if it's not possible, would you mind telling me what to do? My DAQ card is PXI-5112.
    Thank you very much!!!

    Hello amo71993,
    I guess in this case the solution is creating the little app programatically, save it as a VI and the use it as a function (subVI). Nevertheless I will be researching to see if there is another option and I will post it here.
    Regards.
     

  • How do I use the High Speed Data Logger with multiple I/O devices?

    I am using the High Speed Data Logger vi to read from a 16 channel A/D card (NI PCI-MIO-16E). The project may require more than 16 channels. How can I use High Speed Data Logger to read from two A/D cards? Will it be able to write the data to one file?

    The High Speed Data Logger vi will not acquire and right to multiple DAQ boards at the same time without modification. LabVIEW is more than capable of doing this what you are trying to do, but you will have to modify the code.
    Regards,
    Anuj D.

  • I just set up an Optus Cisco DPQ3925 wireless router to access higher speed internet I signed up for. I have a 4th gen airport extreme I want to put in another room and use as a wifi extender the wifi but I get an error message each time I try. Help?

    Hello all.
    I have just set up a new cisco DPQ3925 wireless router that Optus sent me to be able to access the higher speed internet I have signed up for.
    I have a 4th gen apple extreme that I want to use to extend the wifi but when I try to update the settings via the airport utility I get a message that says it cannot do so, and to check it is in range and the wifi is set up correctly. I'm not experienced with these things but I can't think what I have done wrong.
    Is anybody able to help me please.

    You cannot use the AE to extend wireless from a non apple router such as your cisco modem router.. they are not compatible..
    You need to tie to the two devices together either with ethernet or something like EOP adapters.. They are about $120 and you can price match in officeworks.

  • Timeout errors when using high speed camera.

    Hi all.
    I'm currently trying to capture images using a Mikrotron EoSens MC1363 camera at high frame rates >500fps. The issue arises when the region of interest (ROI) is decreased in the microtron software (of which screenshots are attached). The ROI must be dropped in order to increase the fps. When MAX is opened and configured to match the camera settings, and grab is initiated, the timeout error occurs. I've attached screenshots of the mikrotron software, max settings, the error and PC used. The OS is windows 7 64 bit. We use the camera config file for the mono version of the camera which i've been informed will cross over to satisfy the colour version we use. Any questions feel free to ask. Thanks.
    Attachments:
    errors.docx ‏3016 KB
    997-EoSens 3CL-MC1362-Manual.pdf ‏1209 KB

    Hi Dom.
    As you said the maximum frame rate with the ROI set to 1280 x 1024 is 505fps but according to the general information for the camera series:
    The Mikrotron EoSens camera series features extremely sensitive high-speed
    CMOS sensors available in monochrome or in colour with a resolution of 1280 x
    1024 pixels and capture rates of 110 or 500 frames per second. Depending on
    the model the image data is transferred in 8 or 10 bits via either CameraLink
    (Base, Medium or Full) or Gigabit Ethernet.The region of interest (ROI) can be
    freely selected, and the cameras can achieve even higher capture rates up to
    120,000 fps when the ROI is reduced
    Therefore it was my thought that by reducing the width of the ROI increased frame rates may be reached. Realistically we're looking for as high frame rates as possible so that the camera has capability to pass between projects. Currently the moving object enters and leaves the ROI within a 4 frame window, so frame rates of up to 1000fps would generate more data. Naturally, a point will come where the data cannot be physically written as fast as it is generated (>600MBps). Therefore it would be useful to get a handle onto why the error occurs as well as methods to fix it. Hopefully the problem is being discussed between NI and Mikrotron and we may have some answers in the near future.

Maybe you are looking for

  • Mail 2.1 / Entourage/ MS Exchange

    I've searched all over the forums and Google but couldn't find the answer I needed. My company uses Exchange and I successfully setup Entourage. Public folders work, email works, calendars works, etc. The only issue I have with it still is setting up

  • I'm a happy iPhone 4 user

    Just wanted to post a non-doom and gloom topic on the iPhone. I'm loving it so far. No issues with battery life, weird yellow tint on the screen or bad reception. However, I can replicate the problem with holding my hand on the lower left side of the

  • Mapping of users to cost centres

    Hi Experts, How to mapp users as approver and substitute approvers for cost centres in PR Release Strategy Please help..... Thanks in Advance Prashanth

  • N80 with HF-3 plug-in car handsfree

    Since upgrading my Nokia N80 firmware to v4 (4.0623.0.41), the phone does not use the loudspeaker of the HF-3 when connected to it - it uses the phone speaker (the one which you hold to your ear) which makes it very quiet in the car ! The phone is ch

  • Is GB2 available as a free upgrade to GB1 owners?

    I know this may seem a silly question but I'm wondering if GB2 is available as a free upgrade to those who already have GB1, in the same way that new versions of iTunes can be downloaded for free. Anyone know? Thanks.