How to synchronize the signal sending and data acquiring process dynamically with one DAQ_Urgent

Dear Sir,
I am using one DAQ card to send a modulation signal (which is a signal summed by a low frequency saw tooth and high frequency sin signal) to the laser controller, and acquire voltage signal from another instrument  (It is in a same measurement system with the laser controller)?
I would like these two process happening at the same time.
In the attachment, there are two parts, one of them is signal generating program, the other one is data acquiring program, how to do like this: when I press"run", first the modulation will be sent to the laser controller immediately, and at the same time, the acquiring program starts as well...
In addition, I think my program is not complete, could you please help me check if there are any other problems with it? 
Thank you very much.. and appreciate your quick reply in advance.
Best regards,
Memorysun
Attachments:
Signals generation and lockin recording.vi ‏1227 KB

Jamie S. wrote:
Hi Memorysun,
Thank you for your post and welcome to the forums.
From your description what you want to achieve is:
 Write data to a Analog Output channel that is then recieved by the Laser
 Acquire (read) data from using an Analog Input channel (output from Laser/Instrument)
This can be achieved using a single VI with 2 seperate DAQ tasks, one the "Continuously Writes" to the Laser and the other that "Continuously Reads" from the Laser/Instrument. Can I recommend the following examples that can be found in the NI Example Finder (Help>>Find Examples>>Hardware Input and Output>>DAQmx):
 "Cont Gen Voltage Wfm-Int Clk.vi" (for continuous writing)
 "Cont Acq&Graph Voltage-Int Clk.vi" (for continuous acquisition)
The code from within both these VI's can be placed in a single VI therefore achieving the desired functionality.
Many Thanks
Jamie,
They would be better served with an example that routes the AO hardware sample clock to the source of an externally clocked AI.
Using the examples you posted will still leave them with the challenge of trying to alligh stimulus with response.
Ben 
Ben Rayner
I am currently active on.. MainStream Preppers
Rayner's Ridge is under construction

Similar Messages

  • How to get the start time and date

    Hi everyone! I have a question ,who will be glad to help me! Thanks in advance!
    As we know ,when we finish the UUT test ,it generate report . The report format maybe like"SeqFileName_Report[Time][Date]_00001.xml"
    My question is"how can I get the [Time] and [Date] in the test sequence"

    See this post.
    How To Display Time Information in Report/Results?
    http://forums.ni.com/t5/NI-TestStand/During-a-test-how-can-I-find-the-start-time-and-date-of-that/td...
    Now is the right time to use %^<%Y-%m-%dT%H:%M:%S%3uZ>T
    If you don't hate time zones, you're not a real programmer.
    "You are what you don't automate"
    Inplaceness is synonymous with insidiousness

  • OIM: How to get the last operation and data from a child form action

    Dear OIM guru,
    I have a regular Process form, a child form and a process definition. When there is an insert/delete into child form a trigger is raised and the process task gets called. The process task does whatever it needs to do on the target system. This is all fine. However, after the task completes, lets say successfully, I want to send out an email to the user saying, for example, group 1 has been added to you or just got deleted.
    I am not able to figure out how to get that last operation and child form data. I am sure you came across this and if so please let me know how to do this.
    Thanks

    So, Can I add a similar process task with the same exact condition one more time? I thought I couldn't use the same condition again. For example, when a group is deleted can I use the process data->child data->group Id with old value check box checked on another process task?

  • How to know the User name and date, who executed the report last time.

    Hi All,
    We are collecting a list of reports which are not executed for past 3 months. Can anybody tell me how to know the username and date they executed the report last time.
    Is there any table to look ? or is there any process ?
    Thanks,
    Ravi.

    Ravi,
    Use SE16 - then look at rszcompdir.
    We look up Version = 13 for queries.
    Regards
    Gill

  • Two users on same computer how to use the same program and data

    Two users on one computer how to share a program and it's data

    As Kappy said, each of you should have your own account. By default all programs are installed in the Applications folder so all users on the computer will be able to use the software. With a few restrictions data you want to share between two users can be placed inside the Shared folder - look inside the Users folder for it. Data that gets placed in the Shared folder will retain the owner/creator's rights so if you want other user(s) to be able to do more than open the document you'll need to change the permissions of the file to include that user.

  • How to restore the default time and date?

    HI i have encountered with a problem very i have got in screen, one date field and input field TEXT Field name  i have give as the <tablename-<tablefield>> like ZFIR-DATES reason giving name like this is i want to save the date in a table ZFIR when i click save. When i am clicking save date is storeing but the problem is date is not displaying defaultly.....on the screen
    codeing part..
    DATE(10) TYPE C.
    before output screen no 100
    DATE = SY-DATUM.
    Thks

    The format of the variable on the screen needs to be the same as the global definition - if it's a date field on the screen then you should have something like
    data:
      g_date     like sy-datum.  "naming convention g = global
    and g_date on your screen as a date-type field, then in your PAI where you store ZFIR
    ZFIR-DATES = g_date.
    Jonathan

  • How to get the grn no and date

    Hi,
          from which table i can get the grn number(mblnr) and the grn date(budat).
    dinesh

    Hi,
    Try table
                    <b>MKPF  --  Header: Material Document
                    MSEG  --  Document Segment: Material</b>
    <b><REMOVED BY MODERATOR></b>
    Message was edited by:
            Alvaro Tejada Galindo

  • UML Activity Diagram does not have Signal (Send and Receive) Shapes

    I'm using Visio 2013 Professional and I created a new UML Activity Diagram.
    On the left, on the UML Activity Stencil, I have only 9 shapes. I cannot find the Signal Send and Signal Receive shapes. I have searched on the other UML diagram types but can't find them.

    Hi,
    As far as I know, the UML diagrams was released in Visio 2013 Professional. It is introducing all new shapes that look great and allow you to create modern, professional diagrams. The UML diagrams match the UML 2.4 standard, and templates are available for
    the five most popular diagram types: Class, Sequence, Use Case, Activity and State.
    http://blogs.office.com/2012/10/22/professional-flexible-beautiful-uml-content/
    Thus, if we still need to use UML 2.2 template which include:  Signal Send and Signal Receive shapes, please try the workaround:
    Copy the "UML Activity Stencil" from Visio 2010 and load it in Visio 2013.
    Regards,
    George Zhao
    TechNet Community Support

  • How to output the digital clock and synchronization signal from the NI USB-6211

    Hello,
    I need to connect the NI USB-6211 to control a digital to analog convertor chip (AD5541). However, this chip requires three input signals :1) Clock input, 2) Logic input or a synchronization signal  and 3) Signal Serial Data input (CS, SCLK, DIN).
    how to output the digital clock and the synchronization signal from the NI USB-6211?

    Hi SaberSaber,
    You should be able to use the counters to generate a pulse train that could be used for clock and synch purposes.  
    Hope this helps.  Let us know if you have more questions.  
    Dave C.
    Applications Engineer
    National Instruments

  • On the iphone4 (not s)did they fix the signal problem and if they did when did they fix it how long ago (date roughly)

    on the iphone4 (not s) did they fix the signal problem and if they did when did they fix it how long ago (date roughly)???????

    Apple has not made any changes to the iPhone 4 since its release. The over 80 million people with the phones don't seem to think there's a serious problem.

  • I have 20,00 images in my iphoto they have all been merged into one event. How do I restore them to the original events and dates? them

    I have 20,00 images in my iphoto they have all been merged into one event. How do I restore them to the original events and dates?

    Load the backup from before this happened
    LN

  • I-photo:  I used 2 cameras to take pictures on a trip --- i have put the pictures from both cameras into an album --- when i click on view and then sort by date, the pictures do not sort by date --- any ideas on how to get the pics sorted by date?

    I-photo:  I used 2 cameras to take pictures on a trip --- i have put the pictures from both cameras into an album --- when i click on view and then sort by date, the pictures do not sort by date --- any ideas on how to get the pics sorted by date?

    Select all the photos that you need to change, then click the "Photos" menu and choose "Adjust Date and Time".
    If you add a year, it will adjust all the photos that you selected by adding a year (so if you accidentally select one of the photos that already has "2012", that will change to "2013"). 

  • How to get the fixed result in a DES/CBC mode with fixed input data and fix

    How to get the fixed result in a DES/CBC mode with fixed input data and fixed key. Below is my program , I tried to get the checksum of the DESInputData with the DESKeyData, but each time the result is different.
    below is my code:
    byte[] DESKeyData = {(byte)0x01 ,(byte)0x01 ,(byte)0x01 ,(byte)0x01, (byte)0x01 ,(byte)0x01 ,(byte)0x01 ,(byte)0x01 };
    byte[] DESInputData = {(byte)0x31 ,(byte)0x31 ,(byte)0x31 ,(byte)0x31,(byte)0x31 ,(byte)0x31 ,(byte)0x31 ,(byte)0x31 };
    SecretKeySpec skey = new SecretKeySpec( DESKeyData, "DES" );
    Cipher cipher = Cipher.getInstance("DES/CBC/NoPadding");
    cipher.init( Cipher.ENCRYPT_MODE, skey );
    byte[] result = cipher.doFinal( DESInputData );

    Use class javax.crypto.spec.IvParameterSpec to specify IV for CBC mode cipher:
    // Create CBC-mode triple-DES cipher.
    Cipher c = Cipher.getInstance("DESede/CBC/PKCS5Padding");
    // Specify IV.
    IvParameterSpec iv = new IvParameterSpec(new byte[] { (byte)0x01, (byte)0x23, (byte)0x45, (byte)0x67, (byte)0x89, (byte)0xAB, (byte)0xCD, (byte)0xEF });
    // Initialize cipher with proper IV.
    c.init(Cipher.ENCRYPT_MODE, yourKey, iv);
    // Encrypt and decrypt should work ok now.
    For more info about cryptography, search the Internet for IntroToCrypto.pdf from mr. Phil Zimmerman. This document is also part of PGP (http://www.pgp.com).
    An excellent book is 'Applied Cryptography' from Bruce Schneier (http://www.counterpane.com/applied.html).
    Regards,
    Ronald Maas

  • How to get the difference of two dates in years,months and days

    Hi friends,
    how to get the difference of two dates in years,months and days
    for ex 2 years 3 months 13 days
    select (sysdate-date_Start) from per_periods_of_service
    thanks

    Something like this...
    SQL> ed
    Wrote file afiedt.buf
      1  with t as (select to_date('17-nov-2006','dd-mon-yyyy') as c_start_date, to_date('21-jan-2008','dd-mon-yyyy') as c_end_date from dual union all
      2             select to_date('21-nov-2006','dd-mon-yyyy'), to_date('17-feb-2008','dd-mon-yyyy') from dual union all
      3             select to_date('21-jun-2006','dd-mon-yyyy'), to_date('17-jul-2008','dd-mon-yyyy') from dual
      4             )
      5  -- end of test data
      6  select c_start_date, c_end_date
      7        ,trunc(months_between(c_end_date, c_start_date) / 12) as yrs
      8        ,trunc(mod(months_between(c_end_date, c_start_date), 12)) as mnths
      9        ,trunc(c_end_date - add_months(c_start_date, trunc(months_between(c_end_date, c_start_date)))) as dys
    10* from t
    SQL> /
    C_START_D C_END_DAT        YRS      MNTHS        DYS
    17-NOV-06 21-JAN-08          1          2          4
    21-NOV-06 17-FEB-08          1          2         27
    21-JUN-06 17-JUL-08          2          0         26
    SQL>But, don't forget that different months have different numbers of days, and leap years can effect it too.

  • How do you add the absolute time and date to a spreadshee​t file?

    I am creating a spreadsheet file, and I want to write the absolute time and date to its first column. Does anybody know how to do this?
    Thank You,

    BrianL answer is still valid !
    Attached is an example file with an express vi configured to use the absolute time generated from a get time/date node.
    Chilly Charly    (aka CC)
             E-List Master - Kudos glutton - Press the yellow button on the left...        
    Attachments:
    Save with absolute time.vi ‏135 KB

Maybe you are looking for

  • JAAS and Active Directory Problem

    I am attempting to use the JAAS Tutorial code to authenticate against a Windows 2000 domain controller. The code as is works against a domain controller that I set up, but when I attempt to authenticate against a client's domain, I receive an excepti

  • Optical Drive Not Recognized, CD Stuck

    I've just received my MacBook back after having it repaired for a broken Inverter cable. Ive had it since April and this is the third fault. I inserted a CD into the Slot Loading Combo Drive to rip it to iTunes, The CD was not recognised so i tried t

  • Error handling in JDBC

    Hi All, i am using store procedure to fetch the data from Oracle Data base and send the data to SAP system using PI. I get some 1,00,000 records at a timeall needs to be sent to SAP. Suppose 1 record fails either in PI or inSAP, i need to rollback al

  • IMovie '14 - importing from iPhoto

    First use of iMovie'14 since upgrade to Retina MacBook so had a quick look at a couple of YouTube tutorials which seem fairly straight forward but when I select the Import function I get a new screen with the list of my everything on my hard drive ap

  • Sweet spot MacPro line for CS?

    Dear Group, Since i got a suddenly dead G5 too, I'm suddenly wondering which MacPro might be the sweet spot for CS4 performance, now, and CS5. I'm just a typical photoshop user ranging from web to layered 300 MB files. I've been out of the loop on im