Coincide the start of digital and analogue tasks in c#

Hi all

I cannot synchronize the start of an analogue and digital output special in c#. Specitifically, I created a task master analog output and output a task digital slave that uses the sample of the task of the AO clock. Everything works fine except there is always a random between signals delay because they are triggered to start separately in the software. I would like to start both tasks with the same trigger signal.

I think that I should do something like:

digitalTask.Triggers.StartTrigger.ConfigureDigitalEdgeTrigger("Dev2/ao/StartTrigger",DigitalEdgeStartTriggerEdge.Rising);

analogTask.Start ();

but DAQmx is throwing an error message saying that my source Tigger is not valid. What is the correct idea? What is the exact syntax for inputing the source of relaxation. Thanks a lot for all the help!

-Jon

Hi Jon-

If you have the sample shared between the two tasks clock, you should be able to start the slave task first, in this way when the master task starts, the task of the slave will begin taking samples on the same edge of clock.  You should not use a trigger to start.

However, if you try to import an external trigger, connect to a PFI line and specify "Dev2/PFI0' as the command source for the two tasks (or whatever the PFI line you've hooked the trigger until the).

I hope this helps.  Good luck with your application!

Tags: NI Hardware

Similar Questions

  • Error message: "the address book failed to load. Outlook Express is incorrectly configured, please re-install. "at the start of XP and the machine.

    After uninstalling my XPSp3 o.e., I started getting the following error message: "the address book failed to load. Outlook Express is incorrectly configured, please re-install. "at the start of XP and the machine.

    Uninstalling included 7 entries registry to remove all the * files dbx and files *.wab addressbook, except himself. After uninstalling and receipt of the error message above, I tried to use my CD of XP OS to re - install O.E. as a component of Microsoft without success.

    I upgraded to Outlook 2007 and imported to the address book of O.E. successfully before uninstalling.

    Please advise me how to get rid of the error message always appearing at startup.

    Thank you

    You can't really uninstall and reinstall OE without having to reinstall XP as OE is a part of it. I hope your foray into the registry does not require a reinstall of XP.
     
    You now have the DBX files? WAB files?
     
    If Outlook has been on your machine before this event, see the reference by PA Bear in this thread
    http://social.answers.Microsoft.com/forums/en-us/xpnetwork/thread/a8c8cf17-d792-481e-BCCA-13b03852a995
     
    If Outlook has not been installed, see these.
     
    All of you who have the same cause.  Something is screwed up with your address book.
     
    It could be several specific problems, which include:
    -corrupted WAB file
    -damaged or incompatible DLL files for the addressbook
    -have OE set to use the Outlook98 / 2000 + contacts instead of the WAB
    folder and there is something wrong at the end of Outlook
     
    For more details, take a look at:
     
    Error message: the Message could not be sent. Some invalid recipients
    (Outlook Express: there was an error opening this message)
    (The address book failed to load. OE is configured incorrectly)
    (Corrupted or incompatible WAB32. DLL file)
    http://support.Microsoft.com/?kbid=239135
    OLEXP: Error Message: failed to load address book
    (There was an error opening this message)
    http://support.Microsoft.com/?kbid=269777
    http://support.Microsoft.com/?kbid=310873
    OLEXP: MSIMN has caused an IPF in Module Wab32.dll
    http://support.Microsoft.com/?kbid=247706
    Error message: failed to load address book, Outlook Express is...
    http://support.Microsoft.com/?kbid=191946
    Error message: could not open address book, a component is missing
    http://support.Microsoft.com/?kbid=192321
     
    The address book Windows (WAB)
    http://www.insideoe.com/files/WAB.htm
     
    To share Contacts between Outlook and Outlook Express
    http://www.slipstick.com/contacts/oeshare.htm 
  • How can I add a program to the start selective msconfig and how to delete a startup item?

    How can I add a program to the start selective msconfig and how to delete a startup item? Once, I knew but forgot.

    Remove items not controlled in MSConfig
    http://www.PCWorld.com/article/255514/remove_unchecked_items_from_msconfig.html

    How to troubleshoot a problem by performing a clean boot in Windows Vista or in Windows 7
    http://support.Microsoft.com/default.aspx/KB/929135

  • How can I force DAC to run always full load for one of the task that executes the stored procedure? And remaining tasks load incremental in the second and sub sequent executions.

    Hello

    How can I force DAC to run always full load for one of the task that executes the stored procedure? And remaining tasks load incremental in the second and sub sequent executions.

    Thank you

    Jay.

    Hi if your task is running an informatica mapping you can set your DAC task to run the full mapping for incremental and full loads, so tab task just point to the mapping.

    Hope that helps.

    Thank you

  • How to synchronize the start of IT and relaxation the Scan list (DAQmx Switch)

    Hello

    I want to measure samples of N to the AI0 of Council NI PXI 4461. The measurement starts on a rising edge of a digital triggering provided to the PFI0 of the same Board. The measure is configured with samples of N/2 pretrigged. So far, everything is under control...

    Using an NI PXI 2567 Board, the signal applied at the entrance the 4461 (AI0) switches between a V2 and V1 signal. I would like to synchronize the switch between the two signals with the trigger signal applied to the input of the PFI0 Governing Council 4461. In order to obtain samples of N/2 of V1 and V2 samples N/2. Synchronization of 1 to 5 ms would suffice!

    My question is how to synchronize the start of acquisition of AI pretrigged of 4461 with the switch control given by the Council of 2567?

    Thank you in advance for your help...

    PS: the configuration of the system is:

    -LabView 8.5

    -Chassis PXI-1044

    PXI-4461 on slot 2

    Module 4-slot PXI-2567

    Hi Frederic,.

    I came back to this recently and used the following examples to run the desired synchronization.

    PXI-4461: Acq & graph tension-Int Clk - dig Start & Ref .vi

    Samples per channel = 1000

    Rate (Hz) = 10000.00

    Start the trigger Source = / [name of the instrument DAQmx] / PXI_Trig0

    Onboard start = fall

    Reference Source Trigger = DAQmx Device Name] / PXI_Trig0

    Reference edge = fall

    Trigger samples = Variable (100, 500, 900)

    PXI-2567: Switch Scaning-SW Trigger.vi

    Advance the output terminal full = / [name of the instrument DAQmx] / PXI_Trig0

    Scan list = / [name of the instrument DAQmx] / ch0-> com0.

    Scan list = / [name of the instrument DAQmx] / ch1-> com1;

    Hardware configuration:

    The PXI-2567 module controls an external relay that switches between the voltage of 5 V on ch0 and ch1 0 V.

    The PXI-4461 connects to the COM of the external relay and therefore reads 5V when ch0 is connected; 0 v when ch1 is connected.

    Procedure: The above examples are used in the following procedure.

    1. run the PXI-4461 VI.  A start trigger (falling edge) is necessary to start collecting samples before firing.

    2. launch the module, PXI - 2567 VI.  When ch0 is initially (and immediately) on com0, a trigger is sent to PXI_Trig0.  The PXI-4461 will begin to acquire samples before firing.

    3. - click on the "Connect to the next" button on the front of the PXI - 2567 VI module.  This sends a trigger to entry software for the PXI-2567 module and the transitions of the scan for ch1-> com1 list.  Once the PXI-2567 module remains (debounced), advanced complete relaxation is sent on PXI_Trig0 for the PXI-4461.  The PXI-4461 will begin to acquire samples after outbreak.

    Note: Instead of the trigger of the software entry, an external input trigger can be used (e.g. PXI_Trig1).

    Results:

    > Before instant release of samples = 100

    Delay is caused by the time of actuation of external relay.

    > Before instant release of samples = 500

    Delay is caused by the time of actuation of external relay.

    > Before instant release of samples = 900

    Delay is caused by the time of actuation of external relay.

    I hope that the attached screws and the explanation above helps you and/or other customers who have this problem.

    Best regards

    Chad Erickson

    Switch Product Support Engineer

    NOR - USA

  • Firefox hangs the start of solange and cannot send accident report

    Last night I was browsing the web and ended up having 300 + tabs open, FIrefox started to slow down a lot and no longer meets a couple of times. At the opportunity to close Firefox from the pop up window and choose to close Firefox, unfortunately when I tried to open Firefox again, he crashed and gave me the crash reporter and when I tried to present the report he has encountered a problem and may not send the report. I start Firefox in safe mode and works fine but when I try to restart its crashes with disabled modules still and unable to send the report.

    If you can start Firefox in Safe Mode by holding down the shift/Options button then you can try to disable hardware acceleration in Firefox.

    • Tools > Options > advanced > General > Browsing: "use hardware acceleration when available.

    You will need to close and restart Firefox after enabling/disabling this setting.

  • Firefox is acting as it comes to install every morning when I wake up. He loses the privacy settings, home page and shows the start-up firfox and firefox home.

    He also loses the addons, like personas. I tried to reset firefox and deleting the prefs.js. There is none of the other files mentioned in the article on how fix firefox does not save the settings. Every day that it starts with the Welcome to Firefox and Mozilla Firefox Start Page my homepage EVEN instead after I created my homepage and he remembers.

    Once I saved the settings they are stored for the rest of the day, but when I wake up in the next day, POOF!, firefox forget what I did. I remember stuff like my bookmarks, history and tabs pinned, but he doesn't remember my privacy settings for him is not to suggest stuff on the address of my history and bookmarks toolbar.

    As of the time of this message, I did not my settings for troubleshooting information are the status of firefox is in when I open it first from a morning. What the hell is happening?

    What security (firewall, antivirus) software do you have?

    Some security software has virtualization or sandbox features that can cause problems to protect and restore files in the Firefox profile folder.

    Create a new profile as a test to see if your profile is the source of the problems.

    See "create a profile":

    If the new profile works then you can transfer files from a profile in the new profile, but make sure not to copy corrupted files.

  • HP M9000: Black screen after the "Starting Windows" logo and the windows on the screen

    I just gave me a m9040n HP Pavilion Elite with a Q6600 CPU, graphics card ge force and two 500 GB HARD drives in.

    When I starts it up it seems to be ok the HP blue screen will lights up at the start of the BONE and displays "starting Windows" on the screen with the windows logo. and then it goes to black with just the cursor on the screen. (Vista) So I know WHAT BIOS is ok, the graphics are windows allowed from.

    I went to the HP system F11 recovery and he seems to think that all is well... Very confused ideas?

    Thank you, Glenn...

    400workstation

    It looks like one or more of the boot loader files has been corrupted.

    You need access to a PC for this phase of work in order to create the necessary support to fix your PC boot loader.

    You will need to create something called a CD-ROM of repair of Win7. This will repair the boot loader files, and if that is the problem, your PC will start OK after that.  Yes, it's for Win7, but Vista uses the same bootstrapper, so you can use Win7 to repair the Vista bootloader files.

    The file you need can be obtained (with supplement) from this link: http://neosmart.net/blog/2009/windows-7-system-repair-discs/

    When you download this file, it will be an ISO file.

    To make a CD bootable it, you will need to download and install ImgBurn: http://www.imgburn.com/

    Once you have installed, run, select the option "Save image to disk file" and select the downloaded ISO file and that it points to a blank CD.

    To make a USB bootable of it, you will need to download and install RUFUS: https://rufus.akeo.ie/

    Once you have that, it is executed in the input of the unit, use the drop down menu to select the USB stick.  Near the bottom right, where is written 'Create a bootdisk to aid', select the ISO file downloaded.
    -------------------------------------

    Boot from the media that you have created and follow the instructions in this link: http://www.sevenforums.com/tutorials/681-startup-repair.html

    You will probably need to run Startup Repair three times for him to fix all the boot loader.

    Once completed, your PC should start OK.

    If it isn't, then some files of the operating system has also been corrupted and the only way to fix it would be to perform a system recovery - which if F11 does not work, but a recovery from the PC to its original using recovery media state.

    Problem there is that HP no longer wears a recovery media for the Vista PC, so you should check to see if these sites still have it: http://www.computersurgeons.com/ and http://www.restoredisks.com/

    Good luck
    ========================================================================
    I'm a volunteer and I do not work for, or represent, HP.
    ---------------------------------------------------------------
    If my post helped you, please click on the Thumbs-Up symbol on my post to say thank you.
    If my posts resolved your issue please click "accept as a Solution.
    ========================================================================

  • Microsoft Defender is blocking the start of digital line (DLG.exe) by Avanquest Software detection

    Hello

    I use professional Vista as the operating system of my laptop.  Recently - specifically, since having started using COMCAST (cable TELEVISION) - provided internet service - I started having a condition of starting Windows in which Windows Defender gives notice it blocks a program from starting.  IDs Defender this program as: DLG.exe (Digital Line Detection), an application digitally signed by Avanquest Software.  He seems to have been (manufacturer?) installed in my computer (IBM Thinkpad/Lenovo) to 14/03/2008.  Path: C:\program files line detect\DLG.exe.  Since this notification Defender is new to me, please advise me - if you can - if it is a plu program allowed to run, its function, or if I should simmply withdraw from start-up operations to eliminate the constant defender notifications.

    Thank you for your consideration and support.  Feel free to contact me if you need additional details.

    With the best regards,.

    John

    DLG.exe is trying to detect if the telephone modem from your computer is connected to a digital line, for example a PABX .  It is safe to remove it from startup. Boulder computer Maven
    Most Microsoft Valuable Professional

  • Zoo Tycoon 2 dumpsters at the start, then freezes and crashes?

    Hello. The game starts, the opening video begins to wildly jump (video and audio sequences like a broken record), then it freezes completely. Finally, it blocks on the desktop so I leave it alone. I thought it was my copy (we just bought ultimate) so I installed our old original drive, and he did the same thing. This is a new pc, so I can't imagine what the problem is. It works perfectly fine on our old pc w / 768ram/1.9ghz/128gfx!

    I use Windows XP Pro sp 3
    I have the latest drivers for my graphics card
    2.20 GHZ AMD Athlon dual core
    1 GB OF RAM
    ATI Radeon HD3450 512 MB graphics

    I tried to change the compatibility to 98, ME and 2000.
    I tried to change the audio and video acceleration.
    I tried to uninstall, and then put it back in place + erasure from the register.
    I tried the suggestions on Microsoft Help pages.

    Any help would be greatly appreciated!

    -Edit - I just tried the trial version. It works 100% fine. It's only the full version of the game that will not start.

    Hello

    Have you recently added something new to the system?

    Follow the steps described in this document

    Game hangs or quits unexpectedly

    http://support.Microsoft.com/kb/303032/en-us

  • "" "In the start menu, 'search', and" "help" do not work, too, the restoration of the system is an empty window

    IE8 does not work and had many problems.

    This looks a lot like the MS Knowledge Base article:

    "Several dialog boxes are white."
      <>http://support.Microsoft.com/kb/831430 >

    Quoting the article:
    You may experience one of the following symptoms:

    • When you try to view one of the following dialog boxes, the dialog box appears to be empty or partially empty:

      • Research Assistant
      • User accounts
      • Windows Update
      • Help and Support
      • System restore
    • When you try to start Microsoft Windows Media Player, you may receive an "an internal application error has occurred" (or similar) error message.
    • Internet Explorer isn't able to print. When you click file, and then click print, the print dialog box does not appear. Print preview is blank.

    HTH,
    JW

  • How to get the first 6 digits and the last 4 digits of a string?

    Greetings people.

    A small question and probably quite simple for a lot of guys out there.

    I have a string which can be anywhere between 15 and 20 characters (not a fixed length)

    I can't be divided into 3 segments.
    Segment 1 : 123456 ( 6 digits )
    
    Segment 2 : Everything else in the string from where Segment 1 ends (+1) and Segment 3 begins (-1).
    
    Segment 3 : 1234 ( 4 digits )
    Any help is appreciated!

    Thank you
    select substr (str, 1, 6)
         , substr (str, 7, length (str) -10)
         , substr (str, -4)
      from test
    
  • Lost documents, music and photos on the start bar

    Right now, when I try to left click on Documents, music and pictures (located to the right of the start menu) nothing happens.  For the moment, I deleted the folder music and images.  The documents folder is always present.  When I just lick on a folder, and then open the properties, the Properties window opens.  There is nothing is not displayed.  No file name, no disk space used, not location, and additional tab.  How can I fix without having to reinstall windows?  Thank you

    Hi tip10788,

    1. did you of recent changes on the computer?

    2. What do you get if you right click a folder in the start menu?

    To recover Documents, music or photo icon in the start menu, you'll need Customize Start menu settings.

    (a) open the bar of tasks and properties of the Start Menu by clicking Start , clicking Control Panel, appearance and personalization, and then clicking the taskbar and Start Menu.

    (b) click the Start Menu tab, and then click Customize.

    (c) in the Customize the Start Menu dialog box, select the options in the list you want, and then click OK.

    Customize the start menu

    http://Windows.Microsoft.com/en-us/Windows-Vista/customize-the-start-menu

     

    Check if you can access personal records of its original location.

    C:\Users\

    I hope this helps!

    Halima S - Microsoft technical support.

    Visit our Microsoft answers feedback Forum and let us know what you think.

  • Why my drive hard Boot keep reading and writing for 20 minutes after the start?

    As the title says my HDD Boot continues to read and write for about 20 minutes after the start. Read and write up to 10 GB in the process. I would say a good way to destroy a disc. I have not seen this behavior in any other OS.

    10.10.5 OS version

    Model: Mac Pro

    ID: MacPro3, 1

    Processor: Intel Quad-Core Xeon

    Number of processors: 2

    Total number of cores: 8

    (Vivid RAM) memory: 8 GB

    Any help will be greatly appreciated.

    Thank you.

    Check Console.app and see what happens.   Could be something of a time Machine for Spotlight indexing to a process of runaway of an OS X or a bug in the application.

  • Installed Windows 7 and now can't start Wow, the cursor is frozen on the start screen.

    I tried to restart, resettlement and to plug and unplug the mouse, made sure that all the drivers are up to date! What now?

    Hi navvar,

    Thanks for posting of Windows 7 community.

    I suggest to start the system in safe mode and check if the problem still persists.

    Also download the current drivers and update the firmware of your mouse.

    Step 1: Perform a clean boot

    Note If the computer is connected to a network, network policy settings may prevent you from following these steps. We recommend strongly that you do not use System Configuration utility to change startup options on the computer, unless a support engineer Microsoft directs you to do so. This can make the computer unusable.

    a. log in the computer using an account with administrator rights.

    b. click on start to reduce this includes this ima, type msconfig.exe in the Start Search box and press ENTER to start the System Configuration utility.

    c. collapse this includes this ima if you are prompted for an administrator password or for confirmation, type your password or click continue .

    On the general tab, click Selective startup , and then clear the Load Startup items check box. (The box use the Boot file is not available.)

    d. on the Services tab, select the hide all Microsoft services check box and then click on disable all .

    Note Following this step lets services Microsoft continue to run. These services include networking, Plug-and-Play, record of events, error reporting, and other services. If you disable these services, you can permanently delete all restore points. Do not do this if you want to use to restore the system with the existing restore points.

    e. click OK , and then click restart .

    Follow the steps in the below link:

    http://support.Microsoft.com/default.aspx?scid=KB; EN-US; 929135

    Kind regards

    Amal-Microsoft Support.
    Visit our Microsoft answers feedback Forum and let us know what you think.

Maybe you are looking for

  • How to open the FolderBrowserDialog for the script?

    Hello I am building a dialog that loads the contents of the folder (all files folder by category). I know it's command to open file dialog box to select a file > FileDlgShow (...), but there is even a folder select the folder selected? Thank you

  • Superposition of LabVIEW evaluation software

    Hi, I've migrated my test environment software LabView2009 and TestStand4.2.1 to LabView2011 and TestStand2010. Test software is then installed on the target machines where is allowed only TestStand RunTime, while LabView adapters is configured to us

  • My habit of Epson print it says the printer is ready, but the document is just to feel that

    My printer does not print. I hit print and it enters Quebec and sits there.  I had to remove all those who are in Quebec and try to make a new document and nothing happens.  I turned off the printer and turned back and nothing

  • I can't add my ipod to the net

    Hello I can't add my ipod to my wrieless internet it ask for a password I do not know how to find my password can you tell me how to find Thank you

  • No dual channel sound of in the game objects

    That's the problem I have - I played only a few games because I installed Windows 7, a few weeks ago, Fallout 3, Borderlands, and Just Cause 2. This happens in the fps but not Just Cause 2. I don't hear any of the two audio channels of all objects in