USB-6289 DAQmx delay early in the program

Hello! Anyone help me with this problem.
I have a new data acquisition is USB-6289.
I'm only looking for I multiply by a decimal factor, after putting this result on AUG.
for example
AO0 ai0 * x =
I want to do in continuous mode and in real time, with minimum delay. When I start the program, I have a time delay which varies.
How can I measure this delay time?
Anyone have an example of program to do (a simple multiplication in real time) and check where I have my mistakes.

Thank you very much.
Jonathan

I put my program and a few cards of my oscilloscope (ai0-signal ao0 drop signal)

Hi Jonathan.

The code that you downloaded was not in parallel. Flat sequence structure forces the process to the AO HAVE to wait for the update panel. You can use the "Acquisition and recording of data" model to Create... Project for a reference on how to separate the update of the user interface of the real transformation.

However, you must keep in mind that it is not possible to "simply to acquire a signal, multiply it and transmit" with DAQ hardware. This is because you must proceed as follows to get a signal and send it through the AO:

1 acquire the signal in the DAQ card.

2 send the signal to the computer via USB.

3. ask the OS and LabVIEW process the signal to multiply.

4. send the signal via USB in data acquisition.

5. the output signal.

This means that, while you can probably reduce the delay, you will always have this delay in the order of milliseconds. If you really need a shorter delay, you have a few options:

(1) I noticed that the signal you're reading seems to be periodic. If it is a periodic signal, you can enable the regeneration in the AO and drastically reduce the delay, like the acquisition of data will just get the waveform periodical and cycle it. However, if the waveform changes, you will have some glitching.

(2) use a multiplier circuit separated instead of data acquisition.

(3) use a FPGA or RIO device instead of data acquisition.

I hope this helps.

Tags: NI Hardware

Similar Questions

  • USB-6009 DAQmx meter task stops and does not restart when you restart the VI

    I have the task of counter DAQmx which "hangs up" while troubleshooting a VI and does not restart when I restart Traoré.  See attached fragment VI.  The counter works reliably in normal operation, but some combinations of interruption and running "highlighted" causes to stop work.  It's in LabVIEW 2009.

    It will restart if I close the VI and reopen it.  However, this causes losing me my window probe laboriously built with ten

    the probes.

    Is it possible to re - initialize a DAQmx task without closing the VI?

    This significantly slows the troubleshooting.

    As an alternative, if anyone can suggest a way to preserve a probe Watch window after closing of associated VI, it would be a work around.

    Please do not take into account.

    Counteract the work of task - it's the rest of the program which is hung up.

  • delay on the program

    When she gets the value I want, the program stops, but the robot continues to go for a second, then stops completely, how to get rid of this delay?

    Hello

    The image you set does not provide much to go off of, but it seems you could use LabVIEW for Lego Mindstorms.  If this is the case, I recommend posting on specific Mindstorms forum here:

    LabVIEW for LEGO MINDSTORMS and LabVIEW for education

    http://forums.NI.com/T5/LabVIEW-for-LEGO-MINDSTORMS-and/BD-p/460

    Providing the VI you use rather than a picture of the block diagram will allow people to offer the best advice.  It seems that your VI is built to stop when the sonar function returns exactly '40', but there is no way to discern what your program will do when this happens since the screenshot you provided because the sous-schema hidden within the structure of the case.  Try to post the code you have written as well as a clear description of what is the current behavior of your robot and you want it to do.

    Kind regards

  • I have vista and how to record a program to a usb port to another user who has xp to use the program

    I have a samsung program for my phone, I installed and I have vista, I want to know how to record the program on a USB for another user may install and use the program, because they have a netbook with no cd it must be saved to the usb, but the other user has xp so please can you me how to record the program on usb

    Hello

    You cannot save a program that is installed on a USB key or any other

    Once installed a program spreads during the operating system at various locations

    You must download it again and save it on a USB flash drive, then transfer it to their netbook via a USB flash drive

    or get them to download it themselves directly to their netbook so they are available on the net

    For more information on the program, contact samsung

    http://www.Samsung.com/us/support/contact

  • USB copy to reinstall the program

    I did a factory reset on my laptop. Before I did it, I back up all data and program on a USB key. But I find copy back the program from USB after resetting the program (Microsoft Works) then run. I have reinstall using the disc to install., but the DVD player does not. So could I could copy the installation from a USB disk and install from there. Thank you.

    Please note that if you do not have the actual installation files, you will not be able to reinstall the desired program. It does not copy the files installed on a USB key. You will need to reinstall it from the original installation disk.

  • the program worked in earlier versions of windows and cannot instead be performed in my windows7 version

    the program worked in earlier versions of windows and cannot instead be performed in my windows7 version

    Hello

    See this page to select your language:

    http://support.Microsoft.com/common/international.aspx

    ====================================

    Or sorry that it is area English.

    Left click at the bottom of the Microsoft Community page

    English and set your language.

    I hope this helps.

    Rob Brown - Microsoft MVP<- profile="" -="" windows="" expert="" -="" consumer="" :="" bicycle=""><- mark="" twain="" said="" it="">

  • I have Win7/64. But I don't know, how I have my USB webcam to work. The cameras settle the program will not work. Please help me!

    I have Win7/64. But I don't know, how I have my USB webcam to work. The cameras settle the program will not work. Please help me!

    Thank you more:
    Steve Vidacs /Hungary

    On Monday, November 5, 2012 20:14:15 + 0000, istvanvidacs wrote:

    I have Win7/64. But I don't know, how I have my USB webcam to work. The cameras settle the program will not work. Please help me!

    You must have installed a Windows 7 64-bit driver (if it exists)
    for this. Do you have? Otherwise, navigate to the web site of the camera
    manufacturer, search, download and install it.

    Ken Blake, Microsoft MVP

  • Try to install 9 Captivate. Mac has been extremely slow, so I had to stop and restart early in the installation process. When I try to open the installation program again, it reads "Setup Failed To Initialize. Please download Adobe Support Advisor to dete

    Try to install 9 Captivate. Mac has been extremely slow, so I had to stop and restart early in the installation process. When I try to open the installation program again, it reads "Setup Failed To Initialize. Please download Adobe Support Advisor to detect the problem. "But there is no longer the support Counsellor. How to solve this?

    Go to Adobe Captivate

  • Hello. I would like to activate my educational program CS3 (version 2007) on my new computer. Unfortunately, it does not accept my serial number. What can I do? I delayed the program on my old computer, but it does not accept the activation on the new l

    Hello. I would like to activate my educational program CS3 (version 2007) on my new computer. Unfortunately, it does not accept my serial number. What can I do? I delayed the program on my old computer, but it does not accept the activation on the new laptop.

    Make sure you use the correct serial number.  Quickly find your serial number

    If you do not disable the original installation, then it is possible that your two activations permits were used, and you need to reset your counter to activate.  For this you must contact the Adobe Support via chat and ask them to reset your activations.  If you ask for more than that they will tell you that they cannot offer you any support.

    To the link below, click on the still need help? the option in the blue box below and choose the option to chat...

    Serial number and activation support (non - CC) chat
    http://helpx.Adobe.com/x-productkb/global/Service1.html ( http://adobe.ly/1aYjbSC )

  • MAC OS Yosemite - CS6 - earlier, I did something to where when I open a file in photoshop, is no longer a single window, now it is two storage ones. one for the program itself, and another for the actual file how to return it where it's all

    -At the time, I did something to where when I open a file in photoshop, is no longer a single window, now it is two storage ones. one for the program itself, and another for the actual file how to return it where it's a window without having to be full screen mode? I managed to go a few times like this, but right now it's really annoying me. Help!

    Screen Shot 2015-01-27 at 4.15.04 PM.png

    Just drag the small window up just under the toolbar, you will see the area highlighted, and when you drop the file should anchor.

  • Runtime error example NOR-DAQmx ANSI C in the Windows 7 virtual machine

    I am under a guest Windows 7 system with a host of Ubuntu 14, using VirtualBox and have encountered a problem running even the simplest examples provided by National Instruments, using the ANSI C API for NOR-DAQmx.

    The first time that the DAQ hardware is turned on, I can run a single measure, and after that, any other indicator displays the following error message:

    Attempted to read samples that are no longer available.
    The requested sample was previously available, but has since been overwritten.
    Increasing the buffer size, reading the data more frequently, or specifying
    a fixed number of samples to read instead of reading all available samples
    might correct the problem.

    Property: DAQmx_Read_RelativeTo
    Corresponding Value: DAQmx_Val_CurrReadPos
    Property: DAQmx_Read_Offset
    Corresponding Value: 0

    Task Name: _unamedTask(0)
    Status Code: -200279

    In order to start a new measurement, I have to restart the DAQ hardware, probably in order to clear the internal buffers that are in the process of substitution.

    I am interested in a measure of continuous tension in basic by using a callback function. (The example of ContAcq_IntClk provided by OR)

    The exactly the same setup, same version of NOR-DAQmx (9.7.5) and running on Visual Studio 2012 smoothly on a computer that is running Windows 7 directly.

    I suspect that the problem is with the internal buffer being somehow messed up because of the connection with the Virtual Machine, but do not find an elegant solution to fix it.

    The camera I use is NI USB-6289.

    Hello fromm8

    Thank you very much for your help, I managed to locate the problem.

    He was not the actual code, or something like that, it was a problem of communication between the VirtualBox machine and the physical device.

    Kept launches MAX test panels a comparable as error the program C.

    I fixed the problem by opting for VMWare, which seems to have the best compatibility with USB devices.

    See you soon!

  • synchronize two usb 6289 with a meter

    Hi people!

    I'm trying to synchronize 2 boards of the series M USB-6289 using a counter.

    I searched the forum and that you've already seen the tutorials:

    'Synchronization of series M with LabVIEW and NOR-DAQmx - Developer Zone - National Instruments'

    'Synchronization of data acquisition USB - device to several systems - Developer Zone - National Instruments'

    "The time and the synchronization of the NOR-DAQmx - Developer Zone - National Instruments features."

    However, I still have some doubts (where the post with respect to the following:)

    -If I want to use the meter as trigger for both cards do I need to export to a PFI line and connect to the Member of the Board?

    -I do the same thing with the clock signal (export to the other panel using a PFI line) or using the same frequency for two meters is enough? Or both?

    -can I use the same value for the frequency in the meter and two clocks?

    Hope someone can help out me.

    If possible, underline some examples or detachment would be great.

    Thanks in advance for the help!

    See you soon!

    Hello

    All points depend on what you need to synchronize exactly.

    As you have probably already read in the links you provided, you have the option to share a trigger, or a clock, or both.

    Of course, the best solution is to share together.

    Then, you can choose to directly share the sample of one blade to the other clock (if the two sampling rates are the same), or to move the reference clock, then, both cards will synchronize their sample (with PLL) clock on the same reference clock, as shown in the synchronization M with LabVIEW and NOR-DAQmx series.

    Exactly how you want to use your meter?

    You want to generate a single trigger pulse?

    Then, for examples of synchronization, there are some zip files at the end of the links that you have read.

    Kind regards

  • USB-6289 digital output signals setting

    I use a USB-6289. I am writing a CVI application that uses this device. I need to put the digital i/o pins as outputs. In the CVI app, I know I can create these tasks with the tools-> create/edit DAQmx tasks. He created this:

    Int32 CreateDAQTaskInProject(TaskHandle *taskOut1)
    {
    Int32 DAQmxError = DAQmxSuccess;
    TaskHandle taskOut;

    DAQmxErrChk (DAQmxCreateTask ("DAQTaskInProject", & taskOut));

    DAQmxErrChk (DAQmxCreateDOChan (taskOut, "USB-6289/port0", "))
    "DigitalOut", DAQmx_Val_ChanForAllLines));
    DAQmxErrChk (DAQmxSetChanAttribute (taskOut, "DigitalOut", DAQmx_DO_InvertLines, 0));

    * taskOut1 = taskOut;

    Error:
    Return DAQmxError;
    }

    So this it puts in place but not to write the data. My question is what is the command to write the data?

    Also I was wondering if the code source of any example that shows how these commands are made? Is it possible to configure the bits individually? I only need to use 5 of these pins as outputs so t would be coll if I could write that the bits D0 - D4.

    Are there documents written on these commands and how they are used?

    Thanks in advance

    A DAQmxWrite writes the data.

    Go to help > examples > material input and output > DAQmx > digital generation.

    If you specify the lines instead of a port, you can use as the number of bits you want.

    First glance using the ICB.

  • [SOLVED] - Thunderbird constantly crashing, especially when you use Add Ons Manager, but sometimes just at the point where the program remained open.

    Hello

    I used Thunderbird earlier today, when the power is in my neighborhood. Given that the power was restored Thunderbird has been crashing early and often. I can't get the program to open unless I have rename or delete the folder "extensions" in ~\Library\Thunderbird\Profiles\ < profile name >

    It will fail immediately if I go to tools-> Addons. Finally it will crash just sitting just opened in the background. I have attached the accident below report. I'm on OSX 10.10.1

    I tried to remove and reinstall Thunderbird (to both the current and previous version)
    I have tried repairing permissions
    I tried to use Time Machine to restore the entire profile folder from before the failure.

    Any suggestions? I use Thunderbird for years and I'm very uncomfortable with it, but he might switch to the mailbox if I can't solve this problem.

    Thank you.

    AdapterDeviceID: 0 x 6720
    AdapterVendorID: 0 x 1002
    Modules: %7B972ce4c6-7e08-4474-a285-3208198ce6fd%7D:31.3.0
    BuildID: 20141127140543
    CrashTime: 1419384832
    EMCheckCompatibility: true
    EventLoopNestingLevel: 1
    FramePoisonBase: 7ffffffff0dea000
    FramePoisonSize: 4096
    InstallTime: 1419372200
    Notes: AdapterVendorID: 0 x 1002, AdapterDeviceID: 0x6720GL layers! GL context? GL context + GL layers +.
    ProductID: {3550f703-e582-4d05-9a08-453d09bdfdc6}
    ProductName: Thunderbird
    ReleaseChannel: press release
    SecondsSinceLastCrash: 22
    StartupTime: 1419384814
    Theme: classic/1.0
    Ramjet: 1
    Seller:
    Version: 31.3.0
    useragent_locale: en-US

    This report also contains technical information about the State of the application when it crashed.

    Hi djunknown0, I'm not very familiar with Thunderbird crashes, or the Mac platform, but I noticed that just before accidents Thunderbird tried to run what is called 'fbplugin' and there is a bug report corresponding referring to the "Facebook Photo Uploader' of problems on Yosemite. You will find this add-on and either disable or delete it?

  • FF8.01 how can I avoid checking the add-on which appears every time I start the program?

    In Firefox 8.01, whenever I start Firefox, a box appears indicating that the program checks to see if my addons are compatible. There are currently 3 who are not, and this box simply delays the start of the program to tell me the same thing whenever I start Firefox. Most annoying. Is there any way I can prevent the display of this box, or reduce it to once a week or once a month?

    Can you check this number 9 of Firefox?

Maybe you are looking for

  • 10.11.6 kernel Panic on early 2013 MBP

    Hello friends Mac,. I have improved my beginning 2013 15 "MBP OS X 10.11.6 the other day and now I feel constantly kernel panic until I can't use my Mac for more than a few minutes. I recorded the last report of the accident and noted below. I hope o

  • HP Office Jet 7310: 7310 HP Office Jet 0x886996ba error Code

    What does this code mean... 7310 HP Office Jet 0x886996ba error code...   It appears on the small screen on the printer itself. I tried uplugging and restart the printer, but nothing seems to work... Help... Anyone know what this could be? Thank you

  • Backup Win XP does not recognize my external hard drive

    Windows XP Backup Wizard does not recognize my external hard drive and does not list it as an option for storing backups.  I suspect a registry problem because the backup wizard previously recognized this drive and saved on it several times before I

  • ISE: Auth on the ad group

    Hello I am trying to get ISE to check if a computer is in a specific group to Active Directory and then allow based on this information. I connected ISE to Active Directory and the domain.com/Users/Domain group computers successfully added and then,

  • Last week I updated my computer Windows 10. Since that time my DC Acrobat creates is no longer the PDF.

    My DC acrobat does not work to create PDF files in Windows 10!It worked perfectly with windows 7, but now it appears opened the print screen and the window "Save as", but there is no file, PDF or other location that I taped.I tried this several times