How to "skip" part of a signal

Hey everyone,
I'm still very new to LabVEIW
I'm writing a code to control a pair of mirrors which will scan across a designated area, one on x-axis and on the y-axis. The movement is defined by two triangle waves (for simplicity at the time being, I may change it later) and will move at different frequencies so that the result is a zig-zag pattern across the area as the two mirros combine.
The problem I'm having is that I don't really want the mirrors to scan back across the area when they're done. As things stand, the scan crosses the area and comes back, but I want it to scan in one direction and as the y-axis mirror returns to the starting position, the x-axis mirror stops and waits for it, so it's not scanning back across the same area. I've created the code I'm using with some sub vi's but I'm pretty stuck as to how I can stop this from happening and the help function hasn't made anything any clearer for me
The two phsyical channels in the vi I'm posting go to the outputs of a DAQPad 6015, which are in turn linked to an oscilloscope so I can see the physical results of what I'm doing. I won't be linking any of this to a real system till I have it worked out
Thanks in advance,
Ben

Hi Ben,
I think this is what you're shooting for, however the graph reaches -1 amplitude at 0.475 seconds.
Regards,
Dan
Attachments:
write waveform modified.vi ‏55 KB

Similar Messages

  • QuickTime 10.0 Screen Recording randomly skips parts of the recording?

    I'm using the QuickTime Player to record some gameplay on my computer and sometimes, randomly, it skips part of the video. Sometimes its just a minute or 2 and sometimes its 15 minutes. I don't know why or how this could possibly happens, but it does. I have 366GB of space on my computer left so space is not an issue. I don't know what is. Please help

    Bump. I'm having this trouble too, on both my iMac and my Macbook. I've tried every combination of events I can think of that might make this happen (switching windows, switching Spaces, etc. etc.), but the problem is so random and intermittent. Sometimes it records fine and I end up with a full recording, sometimes the middle is gone, sometimes just the end. The file size doesn't seem to matter; I have some good recordings that are nearly 500MB, and some that failed when they are only 30MB (and I have well over 300GB free). It's really annoying to not know until you've done 30 minutes of work that the middle is missing from the recording, and have no idea whatsoever even how to work around the issue.

  • How can you post comments during signal aquisition?

    How can you post comments during signal aquisition? For example, while acquiring your signal, you want to post a comment which the temperature reads at "30 seconds" from your relative start time (t=34 sec into recording)
    I have the LE package where events, alarms, etc cannot be used. Are there other ways that the user can mark an "event" during recording?

    Hey hkim,
    If you know how long it will be before you want a message to pop up you can simply include a sequence structure and in the first sequence have a wait time of your desired length and have the message pop up and display in the second sequence frame. 
    Hope This Helps,
    Doug B
    Applications Engineer
    National Instruments

  • How to skip all files other than .txt file in Mail Sender Attachemnt ?

    Hi Friends ,
                      I am reading  an Mail attachement and sending to R3  using PaloadSwapBean and MessageTransformBean  .
                         I used to get attachement as .txt file , name like Ex10185.txt  in one mail . In another mail Ex10186.txt like that.
                        If only thoses file comes then no problem .
    <b>                   IF some times  along with .txt file some .html files are coming by that time my Mail Adapter incorretly reading the .html file.</b>
                <b>      Please tell me how to skip those kind of attachements and read only .txt file</b>
                          Expecting your answers  asap.
    Best Regards.,
    V.Rangarajan

    Hi Michal,
                   Thanks for your reply , Sorry! I am aware of how to write adapter module. Can you please tell me how to write adapter module ?
                      Is there any links available or Blogs ?
                     I am expecting your reply asap .
    Best Regards.,
    V.Rangarajan

  • I want to connect a FLIR camera to my iPad. How can I submit a PAL signal to my iPad?

    I want to connect a FLIR camera to my iPad. How can I submit a PAL signal to my iPad?

    Thanks, too bad. Now I have to get a different tablet, ****.

  • How to skip line for delimited file type?

    Hi, i wanna ask how to skip (example: the first two line) for delimited file type?
    Thanks...
    Here is my script
    Function NY_Skip06Center [strField, strRecord]
    ' FDM DataPump Import Script:
    'Created by: FDM_Admin
    'Date created: 2/28/2006
    Dim strEntity
    'Check first two characters of entity
    For strEntity = 1 to 6
    'Skip line
    Res.PblnSKip = True
    Next strEntity
    End if
    End Function
    But it returns this error when imported
    Error: An error occurred importing the file.
    Detail: Object variable or With block variable not set
    Anyone knows what's wrong
    Edited by: user649207 on Mar 19, 2010 2:15 AM
    Edited by: user649207 on Mar 19, 2010 3:04 AM

    strAcc = DW.Utilities.fParseString (strField, 1, 1, chr(9))
    I didn't look closely enough last time. The above is illogical. The parsestring function parses a string based on a delimiter.
    The function has these arguments:
    String to Parse
    How many fields are in the string
    The parsed field to return
    Field delimiter
    In the above, strField is returning the field specified in your import format. You are also saying that there is a total of 1 field. If that were the case, you wouldn't need to parse anything.
    I am guessing that your call needs to look something more like this:
    strAcc = DW.Utilities.fParseString (*strRecord*, *8*, 1, chr(9))
    Make sense?
    If not, maybe you can include a few sample lines from your data file and that will make it easier to help you.
    Is your import format fixed or delimited?

  • How to skip a worker process

    hi,
    may i know how to skip a worker process
    thanks
    srikanth

    hi,
    what is 11i data model? and how application modules
    are dependent on data model?
    thanks
    srikanthSrikanth,
    Please post same query only once:
    11i data model
    11i data model

  • How to skip a record in flat file to idoc scenario?

    Hi,
    Anybody have good suggestions on how to skip a record(xi not process the record) based on certain conditions?  I don't want to use bpm, anybody has experience with file to idoc can advise how to deal with this situation?
    Thanks,
    Meg

    Meg,
    Its very clear. It can be easily done. I hope u might be knowing about Michal's changing the IDOC occurence blog. Based on that blog change the IDOC occurence to 0...Unbounded.
    Now map all the necessary fields to the target IDOC. On the IDOC root node set condition from source if the source field is not Delete then create IDOC else don't create.
    Source --- If without else[Check condition if  the source is delete] -
    IDOC(root node).
    /people/michal.krawczyk2/blog/2005/12/04/xi-idoc-bundling--the-trick-with-the-occurance-change
    Hope its clear, if not kindly revert back.
    Best regards,
    raj.

  • I bought the iPad Mini and found it icloud account and I do not know how to skip account icloud

    I bought the iPad Mini and found it icloud account and I do not know how to skip account icloud

    Do you mean that you bought it second-hand and the previous owner hasn't removed it from their account ? If you do then you will need to contact the person that you bought it from, only they can remove it from their account : http://support.apple.com/kb/TS4515
    If you mean something else ... ?

  • Living in apartment, here it has only wireless (no wired cable in the room). I've  an airport express (new ) so how can I do for extending signal (wireless) for using in myroom

    Living in an apartment, here it has only wireless (no wired cable in the room) signal using for the internet connection. I've  an airport express (new) ,so how can I do for extending signal (wireless) for using in myroom. because the wireless signal is so weak.

    Unfortunately, you won't be able to. In order to do so, you would have to configure both the AirPort Express and the other wireless router for a WDS. Since it will unlikely that the other router is another AirPort, nor will you have the ability to administer it, you won't be able to get this accomplished.

  • How do i split the digital signal for PIP?

    My tv requires 2 separate A/V inputs to use PIP. How do I split the incoming signal without affecting the signal strength to STB? Everytime I connect a slpitter, the signal looses stregth and I can't HD out of my STB only digital, not HD. Is there a fix or solution for this problem?

    DcmFD wrote:
    My tv requires 2 separate A/V inputs to use PIP. How do I split the incoming signal without affecting the signal strength to STB? Everytime I connect a slpitter, the signal looses stregth and I can't HD out of my STB only digital, not HD. Is there a fix or solution for this problem?
    It is just the nature of beast in that when you add a 2:1 splitter, you will lose 3.5dbm of signal strength (more loss per leg the larger the splitter.. IIRC a 4:1 splitter a is 7 or 7.5 dbm loss.)
    How many splitters do you currently have from the ONT to that STB? Do you have any 4:1 splitters in the path that you could swap with a 3:1 or 2:1 (leaving no open legs)? 
    I will leave it to someone else to recommeand a MOCA amplifier, but that may be you only possible solution. It would have to be a MoCA amplifier, as the STB requires 1150Mhz to receive guide info, etc.. A traditional signal booster typically does not pass frequencies higher that 850-950Mhz. 

  • How to skip selection screen? Please help!

    Hi Experts,
           I have a report program that has a default selection screen (1000) and ALV output. First selection screen is displayed and on execution ALV is shown.
    My requirement is, if the user is not authorized to run this report then selection screen should be skipped and instead display a error page. This error page is nothing but some write statements in ABAP displaying error icon and error info.
    Currently I have written the authorization check in the INITIALIZATION event. Here I am setting a flag if the user is not authorized followed by "write" statements showing error info.
    But when I run the report, error info is not displayed and instead selection screen loads even though the user is not authorized. I have written the selection screen code in the TOP include.
    So what shall I do? How to skip the selection screen?
    Are there any other better ways to handle my case?
    Thanks
    Gopal

    Got it.
    CODE:
    REPORT  zzsorttry                               .
    SELECTION-SCREEN BEGIN OF SCREEN 1001.
    PARAMETERS : p_vbeln TYPE vbak-vbeln.
    SELECTION-SCREEN END OF SCREEN 1001.
    DATA : flag.
    INITIALIZATION.
    *C-- Put your authorization check here.
      IF 1 = 1.
        flag = 1.
        LEAVE TO LIST-PROCESSING .
      ELSE.
        CALL selection-screen 1001.
      ENDIF.
    START-OF-SELECTION.
      IF flag IS NOT INITIAL.
        CLEAR flag.
        WRITE: 'User', sy-uname , 'not authorized to use this report'.
      ENDIF.

  • How to skip the date in breakdown maint order

    Dear PM Guru's,
    please suggest me how to skip the date inbetween the two working days. please check the below scenario: based on factory calendar (production ) saturday was holiday. one breakdown maintenance order was opened on friday afternoon and its closed on sunday afternoon. now user wants only breakdown hours of production running days/ hours. production was produced upto saturday earlymorning and its renewed sunday morning. where as saturday producion was not planned and its not produced , so user wants to skip that time from the breakdown duration calculation. please suggest me is it right practice? if its right how we have to do in SAP? please let me know it.
    thanks in advance to all the PM guru's
    regards
    Jalu

    Hi,
        check this link Equipment Downtime
    I believe u may have to recalculate the breakdown hrs using some FM in user exit QQMA0014 QM/PM/SM: Checks before saving a notification

  • How to skip the spaces, ' etc when passing the parameter to srw.run_report?

    Hi, I have got problem with passing parameter to srw.run_report. It seems it doesn't take the special symbols such as space, ', etc.. the statement is like:
    srw.run_report('report=test1 p_name='&#0124; &#0124;:p_title);
    if :p_title is "JOE", there is no problem to pass it, but if the :p_title is "JOE LI", then the value of the parameter can be passed to p_name.
    Does any one know how to skip those special symbols in the string when passing it to srw.run_report. Thank you very much.
    Joe

    Hi,
    Try this :
    srw.run_report('report=test1 p_name='&#0124; &#0124;
    chr(34)&#0124; &#0124;:p_title&#0124; &#0124;chr(34)
    );

  • How to skip validations in ADF on click of cancel button

    Hi,
    I am new to this technology. i Have used ADF components required property to do Required filed validations. Whne i click on Cancel button i dont want the validations to get executed. How to skip validations in ths case?
    I am using ADF 11g and JSF 2.2

    Set immediate property of the cancel button to true.
    Check this out.
    http://jobinesh.blogspot.com/2009/08/how-to-skip-validation.html
    -Arun

Maybe you are looking for

  • Multiple phone hookup question.

    How do I hook up multiple phones to a new digital voice installation?Can i just plug into my old phone system input bus?

  • Trackpad - tap to click gets reset on laptop restart

    I have set my trackpad setting to "tap to Click" but it gets reset every time I restart my macbook pro. Could you please help me overcome this problem!?

  • IE 11 cross origin images are not loading in canvas

    S3 image urls are not loading in canvas for the first time ,image loads if the refresh the screen or the developer tools is open. To reproduce the issue browser cache need to be cleared each time. tried with img.onload = function() {} and img.crossOr

  • Entries in the Address Book

    I am trying to enter contact information in the Address Book but I can't get beyond this page. Whatever happened to all the various fields ? When I enter a name, this is all I get. Clicking on Edit only brings up the Company field. Where did all the

  • Graphing Issue

    Hi, When outputting a key value, brackets are put around the key value to differentiate it from the text.  Ex. [CC01] Company Code 01. This is what you would get if you output the key and text.   In my graph I'm only outputting a date and the bracket