Synchronizing function generator outputs

I am a grad student learning Labview for use in research.  What I am trying to do right now is figure out how to sync up two function generators that are generating a simple sine wave output.  I am using a stanford research systems ds345.  I setup the code so that each machine is set to an external clock and I have attached the corresponding cables on the machines to sync up their clocks, but I am still not seeing a good synchronization of the phases of the waves.  I have attached my simple practice code and I would appreciate any suggestions with this.
My ultimate goal here is to create a program that is turning the two sine waves on and off in sync (or real close to it) while having the sine waves being in opposite phase with each other.  The frequency of the waves will also be changing to different values when the sine waves are turned back on.
Attachments:
Practice.vi ‏53 KB

Ace02,
I believe that you are missing triggers for your waveform generation.  Triggering would allow you to match up phases the way your application requires.  Looking at your current code, I can't see any triggering set up, so right now there is no way to determine phase, all you have set is a sample clock.  I haven't used that particular instrument myself, so I can't comment on how to actually configure triggering, but I would recommend looking into that.
Regards,
Ben
National Instruments
Certified LabVIEW Associate Developer
Certified TestStand Developer

Similar Messages

  • Agilent 33220A (Function Generator) .. To Turn ON DC output

    hi ,
    Iam using the 33220A ,Agilent function generator ..with labview 8.5 ..
    I need the control or Subvi that will output a DC .. i.e on the agilent ..Utility->DC off/On .. i need to activate the DC ON ...with a particular Dc offset voltage ..
    Iam unable to find a subvi which can do this ..
    Iam currently using the labview driver downloaded from the ni.com.
    Thanks,
    Anwar.

    Have you tried ag33xxx-Config Waveform? One of the waveform shapes available is DC and there is control called Offset.

  • Simultaneously read more than one input and generate output

    Is it possible To simultaneously read more than one input and generate outputs depending on these inputs? If this isn't possible what is the best way to go about making some sort of timed loop that will read an input, read the next input, decide whether or not to output and so on. Hope someone can help. Thanks.Message Edited by Esmith13 on 05-25-2005 01:36 PM

    Hi,
    You should look at the synchronized examples for analog input and output that can be found in the example finder under:
    Help>>Find Examples>>Hardware Input and Output>>DAQmx>>Synchronization>>Multi-Function
    These will get you started to being able to handle multiple tasks at the same time.
    I hope this helps. Have a Great Day!
    George

  • I want to use the Function Generator VI to send command signals through the NI 7344 motion controller. This will be a closed loop servo valve system. I want to be able to change from say a square wave to a sine wave on the fly. Idea's?

    I am going to run tests that require an actuator to move using various types of arbitrary waveforms such as sine or square. The NI 7344 is hooked to the UMI that is going through a driver for a servo valve. The loop is analog and it is closed. I have played with some of the examples but can't get it to work. I have used the function generator VI to generate a signal but I think I am using the wrong input VI to the motion control board. When I use what I have it moves the servo and then stops. It doesn't continually generate the signal.
    I would love to use the controls on the function generator vi to control frequency and amplitude ect. Any help or pointer would be helpful. Thank you in advance.

    Hello,
    I'm not clear on exactly how you want to use the generated data but I'm assuming they will be used as your target points.
    There's a built-in example for motion called 'One-Axis Contour Move.vi'. This example demonstrates how to provide your target points as 1-D array. All you need to do is to replace the input array with the output of the function generator. In order to have it run continuously, use a while loop. You can further program your application so that it'll change the waveform on the fly by monitoring the user interface but this might be little little tricky as you will need to reset the move and load the new generated points while keeping track of your current position.
    I hope this helps. Let me know if you have further questions regarding this
    application.
    Best regards,
    Yusuf C.
    Applications Engineering
    National Instruments

  • Oracle Reports 9I generate output in excel

    Report Builder 9.0.4.0.33
    I tried generating output to Excel using 10GR2 Report builder using SPREADSHEET for destype on the web and it works.
    The requirement is for this one customer who is on 9I and they are asking for excel output functiuonality on thier existing reports.
    Does oracle has a patch or any other way to generate the exisitng reports on 91 where we can give them a selection like SPREADSHEET in the parameter screen and it would generate the report in excel.
    Thanks
    I tried by appending below to the url in the before report trigger.
    &mimetype=application/vnd.ms-excel
    which works but, we give other selections to the user too where they can change the desformat to PDF or HTMLCSS...and they all try to open the report output in excel.
    Edited by: Forms_Reports_Beginner on Oct 6, 2009 3:17 PM

    Thank you Lalitk and Dennis,
    My team mate wrote a javascript function on before report trigger that checks the paramter selection for desformat and append the mimetype accordingly.Hence, able to achieve the functionality.
    Thanks.

  • Oscillioscope and function generator

    Hello,
    How difficult is it too create a virtual oscillioscope and a function generator that outputs through ethernet or usb to some NI module (Chassis, analog, digital etc) that will send signals to a circuit? So, basically instead of having an oscillioscope or a function generator, you create a virtual one on labview and can send signals to the circuit in the real world. Is that even possible? And if it is how hard do you think the task would be? 
    Thanks in advance for all the input!

    So I happen to have a myDAQ at home and I thought I would try to use it as a scope.  Checkout this video after a 1:30 for a demo of some of this software.  The software it comes with has all the test panels for various instruments for scopes, DMM, function generator, aritrary waveform generator and several others.  The hardware also appears as a normal DAQmx device if you so choose to write your own software.
    Honestly it isn't half bad.  Maybe it's because the software mirrors normal scope functionality but I was able to see my signal and understand it, when I had no other hardware that was capable.  It won't replace a desktop scope but it's what I had on hand.
    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.

  • Elvis: Is It possible to use the Function Generator and the Oscilloscope simultaneously?

    Hi,
     We are using the NI Elvis to output a function or a sine wave at a certain frequency and using the oscilloscope on the same board/elvis to read a modified signal. Is this possible? Can we use both the Function Generator and the oscilloscope at the same time? Please help. The oscilloscope would be reading signal from an accelerometer. Thank you in advance. We have no VI as we do not know which to use and if they are possible.

    Hi,
    There is no problem using the Function Generator and Oscilloscope
    at the same time with NI ELVIS. Using the NI ELVIS soft front panels (Start
    >> Programs >> National Instruments >> NI ELVIS 3.0 >>
    NI ELVIS – see picture attached –‘NI ELVIS soft front panels.JPG’), you can choose
    to open more than one instrument at a time. We do this by opening one
    instrument, allowing it to begin, and then opening another. We can also program
    in LabVIEW using more than one instrument at a time by placing down multiple
    Express VI’s taken from the NI ELVIS pallet on the block diagram (see picture
    attached – ‘ELVIS Express VI's (LabVIEW).JPG’). One note when doing this,
    please see KB 41ODPHX1 
    for an example of how to program in parallel. If you do not wire the ‘stop’
    terminal of the express VI’s, you will get the error described.
    David L.
    Systems Engineering
    National Instruments
    Attachments:
    ELVIS Express VI's (LabVIEW).JPG ‏74 KB
    NI ELVIS soft front panels.JPG ‏56 KB

  • What is the internal impedance of the NI ELVIS Function Generator?

    Does anyone know the load impedance of the function generator? I'm wondering how much it may be tainting the results of Tau for my RC circuit. Thanks.

    Impact -
    With the NI ELVIS Function Generator, the output impedence is spec'ed
    at 50 Ω guaranteed.  You can find the block diagram from the
    Function Generator on page A-6 and C-6 (Appendix C:  Theory of
    Operation) of the NI ELVIS User Manual. 
    NI Educational Laboratory Virtual Instrumentation Suite (NI ELVIS) User Manual - http://digital.ni.com/manuals.nsf/websearch/11E6BA4103D9ADD086257103005C97E0
    Good luck with your application!
    Mark Walters
    Application Engineer

  • Can we generate output of a report in an Excel Sheet?

    Hi All,
      Can anyone tell me how to generate output of a report in an Excel Sheet format?
    Thanks in advance,
    Jasmine.

    hi,
    try this sample...
    data: begin of itab occurs 0,
          vbeln like vbak-vbeln,
          posnr like vbap-posnr,
          end of itab.
    select vbeln
           posnr
           from vbap
           up to 20 rows
           into table itab.
    * EXCEL sheet using OLE automation.
    INCLUDE OLE2INCL.
    * handles for OLE objects
    DATA: H_EXCEL TYPE OLE2_OBJECT,        " Excel object
          H_WORK  TYPE OLE2_OBJECT,
          H_SHEET TYPE OLE2_OBJECT,
          H_CELL  TYPE OLE2_OBJECT,
          V_COL   LIKE SY-TABIX.     " column number of the cell
    DATA:
      V_STEP(30),
      V_FILE LIKE RLGRAP-FILENAME.
    * tell user what is going on
      CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR'
         EXPORTING
    *           PERCENTAGE = 0
               TEXT       = 'Creating Excel...'
           EXCEPTIONS
                OTHERS     = 1.
    * start Excel
      V_STEP = 'Starting Excel'.
      CREATE OBJECT H_EXCEL 'EXCEL.APPLICATION'.
      PERFORM ERR_HDL.
      SET PROPERTY OF H_EXCEL  'Visible' = 1.
      CALL METHOD OF H_EXCEL 'APPEND'
        EXPORTING  #1 = 'D:SappdfABAP Trainingsheettr.xls'.
    *  PERFORM ERR_HDL.
    * tell user what is going on
      CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR'
         EXPORTING
    *           PERCENTAGE = 0
               TEXT       = 'Adding Data to Excel...'
           EXCEPTIONS
                OTHERS     = 1.
    * Get the list of workbooks
      V_STEP = 'Preaparing Excel'.
      CALL METHOD OF H_EXCEL 'WORKBOOKS' = H_WORK.
      PERFORM ERR_HDL.
    ** Add new workbook (create a file)
      CALL METHOD OF H_WORK 'ADD'.
      PERFORM ERR_HDL.
    * Get the created worksheet
    ************************Sheet Number
      CALL METHOD OF H_EXCEL 'WORKSHEETS' = H_SHEET EXPORTING #1 = 3.
    ************************Sheet Number
      PERFORM ERR_HDL.
    * Activate (select) the first sheet
      CALL METHOD OF H_SHEET 'ACTIVATE'.
      PERFORM ERR_HDL.
    * tell user what is going on
      CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR'
         EXPORTING
    *           PERCENTAGE = 0
               TEXT       = 'Adding Data to Excel...'
           EXCEPTIONS
                OTHERS     = 1.
    * output column headings to active Excel sheet
      V_STEP = 'Adding data to Excel'.
      LOOP AT ITAB.
        V_COL = SY-TABIX.
        PERFORM FILL_CELL USING 1 V_COL ITAB-vbeln.
        PERFORM FILL_CELL USING 2 V_COL ITAB-posnr.
      ENDLOOP.
      V_STEP = 'Releasing Excel'.
      FREE OBJECT H_EXCEL.
      PERFORM ERR_HDL.
      H_EXCEL-HANDLE = -1.
    *&      Form  ERR_HDL
    *       text
    *  -->  p1        text
    FORM ERR_HDL.
      IF SY-SUBRC <> 0.
        WRITE: / 'Error in processing Excel File:', V_STEP.
        STOP.
      ENDIF.
    ENDFORM.                    " ERR_HDL
    *&      Form  FILL_CELL
    *       text
    *      -->P_1      text
    *      -->P_1      text
    *      -->P_1      text
    FORM FILL_CELL USING  ROW COL VAL.
      CALL METHOD OF H_EXCEL 'Cells' = H_CELL
                     EXPORTING #1 = ROW #2 = COL.
      PERFORM ERR_HDL.
      SET PROPERTY OF H_CELL 'Value' = VAL .
      PERFORM ERR_HDL.
    ENDFORM.                    " FILL_CELL
    regards
    satesh

  • Proportional controller connected to a function generator

    Hi....
    We'd like to connect some output from a proportional controller to a function generator which
    produces a square pulse with variable duty cycle.
    The question is what proportional controller to use here and if there is any examples related?
    And how to produce this square pulse with a high frequency, while some controllers do not support
    any thing more than 1kHz? In addition, if it exceeded this, something wrong happens to the output and disappears?
    Thanks in advance
    Ray

    Ray,
    Please be more specific in your description. Proportional controllers usually do not connect to function generators so it is not clear exactly what you are trying to accomplish.
    Which parts of your system are hardware and what kind? Which are implemented in LV (which version)? What are the inputs and outputs to both the hardware and software? What frequency range do you need? If you have specific problems with a part of your LV program, posting an example showing the problem is very helpful.
    When you say the output disappears, do you mean that the pulses stop? That may simply indicate a 0% or 100% duty cycle.
    Many inidviduals with a wide range of experience monitor this forum and will try to help if we understand what you are trying to do.
    Lynn

  • DC offset problems in NI-5401 function generator card

    When i give a Dc offset of 1 Volt the output of my function generator reads 1.97v. what is the reason behind this,why is it so what setting have to be made so as to get the dc ofset only when no ac signal is given.

    Hi. The NI 5401?s output voltage is specified in terms of 50 ohms. This means for a 50 ohm load, you should see 1.0 Volts for a 1.0 Volt setting when the load is 50 ohms. For an other than 50 ohm load, there is a voltage divider action that takes place, where the voltage will vary up to double the size for a high impedance load, such as most default oscilloscope settings. The Connecting Signals>>ARB Connector section of Chapter 1 of the NI 5401 user manual describes this in further detail.
    To generate just a DC voltage level, there is an option for DC as the Waveform to use when programming the device. The LabVIEW niFgen Function Generator Example shows this on the front panel. If you are using the Sources Soft Front Panel, when the Standard Function Output is se
    lected, there is a DC Voltage level selection button available to be selected to generate a DC voltage.

  • Labview 6 arbitrary function generator file format?

    Hi,
    I have old hardware (e.g. DAQcard1200) which I have to use with old versions of Labview (4 or 6) (as they run on "old" hardware - Pentium1 embedded boards with Win98 etc.). With Labview 8 I can load a file in .lvm format and use it as output for A0. But how is this with the "arbitrary function generator" from Labview 6 (benchtop.llb)? I constructed an arbitrary function manually within the vi and saved it to a file, but its format does not make sense - only "strange" characters are displayed, like dŸ¾ “£¾ˆt÷¾ VJ¾– ¾ ñ¾£úD¾ªÛ˜¾±¼ë¾¸ž, if I open the file with an editor...  
    Thanks!!
    ;-) Torsten

    I don't have LabVIEW 6.1, but if the example hasn't changed, then that example writes out a binary file, which is why you get all those "strange" characters. The file should be an array of SGL values. Thus, you can read it into LabVIEW using the Read From Binary File, and wiring an SGL constant to the "data type" input.
    Attachments:
    Example_VI_BD6.png ‏1 KB

  • Generating output for just ONE WebHelp page

    Is it possible to generate output in RoboHelp 9 for just a single selected WebHelp topic instead of the entire project?
    This is for a project with hundreds of topics, where occasionally I might make a change to only one of them and need to deploy just that one page of output. But I can only generate output for the entire project. The only options I seem to have are:
    1. Output everything, and ignore or discard everything apart from the one htm page I want
    2. As well as editing the source of the topic, also edit a copy of the previous output.
    I'm assuming the answer is "no", having looked quite hard, but I thought it worth asking. Fortunately, it's not something I need to do very often - our agile methodology means I'm usually deploying an entire project very regularly.
    Thanks
    Nick Shears

    Hi Nick
    Just a few questions here.
    Is the avoidance of generating the entire project related to the Source Control issue or is it related to a publishing issue? For example, you wish to put the single changed file in place on the serverm but you dislike having to copy them all?
    If it's a "copy to server" issue, I might suggest you investigate using the Publish function. The first time you publish, all files are copied from your output folder to the server, But with each subsequent publish action, only the changed files that actually need to be copied are copied.
    If it's related to source control, I suppose you could accomplish the same by simply amending your process a bit. Generate to the empty location, but configure publishing so it publishes from the empty location to your repository. Then only the necessary files are changed.
    Cheers... Rick

  • USRP as a function generator

    Is it possible to use USRP as a function generator ? If yes can any one please provide me the sample VI. I want to generate Sine wave, Square wave, Triangular wave etc. Also I need the option to vary Frequency and Voltage. Is it possible to implement Function Generator mechanism on USRP using LabView? Please guide.  

    Hello josephkirmani,
    When you say you want to use the USRP as a function generator, do you mean you want to be able to output and send a function over a certain RF carrier frequency? If so, I think you might find the example below helpful, it uses frequency modulation (must have the modulation toolkit installed) in order to embed a signal of your choosing (square, sine, triangle…) into a FM modulated waveform to be transmitted over a specified carrier frequency. Just switch out the Basic Multi Tone.vi for your preferred function from the Waveform Generation Palette. If that’s not what you are trying to do, please clarify. 
    Example: https://decibel.ni.com/content/docs/DOC-24206
    Matthew R.
    Applications Engineer
    National Instruments

  • Testing a function generator using PXI-5412

    I want to test a function generator example by reading it from a PXI-5412, but I dont know what do I suppose to read the input from.

    I don't understand. The PXI-5412 is a function/arbitrary waveform generator and it cannot read anything. It is an output only device. To check the output, you can connect it to a scope.

Maybe you are looking for

  • Adding a 2nd Residential Phone Line

    Last night I ordered a 2nd phone line from Verizon for my kids. I nevered received a confirmation email but checked my order and it says it was processed already. So now that a bought a new telephone number to use, what's next? How do I go about gett

  • I think it's a bug (FIXED in 3.1)

    Hi, You can find this error on: http://apex.oracle.com/pls/otn/f?p=20980:5 Click on the button "Reset sort preferences" and then sort any of columns on this page - you will get exception: failed to parse SQL query: ORA-06502: PL/SQL: numeric or value

  • How to refer the class package "com.sapportals.connector" for MDM API?

    Hi, Iam trying to execute one example mdm api program in dynpro/ejb. I could not refer the class package com.sapportals.connector. What SCA or build path package needed for dev time and runtime and where do i get that. Please help me. Thanks Hari

  • S_ALR_87013564  transaction

    Is there any help or documentation on how to use S_ALR_87013564  transaction?

  • Can my parent Flash detect a window which was open from inside has been closed?

    Hello everyone, I have a Flash animation which at one point opens a New Windows and plays an external FLV file. I would like to be able to continue with the animation once the new movie window is closed. So, I would like to know if there is a way for