How to average an input with delays in between?

Hi,  I am doing a small program for test & measurement.  I have a laser on a target, the target  gives me voltage signal.  The laser is a tunable one. I change the laser wavelength from 1500nm to 1600nm.  Let's say I need to measure 100 points. Every time I change the wavelength of the laser, it takes a few seconds for the target to settle down.  So I need a delay (5 sec) after tuning the laser.   Another thing is voltage signal is fluctuating so I need to take 5 measures and average them. 
In steps, the program flow would be like this:
1. Tune laser to a new wavelength,
2. wait 5 sec
3. start getting first data
4. wait 1 sec, then get data
5. wait 1 sec, then get data
6. wait 1 sec, then get data
7. wait 1 sec, then get data
8. wait 1 sec, then get data
9. average 5 data
10. Tune laser to a new wavelength
11. Send data to X-Y charts
12. When 100 points are collected, save to disk file.
I got a short program working with no delay or averaging.  I have no idea how to use delay in sequence, and how to average voltage signal is a challenge too.

Unfortunately I can't send you code because you are using LV 6.1 and I can only save back to V 7. So.... I have done the next best thing and sent you screen shots of the code. The attached zip archive includes two picures.
The first is the diagram of the delay routine that I used in the other diagram.
The second diagram is a shell for your application. There are two single-frame sequences that I am using to replace the routines that you will have to write. The first one (with the green fill) is the routine for setting the laser. It has one input: the frequency. The "yellow" sequence is the one that you will replace with the VI that reads the DAQ.
There are also two constants. One sets the starting frequency, and the other sets how much the frequency will be incremented with each iteration.
Hope this gets you pointed in the right direction. If you find someone who can back-convert V7 to V6.1 let me know and I'll send you the code as well.
Mike...
Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion
"... after all, He's not a tame lion..."
Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps
Attachments:
pictures.zip ‏72 KB

Similar Messages

  • How to control user input with a button?

    How do I control a user input from a dialog box by activating it with a button. I am saying "press zero", then when the user does press zero, it should zero the scale.

    The user has only one button they can press.  You should enable the cancel so that the dialog can output an F.  
    What you have works, but the zero will not occur until the case is activated.  If the insides of the case do not work, that is another story.  Put a pop up in the active case to convince yourself that the case is being entered.
    This, what you have, always returns T.
    Mark Ramsdale

  • Counter Input with Delayed counter Output with board 6023E

    HELLO
    Is possible with board 6023e have two counters working at same time in this case i need a counter to creat a delay and another one to read. If isn´t possible how i can have a delay in microseconds.

    Yes, each one of those boards have two STC counters you can use. Take a look at the User Manual of the boards for more information. When looking at the pin diagram for the boards, the counter pins are GPCTRx_.
    If you are using LabVIEW, CVI, VB or VC++, when you install NI-DAQ, it will install a lot of counter example programs which will show you how to program the counters.
    Brian

  • How to...snapshot with delay using Webcam Center ?

    Hi all,
    I was wondering if I could take some snapshot with a certain delay using Webcam Center ?
    Meaning I click on the snapshot button and I got like 0 secs to move on before I got the screen.
    And if that's not possible using Webcam Center, would you know any other soft doing that ?
    Thanks for your time.

    I have done this in the past by using a command line version of putty called plink.exe
    http://www.chiark.greenend.org.uk/~sgtatham/putty/
    call plink.exe with the systemexec.vi using the command line parameters of any ssh commands
    - James
    Using LV 2012 on Windows 7 64 bit

  • How to get audio input with no line in jack?

    Apologies for this very basic question but I am increasingly lost and confused the more I search.
    I want to convert some audio cassette tapes into mp3. I have an older mac mini that I believe does not have any kind of audio input jack. I have heard from various people that 1) I just need a cable to convert RCA output to USB input (but as far as I can tell such a cable doesn't exist) 2) I need to buy a sound card 3) I need a special standalone piece of hardware.
    Which one is right? This is just a one time project and the audio is only voices so I don't want to spend any more than I need to.

    The Griffin iMic would work well for this.
    http://www.griffintechnology.com/products/imic

  • How to create a table with the spaces between the row..

    Hello,
    I am using jdev 11.1.1.6 and I need to insert the spaces between the rows. How this can be done?
    Thanks and Regards,
    Tarun Agrawal

    Hi Tarun,
    This css rule is useful to set the padding on each cell:
    .AFTableCellPadding:alias {
      padding: 10px 0px 10px 0px;
    }But if you want to insert a real space between the rows (property "cellspacing") you can do something like this:
    af|table > div + div > table {
      border-collapse: separate;
      border-spacing: 0px 5px;
    }AP

  • How do I video chat with iSight directly between two networked computers

    Well, the title kinda says it all. My two neices just got Macbooks, and they aren't allowed to go onto the net with them, but I figured they'd have fun doing video chats from across the room or whatever.
    Is this possible? Can you do it without going through AIM or .Mac?
    Thanks!

    You can conncet via your local lan using Bonjour. You can activate Bonjour in iChat by navigating to: iChat>Preferences>Accounts>Bonjour>Use Bonjour then log into Bonjour.
    Please note, you may need to open up the proper ports in your firewall to make this work.
    Post back if you have any issues.

  • Animate text with lines in between?

    Hi guys,
    This is my very first question on this forum. It's also the very first time I'm working with After Effects (CS6).
    Now I have the following question. Does anyone know how to animate some text with lines in between so that it sort of 'rotates'? Exactly like in the video that is shown below.
    I know that it has something to do with strokes, but I can't quite figure it out.
    Thanks for the help!

    Make the text layers layers 3D. Orient them all to the camera. Parent them to a 3D null. Rotate the null and the text will now move around as it does in your sample video.
    Leave the beam layers 2D but change the expression for the Beam Starting and Ending point to this:
    L = thisComp.layer("TextLayerName");
    L.toComp(anchorPoint);
    Change the name in quotes to match your text layer name. This needs to be different for each text layer.
    Set the Anchor Point and Position value of the layer with the beam effect to 0, 0. This is fixes an alignment problem with the beam points.
    Add this expression to the Y rotation property of your text layers:
    - thisComp.layer("Null 1").yRotation
    There you go. I told you it was more complicated. The first expression transforms the 3D space of the text layer to the 2D space of the Beam layer so that matches the position in the 2D plane of the composition. You'll have to use the baseline offset in the text palette to make horizontal adjustments in the position of the end of the beam. If you want to control both horizontal position and vertical position relative to the end of the beam you'll need to add an Anchor Point text animator. (check the help files).
    The rotation expression rotates the layer in the opposite direction of the null. This keeps the text pointing to the camera. If you want to move the camera around you'll need different expressions.

  • How to use the discrete unit delay function with the simulate signal as the input?

    Hi there,
    I want to use the simulate signal as the input. First, i downsample the input with the downsampler.vi. Then I want to feed the output of the downsampled signal to the discrete unit delay block and display the delayed signal on the graph.
    Somehow I can't use the delay block properly, do anyone know how to fix that?T_T
    thanks!!!!
    Ivy
    please see the attachment
    Attachments:
    test.vi ‏164 KB

    Hi nozombie,
    In your VI the Delay VI only delays the measurment for one interation of your simulation loop.  What are the results that you hope to see?
    Regards,
    Mike Altmann
    LabVIEW Platform PSE
    National Instruments

  • How to make a Input Field with multiple lines?

    hey folks,
    i need to make a popup window or a dynpro with 2 input fields, where the user can write on multiple lines. why isnt there such an input field in the screen painter? how can i make this? if i can do this with a dynpro it would be nice but a popup with that feature would be better. didnt found any infos anywhere except for that thread, but its answer didnt work with my dynpro:
    How to make a input/output field with multiple lines
    thx for any helping answer

    i made it just like in that thread but there is an error message telling that gv_custom_container is not declared.
    *  MODULE status_0110 OUTPUT
    MODULE status_0110 OUTPUT.
      CREATE OBJECT custom_container
        EXPORTING
          container_name              = 'TEXT_CONTROL'
        EXCEPTIONS
          cntl_error                  = 1
          cntl_system_error           = 2
          create_error                = 3
          lifetime_error              = 4
          lifetime_dynpro_dynpro_link = 5.
      CREATE OBJECT text_editor
        EXPORTING
          parent                     = gv_custom_container
          wordwrap_mode              = cl_gui_textedit=>wordwrap_at_windowborder
          wordwrap_to_linebreak_mode = cl_gui_textedit=>false
        EXCEPTIONS
          error_cntl_create          = 1
          error_cntl_init            = 2
          error_cntl_link            = 3
          error_dp_create            = 4
          gui_type_not_supported     = 5.
      SET PF-STATUS 'STATUS_0110'.
      SET TITLEBAR 'TITLE'.
    ENDMODULE.                    "status_0110 OUTPUT
    Edited by: rafe b. on Oct 26, 2009 2:56 PM

  • How to Create an Input Schedule Comparison with Data Using EVDRE

    Hello,
    I try implement the scenario described in "How to Create an Input Schedule Comparison with Data Using EVDRE".
    Once I am using the "Insert Function" from the panel and selecting the EVTIM function Excel crashes (see page 8 How to paper).
    Systems:
    BPC 7.0 NW SP02
    Office 2007
    BPCADminClient and BPCOfficeClient up to date
    Have anyone a solution?
    Thanks
    Oktay

    Hi Oktay -
    This function works in my BPC70NW SP02 system. Your issue might be that you are trying to access a TIME member that does not exist. Please make sure the offset value is a valid dimension member.
    I can confirm that EVTIM does allow the offset for base members (such as 2009.MAY) as well as parent nodes (such as 2009.Q1 or 2008.TOTAL)... BUT...the offset result of the EVTIM function needs to be a valid dimension member!
    Regards,
    Sheldon

  • How to read the 'Input help with fixed values' of domain .

    How to read the 'Input help with fixed values' of domain .
    The domain has a Value range i want to read those values .
    Are these values stored in any table ?
    Plz help me i need it ver badly...
    Thanks in Advance...

    Hi Chandra Shekhar,
    To read the 'Input help with fixed values' of domain , you can use the function module : HR_P_GET_FIXED_VALUE_TEXT.
    iIf you enter the domain name, you will find the fixed values entered in the domain.
    These values are stored in a table DD07L(DD zero 7 L). Here the values are stored based on domain name.
    See if it works for you.
    Award points if its helpful.
    Regards,
    Bhanu

  • How to keep the field open for input with error message in report program

    Hi,
      Need a help in solving the below issue.
    "How to keep the field open for input with error message in report program"
    Regards,
    C.Shasiraj.

    Hi...
    you have to use the event:
    <b>AT SELECTION-SCREEN ON <FIELD> EVENT.</b>
    u have to give an error message in this event.
    Consider the following <b>Example:</b>
    <b>PARAMETERS : NUMBER TYPE I.
    AT SELECTION-SCREEN ON NUMBER.
      IF NUMBER = 10.
        MESSAGE 'Number vakue is 10' TYPE 'E'.
      ENDIF.
    START-OF-SELECTION.
      WRITE NUMBER.
    </b>
    in this if u give the value of number = 10, it will not proceed further, if u give some other value other than 10 you will proceed further...
    Execute this program once u will understand....
    also Consider the following links :
    <b>Regarding events:</b>
    http://help.sap.com/saphelp_erp2005vp/helpdata/en/79/34a237d9b511d1950e0000e8353423/frameset.htm
    http://help.sap.com/saphelp_erp2005vp/helpdata/en/79/34a23ad9b511d1950e0000e8353423/frameset.htm
    <b>Regarding messages:</b>
    http://help.sap.com/saphelp_erp2005vp/helpdata/en/c5/aa575426ad11d2954d0000e8353423/frameset.htm
    http://help.sap.com/saphelp_erp2005vp/helpdata/en/c5/aa575426ad11d2954d0000e8353423/frameset.htm
    This is very useful.......
    Reward points if useful....
    Suresh....

  • How I get started using voice input with mac mail?

    Just got a new Imac.  have had Apple computers for a long time.  Want to start using voice input with mail.  How do I get started?

    Apple's voice input options are the following:
    Dictation
    This allows you to speak a phrase and have the system enter it as text in any text field, be it a name and address form or a text editor like Pages or Word. The settings for this service are in the Dictation system preferences, and by default you activate it by pressing the Fn key twice in a row and then speak the desired phrase after you hear the bing sounds.
    Speakable Items
    This option allows you to somewhat control the Mac's interface elements by speaking key phrases to the system. This option is enabled in the Accessibility system preferences, and is at the bottom of the listed services. In here you can turn on the service and calibrate it to properly hear your voice, set a "listening key" (similar to the Fn key for Dictation), and then enable various command libraries.

  • How do I do input pattern matching with the 6534?

    I am configuring the 6534 to have one 8 bit input port and one 8-bit output port. Both input and output are in continuous mode. The input port is scanning for a specific pattern, but doesn't need to save the data. When this specific pattern is received, the VB program must be notified so that it can perform some action. This will occur every 2 seconds, i.e. the input pattern will match every two seconds. How do I perform this continuous pattern match and how can I throw away the input data without overflowing the input buffer?

    It sounds like you want to do DAQ Event Messaging. With this mechanism, the driver actively notifies the user of a specific DAQ Event by either posting a message on a message queue or calling a callback function.
    There are several documents that describe how you can do this with Visual Basic. You can find some KnowledgeBase entries, and a really useful tutorial called "Using DAQ Event Messaging in Windows under Windows NT/95/3.1". You can find these by searching the http://www.ni.com/support pages for "daq event message", and then go on to choose Visual Basic, and Learning to use product features and functions.
    The feature that you are looking for is pattern matching, which is DAQ Event type 8 ? Digital Pattern Matched. When the document refers to the
    Config_DAQ_Event_Message, you can see the details of this function in the NI-DAQ Help file (Start menu >> Programs >> National Instruments >> NI-DAQ). As you will see in the tutorial, you use a different but analogous method. While you won't be using this particular function for Visual Basic, the description of those events may be helpful.
    Regards,
    Geneva L.
    Applications Engineer
    National Instruments
    http://www.ni.com/ask

Maybe you are looking for

  • Can't Delete Images

    Hi all... Hope I am in the corrrect forum... new here In the past week or so I have not been able to delete some images PSD and/or .jpg. from my files ??? I have tried to do this in Bridge, CS5 and My Pictures, when I try I get a popup per the image

  • Q: How to create reports with no login required?

    I would like to make some reports available to internal people but I dont want/need login security. Is this possible? how?

  • Notes & Columns- Bridge CS4

    Hello, Just a quick question, I'm in the Essentials mode of Bridge; to the right of the main content window is the Preview pane atop the Metadata and Keywords. Metadata is active and File Properties expanded, I have notes ticked in the Metadata, File

  • Brush tool not working on mask.....

    Can't seem to get brush tool to work on mask. Duplicated a layer and applied multiply blend mode. Don't want effect of blend mode on entire image but can't get the brush tool to work on mask. I have made sure than I am working on the mask and not the

  • ABook Groups Problem has Returned

    I posted here and on a few help sites the following which I noticed yesterday had returned. I didn't journal my fix, (something I stumbled on by accident) and I really need to fix the current problem because we really need AB groups to be functional