How to create 2 output signal locked in phase from a one input signal

Hi all,
I have a case in which I want read in a signal analog input (voltage) from a photodiode, I want to create a 2 sinewave signal locked in with same phase as the input signal and output them as analog output to my 2 laser diode. the frequency of the input signal is low aroud 15 Hz , the 2 output signal i want to be  around 120 hz and 150 hz . 
I am using USB - 6003 daq card.
I have created a vi to see the input signal but I dnt know how to create 2 signal from the waveform generator locked in the phase as the input signal. I have seen a PLL vi , but dont know how to use that with my program.
can any one tell me how to proceed.
thanks
AG
Attachments:
pulse_PLL.vi ‏27 KB

Hi AnkitG,
Here are a couple of links that might help you understand a little more how the PLL work and a way to synchronize the task to perform a PLL.
http://digital.ni.com/public.nsf/allkb/07BC8D77D4E9AE258625708B007CE74F?OpenDocument
http://digital.ni.com/public.nsf/allkb/2F675A9F2162EA24862572570059A308?OpenDocument
Also, you should be able to find a lot of examples on how to accomplish the synchronization of tasks on the community, if you consider that the only consideration is that both must start at the same moment. 
I hope, these examples might show you some useful concepts:
http://digital.ni.com/public.nsf/allkb/EBD603683446EC13862575B3006A63A2
http://digital.ni.com/public.nsf/allkb/9E71F8D7D3CD1B0886257688004AE353
Regards,
Luis C.
National Instruments

Similar Messages

  • SMARTFORM: how to create 3 copy (each copy can print more than one page)

    SMARTFORM: how to create 3 copy (each copy can print more than one page)
    Hello everyone.
    my user want to have form that print 3 copy.
    such as 1 copy description = master,  2 copy description = copy 1 ,3 copy description = copy 2.
    so i create 3 page . I copy from page 1.
    and in each page there is main window which can have data more than 1 page.(such as have a lot of sale data ,it's take 2 page for show output .so it's take 2 page in each copy)
    please help me.
    how to set page and window in each page for print 3 copy and each page can have main window that print more than 1 page

    Hello Vinit.
    thank you very much for your help.
    could you help me more please.
    in below code
      DO NAST_ANZAL TIMES.
    l_counter = l_counter + 1.  " << pass this to FM and use for the TEXT to print
    CALL FUNCTION LF_FM_NAME
               EXPORTING
                         COUNTER = l_COUNTER   " USE this to derive the text into PRINTOUT
    enddo.
    Now i out of office .so i cannot test.
    where do i set NAST_ANZAL for 3 ?
    can i input ?
    NAST_ANZAL = 3.
      DO NAST_ANZAL TIMES.
    l_counter = l_counter + 1.  " << pass this to FM and use for the TEXT to print
    CALL FUNCTION LF_FM_NAME
               EXPORTING
                         COUNTER = l_COUNTER   " USE this to derive the text into PRINTOUT
    enddo.
    Edited by: dittaporn nanasilp on Mar 12, 2011 3:33 PM

  • How to create a variance on data that exists iIn only one database column

    How to create a variance on data that exists iIn only one database column?
    I'm trying to create a calculation to show the difference between the budgets for two different years in a Discoverer crosstab query.
    I'm using the lag function to repeat the value of a column for the current year and the year before.

    Lag and lead seems to be the only choice and they work excellent. Checkout the new 10g Database features. There is new SQL modal clause which might give additional and powerful analytics but in this case lag and lead should be sufficient.
    regards
    http://www.infocaptor.com/workbook-dump.php

  • How to create an rule with action to subtract from the event log of Ips manager express console?

    how to create an rule with action to subtract from the event log of Ips manager express console?, some knows of has an guide?.
    Thank you.
    Sent from Cisco Technical Support iPad App

    Hi,
    http://www.cisco.com/en/US/products/sw/secursw/ps2113/products_tech_note09186a0080bc7910.shtml
    HTH
    Luis Silva
    "If you need PDI (Planning, Design, Implement) assistance feel free to reach us"
    http://www.cisco.com/web/partners/tools/pdihd.html

  • How to create a file under web application root from java program

    how to create a file under web application root from java program like an action class?

    like an action class?Huh? What exactly is your requirement?
    Creating a file is usually done with java.io API. Read the java.io tutorials how to play with files.

  • How to create a program that accepts 5 digits from the user between 0 and 9

    how to create a program that accepts 5 digits from the user between 0 and 9 then put them in ascending order using link-list method..

    You can use a scanner to get user input from the command line.
    import java.util.*;
    public class Test {
        private List<Integer> list;
        private Scanner in;
        public static void main (String... args) {
            new Test ();
        public Test () {
            list = new LinkedList<Integer> ();
            in = new Scanner (System.in);
            for (int i = 0; i < 5; i ++) {
                System.out.format ("Please enter a number (%d more): ", (5 - i));
                list.add (in.nextInt ());
            Collections.sort(list, new Comparator<Integer> () {
                public int compare (Integer i1, Integer i2) {
                    return i2 - i1;
            System.out.println (list);
    }

  • How to create an output file name dinamically

    Hello Experts,
    I have created a report which is pulling information from our databases then running it on demand in order to get a plained-text file (shedule function). My question is how to handle the file name?  can i use a kind of variable to reach the required name?. For your information i was using the placeholders but i sitll need to put something else in the name which is dinamic.
    I.E : Prod 2011-04-01-08-01-13.txt
    2011-04-01-08-01-13 = which is the DateTime stamp
    Prod = I want to change this part with a parameter which will bring the required name
    I'm using Crystal Reports XI
    Thanks in advance,
    Agustin Munoz

    Need more info, are you using Enterprise?
    Nothing in Cr that can do this. If you are writing and app then typically one would use a GUID ID or some sort of time stamp, be careful though with time stamps, you could end up with a few outputs if they are generated in the same minute of second...
    Thnak you
    Don

  • How to create snmp trap signal

    hello friends,
    I am going to create NMS tool for my wireless devices.
    We are using java for front end monitoring.
    For my project work, how can I create SNMP Trap signal.?
    Any examples is there.
    thank you.
    Rgds,
    ram

    There are many ways to modify the array to do what you want. One of my favorites is to use the "Insert Into Array" function. Just build an array of each waveform you wish to generate and arrays of 0 or NaN (depending on what you agilent device will accept) for the no signal gaps. Append them all together and you will have your arbitrary waveform for your generator.
    Kyle K.
    Product Manager for Product Data
    National Instruments

  • How to Create XML output for EFT payments.....?

    I am new to creating eText templates. My Understanding is to get XML output then build a template based on the XML output. Right or wrong I am not totally sure. Either way, here is what I need to accomplish and I am not sure where to start.
    (We are in R12....)
    Select EFT payments and create EFT output to send to the bank. I am looking for some guidence. Is there a generic payment program I can relate to an eft payment bank to generate the xml output? Is there a template already built for EFT payments? Does anyone out there have a solution that they are willing to share? Any guidence would be greatly appreciated.

    Figured this out on our own

  • How to create an output condition record for output type

    For SD LE shipping...
    Create an output condition record for output type
    Thanks!
    Message was edited by:
            Hoo Laa
    Message was edited by:
            Hoo Laa

    Hi Hoo,
    Follow the path.
    SAP Easy Access -> Logistics -> Logistics Execution -> Master Data -> Output   -> Shipping - > Create.
    Tcode: VV21.
    Hope I have clarified your query. Do reward if so.
    Regards
    Nadarajah Pratheb

  • A How To: Create a Widescreen High Definition Slide Show from the Organizer

    [EDIT] I just tried another one and, weirdly, that produced an output with black bars around all four sides! So maybe this 'how to' is not 100%.  I have considered deleting the post altogether but, as it does still produce a superior slideshow quality file than the standard ones provided with Elements,  I've decided to leave it with this edit added at the top for additional info.[END_EDIT]
    In answering a question in another forum I found a nice quick way to create proper widescreen high definition slide shows from just the Elements Organizer. Apologies if this is 'old news' to readers, but I've not seen this described elsewhere so I thought I'd share it.
    The Organizer Slide Show creator, if not wanting to edit in PRE, provides a small set of Windows Media Player profiles to create .wmv files. But the best of these goes only to 1024x768 (a 4:3 monitor resolution setting). I've noticed, but never paid much attention to, that at the bottom of the Slide Size box there is a 'Browse for more' option that lets you search for additional Windows Media Encoder profiles. Investigation showed me that I can download the Windows Media Encoder software from Microsoft and create my own profiles. But even further investigation showed  me that someone had already done this! I've tested their full HD profile and it works just fine (1920x1080).
    So if you are just after a straightforward slide show (i.e. not needing PRE features) but want it displayed on your Full HD TV set here is what you do:
    Download the HD Profiles from http://forums.nexusmods.com/index.php?/topic/236895-hd-profiles-for-windows-movie-maker/. There's also a couple of useful SD sizes there as well. Save them somewhere you can easily find them.
    Create your slide show in the Organizer. Obviously use appropriately sized images for HD. There's little point outputting an HD wmv file using low resolution and/or 4:3 aspect ratio images.
    Save and Output your slide show.
    In the output dialog ('Save As a File') scroll down to the bottom of Slide Size and select 'Browse for more ...'.
    Browse to the file you downloaded in step 1 and click Open.
    Click OK and your Widescreen HD .wmv file is prepared.
    Here's a Gspot analysis of my test output file. As you can see it is an HD file with a 16:9, square pixel, aspect ratio.
    Ta Da!
    Cheers,
    Neale
    Insanity is hereditary, you get it from your children
    If this post or another user's post resolves the original issue, please mark the posts as correct and/or helpful accordingly. This helps other users with similar trouble get answers to their questions quicker. Thanks.

    nealeh
    You did not mention a specific Premiere Elements Elements Organizer combo for this, so for now I will address this from the version 11, not Windows Movie Maker, perspective if I need to get version specific.
    .prx
    The Browse for More is a well known route and does offer at least one Adobe profile for 1280 x 720 16:9. I am not sure where you came up with the lesser resolution,1024 x 768 that you mentioned. The Windows Media profiles have existed for several versions of Elements Organizer. Those Adobe ones that you do not see under Output Save As A File Movie (.wmv), can be found in the Windows 7 or 8 64 bit path
    Local Disc C
    Profile Files (x86)
    Adobe
    Elements 11 Organizer
    Assets
    Locale
    en_US
    tv_profiles
    in the tv_profiles Folder are included the .prx files
    .....10. 640 x 480 Enhanced Definitions
    .....12. 852 x 480 Widescreen Enhanced Definition
    .....14 1280 x 720 Widescreen High Definition
    A homemade 1920 x 1080 16:9 30 frames per second .prx has long been sought but not that easily produced by many using with the Windows Media Encoder Editor. Apparently you have found one online, and it does get accepted into the Premiere Elements 11 Browse for More choices. And, if you do a gspot readout for the wmv output from Elements Organizer 11, it will display all the "right" properties that you hoped for and that are shown in your screenshot.
    The bottom line, why bother with the wmv slideshow? If you take your original photos and size them for 1920 x 1080 16:9, use them in the Elements Organizer 11 Slideshow Editor (Crops used in preferences), use the Edit with Premiere Elements Editor command, what you get in Premiere Elements 11 is full and good in all regard. Have you tried it?
    I can see your interest if this is HD going to HD (AVCHD on DVD or Blu-ray disc format on Blu-ray disc, but I do not see this for an Elements Organizer Slideshow that is going to DVD-VIDEO widescreen.
    More later.
    ATR

  • How to create a new DOM tree with nodes from another DOM tree?

    Hello,
    I would like to create a DOM tree by using nodes from an existing DOM. How can I do that? I tried with appendChild and it gaves me as error: "WRONG_DOCUMENT_ERR".
    Thx!

    The xml that should be parsed is something like that:
    <?xml version="1.0" encoding="UTF-8"?>
    <root xmlns="http://www.nebi.biz/schemas/bd/nebienvelope" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" BusinessDocumentVersion="7.0" xsi:schemaLocation="http://www.nebi.biz/schemas/bd/nebienvelope NeBiEnvelope_L_0_3.xsd">
        <Header>
            <To>
                <OrganisationId>OrganisationId0</OrganisationId>
                <DestinationType>DestinationType0</DestinationType>
                <Destination>Destination0</Destination>
            </To>
            <From>
                <OrganisationId>OrganisationId1</OrganisationId>
                <DestinationType>DestinationType1</DestinationType>
                <Destination>Destination1</Destination>
            </From>
            <Dialog>Dialog0</Dialog>
            <DialogId>DialogId0</DialogId>
            <MessageType>MessageType0</MessageType>
            <MessageId>MessageId0</MessageId>
            <Reference Role="buyer" Type="BusinessAgreement">Reference0</Reference>
            <SequenceId>SequenceId0</SequenceId>
            <Checksum Type="MD5">Checksum0</Checksum>
        </Header>
        <Body>
            <Order xmlns="http://www.nebi.biz/schemas/bd/order" BusinessDocumentVersion="7.0" OrderType="request" xsi:schemaLocation="http://www.nebi.biz/schemas/bd/order Order_L_0_96.xsd">
                <OrderId Role="buyer"/>
                <ProductLine Number="1">
                    <ProductUseCaseDetails Id="WICreation">
                        <wiCreation xmlns="http://mydomain.com/GRIPP/workitem">
                            <wiCreationHeader>
                                <userId>wmadm</userId>
                                <taskModelName>DNS02_CreateMasterZone</taskModelName>
                            </wiCreationHeader>
                            <wiCreationBody>
                                <DNS02CreationBody>
                                    <GlobalSection xmlns="http://mydomain.com/GRIPP/dns02">
                                        <Outcome>1</Outcome>
                                    </GlobalSection>
                                    <SpecificSection xmlns="http://mydomain.com/GRIPP/dns02">
                                        <Zonename>0.0</Zonename>
                                        <RRLocation>Domain</RRLocation>
                                        <RemoteSlaves type="multiline">
                                            <RemoteSlaveFQDN>test.com</RemoteSlaveFQDN>
                                            <RemoteSlaveIP>123.234.234.123</RemoteSlaveIP>
                                            <RemoteSlaveFQDN>test.net</RemoteSlaveFQDN>
                                            <RemoteSlaveIP>123.123.123.123</RemoteSlaveIP>
                                        </RemoteSlaves>
                                    </SpecificSection>
                                </DNS02CreationBody>
                            </wiCreationBody>
                        </wiCreation>
                    </ProductUseCaseDetails>
                </ProductLine>
             </Order>
        </Body>
        <Trace>
            <CheckPoint>
                <SystemName>SystemName0</SystemName>
                <SystemDateTime>2006-05-04T18:13:51.0Z</SystemDateTime>
            </CheckPoint>
        </Trace>
    </root>This is the output of the Document after parsing and augmentation with the Xerces parser.

  • How to create a report  based on selected item from Select list?

    Hi,
    I have created a tables_LOV based on:
    select table_name d, table_name r from user_tab_cols
    where column_name like '%_type%'
    Then I created a page item ListOfTables,  Display as select list and pointing to tables_LOV.
    I run the page, and i can select the table i want from the drop down list.
    How to create a report  based on the selected item? (ex: select * from selected_table)
    many thanks in advance
    Salah

    Hi Salah,
    Allright, have a look at this page: http://apex.oracle.com/pls/apex/f?p=vincentdeelen:collection_report
    I think that simulates what you're trying to accomplish. I've set up the simplest method I could think of.
    The report is based on an apex collection. If you are not familiar with that, you should study the documentation: APEX_COLLECTION
    To recreate my example you should:
    1) create an (interactive) report on your collection
    SELECT *
       FROM APEX_collections
    WHERE collection_name = 'MY_COLLECTION'
    2) create a page_item select list for the tables you want to display (in my case this is called "P38_TABLES" )
    3) create a dynamic action that triggers on change of your select list page_item. The dynamic action must be a PL/SQL procedure perfoming the following code:
    declare
      l_query varchar2(4000);
    begin
      l_query := 'select * from '||:P38_TABLES;
      if apex_collection.collection_exists
            ( p_collection_name => 'MY_COLLECTION' )
      then
        apex_collection.delete_collection
          ( p_collection_name => 'MY_COLLECTION' );
      end if;
      apex_collection.create_collection_from_query
        ( p_collection_name => 'MY_COLLECTION'
        , p_query           => l_query
    end;
    Make sure you add your page_item to the "Page Items to Submit" section.
    4) Add an extra true action that does a refresh of the report region.
    Here are two pictures describing the da:
    http://www.vincentdeelen.com/images/otn/OTN_COLLECTION_REPORT_DA1.png
    http://www.vincentdeelen.com/images/otn/OTN_COLLECTION_REPORT_DA2.png
    Good luck and regards,
    Vincent
    http://vincentdeelen.blogspot.com

  • How to create a dyanamic query in PL/SQL from XML

    Hi Forum,
    I am having an XML file with tags. I am controlling my JSP page layout with these tags and it is working fine. But I need to send the Orange colour nodes to a pl/sql in the JSP page to construct the query as per the XML
    <?xml version="1.0"?>
    <Jobmanage>
    <Customer name="StGeorge">
    <Column>
    <Name>QM_NUMBER</Name>
    <Title>Job Number</Title>
    <Width>10</Width>
    <Font>Arial</Font>
    <Size>10</Size>
    <Align>center</Align>
    <Display>Yes</Display>
    <cloumn1> QM_NUMBER <column1>
    </Column>
    <Column>
    <Name>QM_JOB_STATUS</Name>
    <Title>Job Status</Title>
    <Width>10</Width>
    <Font>Arial</Font>
    <Size>105</Size>
    <Align>center</Align>
    <Display>Yes</Display>
    <column2>QM_JOB_STATUS</column2>
    </Column>
    <Column>
    <Name>QM_USER_STATUS</Name>
    <Title>User Status</Title>
    <Width>10</Width>
    <Font>Arial</Font>
    <Size>10</Size>
    <Align>center</Align>
    <Display>Yes</Display>
    <column3>QM_USER_STATUS</column3>
    </Column>
    </Customer>
    </Jobmanage>
    The select statement I am using n the JSP page is
    SELECT Q.QM_NUMBER, Q.QM_JOB_STATUS, Q.QM_USER_STATUS FROM QMI Q WHERE ((Q.QM_JOB_STATUS IN (5, 6, 7, 8, 9, 10)) OR (Q.QM_JOB_STATUS IN (12) AND Q.QM_CLOSE_DATE >= SYSDATE - INTERVAL '6' MONTH))
    Can you give me instructions how to create the above SQL statement dynamically as per the XML file. I want the select statement in a pl/sql
    BEGIN
    SELECT Q.QM_NUMBER, Q.QM_JOB_STATUS, Q.QM_USER_STATUS FROM QMI Q WHERE ((Q.QM_JOB_STATUS IN (5, 6, 7, 8, 9, 10)) OR (Q.QM_JOB_STATUS IN (12) AND Q.QM_CLOSE_DATE >= SYSDATE - INTERVAL '6' MONTH))
    END
    So, when ever the columns hirerachy changed in the XML file it should show theat effect in the PL/SQl. Thats hoe I am aiming to develop.
    Thankx for you time.
    Cheers,
    Krishna

    I want the select statement in a pl/sql BEGIN
    SELECT Q.QM_NUMBER, Q.QM_JOB_STATUS, Q.QM_USER_STATUS FROM QMI Q WHERE ((Q.QM_JOB_STATUS
    IN (5, 6, 7, 8, 9, 10)) OR (Q.QM_JOB_STATUS IN (12) AND Q.QM_CLOSE_DATE >=
    SYSDATE - INTERVAL '6' MONTH)) ENDThat doesn't make sense. Such a plsql block would not compile. What is your final goal you want to achieve with this?

  • How to create and maintain a backup catalog, separate from default  location,  on and external HD

    How to create and maintain a backup catalog on a separate hd - separate from default location of the catalog?

    Simply copy the LR catalog backup file to another location. It’s quite small and only contains metadata e.g. your edit develop settings, keywords, captions, titles and camera exif data etc.
    The LR backup does not physically copy your image files. So make sure you have a separate system backup for your photo files and folders.

Maybe you are looking for