"How do I generate a sequence of waveforms, like first a sine wave, then a square one, and say again a sine wave?"

"Hello everyone, I hope someone can answer the following question. How do I generate a sequence of different waveforms, with different attributes?
Like, i want to generate a sine wave for some time, then a square pulse of some width and then again a sine wave of some other time. Finally I want to repeat this sequence. I'll really appreciated it if I can get an answer soon. Thank you!

From the previous comments I am assuming that your waveforms are arrays, rather than the waveform data type. I am also assuming that the sine waves on both sides of the square wave are the same signal.
If so then I suggest a slightly different approach. 1. Generate your sine wave, rather than the empty array. The length should be the length of the entire end signal.
2. Generate the square waveform. You can either generate it at the length you need, or you can generate a much larger square wave, and then use the Array Subset VI to get the portion you need. Which method you use depends how you want to implement the whole method.
3. Use the Replace Array Subset VI to place the portion of the square wave at the location (index) of the original sine wave you ge
nerated.
The result of this method will be an array that starts with your sine wave, and then at the index you choose it will place the square wave of the length you want right into the signal, and then finish up with the sine wave for the rest of the signal.
Evan Collier
Application Engineering
National Instruments

Similar Messages

  • Generating a sequence of waveforms with NI 5640R card

    Hello,
    I have a question regarding generating a sequence of waveforms. I want to use the example "NI 5640R analog input and output" (I know this example is capable of generating a QAM or single tone signal) and make changes such that the when i run the VI i want the output to be switching between single tone and QAM and i want this to happen until i stop the VI.
    And in the future i want to add another waveform (sawtooth) and want my output to be switching between the 3 waveforms. Any help regarding this will be grately appreciated.
    Thanks,
    Sandeep. 
    Sandeep Palreddy, Graduate Research Assistance
    The Microwave Remote Sensing Laboratory (MIRSL)
    University of Massachusetts
    151 Holdsworth Way
    Amherst MA 01003-9284

    Hello,
    I have a question regarding generating a sequence of waveforms. I want to use the example "NI 5640R analog input and output" (I know this example is capable of generating a QAM or single tone signal) and make changes such that the when i run the VI i want the output to be switching between single tone and QAM and i want this to happen until i stop the VI.
    And in the future i want to add another waveform (sawtooth) and want my output to be switching between the 3 waveforms. Any help regarding this will be grately appreciated.
    Thanks,
    Sandeep. 
    Sandeep Palreddy, Graduate Research Assistance
    The Microwave Remote Sensing Laboratory (MIRSL)
    University of Massachusetts
    151 Holdsworth Way
    Amherst MA 01003-9284

  • Computer crashed; new C drive. How do I restore/recover my bookmarks on Sync? Would rather not start from square one.

    Computer crashed; new C drive installed. How do I restore/recover my bookmarks on Sync? Would rather not start from square one.

    Without the Sync Key, even if you could connect and download your data from the Sync server it would be useless without your Sync Key. The Sync Key is used to encrypt & decrypt the data going to & coming from the Sync server.

  • How can I play music using An app like Windows mediaplayer afding songs on the spot one by one?

    How can I play music using An app like Windows mediaplayer wo I can Ads my songs one by one during playing?
    Als I am using the normal music app, I can create a playlist, but not change it on the spot as for instance with Windows media player u can easily add/delete songs

    Situation now: I use music app to generatie playlists to play music ok....
    But I want to BE able to add and delete songs whilst I'm playing music.... In Windows media player, you van daisy do and also on android I have seen such ap's, where you can follow the song which is playing and add, remove,sort the other songs, afterwards also the playlist with the manualen choosen songs is not save

  • How can I reset an iPad that won't stay on. I need to clear it and start again

    I had a new iPad mini retina and it worked ok for a couple of days then started turning on and off in a loop until the battery died. Even when charging it turned on and off constantly not leaving enough time to sync with iTunes or reset.  Anyway apple replaced it today. I have come home. Charged it and synced with the last backup and guess what it happened again. Obviously it's something in the backup. So my question is. How can I do a major reset

    It doesn't stay on long enough it turns off as soon as the apple disappears. But thank you for the reply.

  • HT204053 how can I change my apple I'd on my iPad? I created a new one and now it won't it.

    anybody know how I can get my iPad to recognize my new apple I'd when I try to get a new app?

    What id shows in Settings > Store (Settings > iTunes & App Stores if you are on iOS 6) ? If the old one then tap on it and log out of it and then log in with your new id. But any content that you have on the iPad from your old account will remain tied to that account, so only that account will be able to re-download its content or download updates to its apps.

  • How can we generate auto Sequence Number in DFF attribute

    Dear
    We are on r12,rignt now we have an issue to generate sequence number in site Level(DFF) on Supplier window,actully we want
    to generate sequence number on site leve while inserting new record on site level,so how could i achvie this or any way which can help us.
    --thanks                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    You can consider writing a before-insert trigger.
    The trigger generates the next value of the sequence and makes :new.attributen = the sequence value.
    Hope this helps,
    Sandeep Gandhi

  • How to auto generate a sequence.

    Dear all
    The entity Object "OrderEntryEO" has an attribute called"OrdNumber" that indicates the reference number of the order number. the order number is compose be a sequence on the year. For example 1/2011 , 2/2011 , 3/2011 and so on..
    this sequence must be auto generated when pressing save button.
    I have generated the entityImpl java class "OrderEntryEOImpl.java . with accessors , DO_DML method and create method.
    these are the methods
    {code}
    protected void create(AttributeList attributeList) {
    super.create(attributeList);
    {code}
    {code}
    protected void doDML(int operation, TransactionEvent e) {
    super.doDML(operation, e);
    {code}
    Can any one please help me how to Implement this in java code
    Regards

    I wanted to clear up what I consider to be some misinformation on this thread.
    Database sequences, regardless of what magic you try (including setting the cache size to 1) can and will, by their very design have gaps. I don't care if you are doing a web app, a client server app, an SOA app, or any other newfangled or old-fashioned, red screens, green screens, blue screens - DATABASE SEQUENCES IN ORACLE CAN AND WILL HAVE GAPS.
    There is only one way to ensure gap-free sequence numbers upon insert:
    * You must lock the table or use some other device to serialise inserts.
    Any other technique you want to use will not work in a multi-user environment. I'm not going to go through the proof of it here because it's been discussed ad-infinitum (search on asktom.oracle.com if you want to see all of the crazy failed attempts to do it without serialisation). You can also read on asktom about some other techniques (such as assigning the numbers after the fact) that you could consider.
    Bottom line to remember however, Oracle Database Sequences are not and cannot be gap free (at least as of today, the 4th of April, 2011 AD at 08:48 GMT +1)
    John

  • How do I transfer my old iPad to a new person? I bought the new one and I am giving my original to my husband. I can't find out how to set it up for a new person?

    I need help on how to transfer my old iPad to my husband

    Once you're completely satisfied that your new iPad is set up properly with all of your apps and data, simply "restore" the old iPad to its factory-new state from within iTunes. There's a button to do just that on the main screen whenever your iPad is connected.
    You can also perform a factory restore from the device itself, but it takes longer and is only for use in cases when iTunes isn't available.
    Once the old device has been restored to its pristine state, you may set it up however you wish, with a new iTunes account, your shared iTunes account, etc.
    Good luck!

  • How am I supposed to get help with a browser hijacker when I cannot contact no one and every single option in the knowlege base concerning this doesn't work?

    I have some spyware on my system that neither my malaware bytes, comodo antivirus, spybot search and destroy, and a few others I've tried, can detect. The piece of spyware is a browser hijacker that keeps hijacking my firefox homepage and nothing I can do will get rid of it.
    the problem only happens in firefox and no other browser is affected. basically my homepage gets changed to the following:
    http://www.ggle.org.uk/index.php?hp=1&OVKWID=firefox
    Yes there are numerous options about this in the support section but none of them work. I have tried everything and I do mean everything and each time I restart firefox the bloody thing comes back. I've reset the pc - works until you close down the browser and restart it. I've gone into my profiles, i.e. user/AppData/Mozilla/firefox and deleted the .js files, parent.lock files - comes back on firefox restart. I've searched the registry the best I can. I have even put an entry into the Hosts file in syst32 and that has afforded me partial success in that I now get a 404 instead of the pesky and irritating jaamla search page. I have even gone into the About:config settings and wiped the url but no matter what I do it always comes back on restart and it's only with firefox.
    This is something that firefox needs to look into and not assume that just because there are a few answers in the support section that they all work, because all of the options appear to work until firefox is restarted.
    It even comes back after a complete uninstall and wipe - I am at a loss at what to do and where to go next. Please help!

    I think the next step is to use Windows 7's auditing feature to figure out what processes are touching the file other than firefox.exe.
    This is somewhat arduous to set up, but here's what I did. I have Win 7 Pro and I don't know whether this works on other versions.
    (1) Open the Event Viewer to the Security log
    Start menu > Control Panel > System and Security category > Administrative Tools
    This should launch a folder of shortcuts. Double-click Event Viewer. If Windows objects, you may need to right-click> Run as Administrator.
    In the left pane of the Event Viewer, click Security.
    (2) Enable object auditing
    In the Administrative Tools folder, double-click Local Security Policy (or right-click > Run as Administrator).
    In the left pane, expand Local Policies and click Audit Policy.
    In the right pane, double-click Audit object access and turn on both success and failure and OK the change. (screen shot attached)
    (3) Enable auditing on prefs.js
    Right-click your prefs.js file > Properties, click the Security tab, then the Advanced button. In the Advanced Security Settings dialog, click the Audit tab, then the Continue button. (screen shot attached)
    Click the Add button and type Everyone, then click Check Names. After you click OK, you should get a dialog with numerous checkboxes. Clicking the Full Control box for each column should select everything. Then OK that. (screen shot attached)
    (4) Test
    Change a preference in Firefox that updates prefs.js (for example, you can change your home page). Then when you switch over to the Event Viewer, you can click Refresh on the right side (or choose a different category such as Application and then Security again to refresh the list), and you should find a listing in the File System task category for "a handle to the object was requested" for prefs.js, showing firefox.exe to be the active process. (screen shot attached)
    (5) Assuming the test works, exit Firefox and watch for any other process touching the file.
    When you're through, you probably want to turn this all off again, since it does use cycles in the background.

  • HT5622 I just got a new iPhone, how do I set up my iMessage? Keeps telling me waiting for activation, then it comes up and says an error has occurred.

    HHow do I activate iMessage? Keeps saying waiting for activation, and then I do my Apple ID and password then it says an error has occurred.?

    Is your phone activated with your carrier?  Can you make a phone call and send a text message?
    Which country/ carrier?

  • How can I pair my plantronics PLT M20 to my iphone?  It just show the device and says not paired?

    I have been trying to pair my plantronics plt m29 to my iphone and all i get is not paired and shows now discoverable!! what else should I do? I followed the manufaturer directions and what someone said about turning off the iphone bluetooth then put the bluetooth in paring mode and turn on the phone bluetooth.

    it was-the lights were blinking from red to blue indicating that it was in paring mode. Still does not work! any other suggestions?  This is really frustrating- my last on paired just fine but they don't work so well when you wash them!!

  • How to watch videoclips in sequence?

    iPad 3: How to watch videoclips in sequence?

    My question is In Variable tab, If i create a variable say, ZCURYEAR (current year) , Replacement type : User defined Values, and Mark it as "Restriction of values required by user" and "Input allowed by user" and fix the User name Without restricting the fiscal year then : When i run my planning function - i need the pop up so that the user can enter the Fiscal year on-the-fly.
    But i am getting the following error when i donot enter the fiscal year .
    <b>Is there any other way without restricting the variable at "Set variable" and have the user to enter it when they run the planning function ??</b>
    Restrict variable ZCURYR to single value
    Message no. UPC_FW111
    Diagnosis
    Variable XXXX is defined so that the user must restrict the values of the variable (indicator 'Restriction of values required by user' is set). However, you have not defined a restriction.
    Procedure
    Restrict the variable or change the definition of the variable so that restriction is no longer required.
    To restrict the variable, choose Goto -> Set variables and search for variable XXXX in the list. Make the resriction and subsequently continue the planning session.
    To change the variable definition, choose the tab page Variables in the context of planning area XXXX and reset the indicator 'Restriction of values required by user'.
    OR - - - - -
    If i put the Replacement type as : Fixed Value
    and mark "Restriction of values required by user" I have to restrict it there it self...
    Please do advice whatz the best way to do this...??
    Thanks,
    Rohith.

  • I have created an iTunes account on my current computer for my daughters ipod touch and tried connecting my ipod nano and it won't sync and says that it is associated with another iTunes library so how do I merge the two libraries?

    I have created an iTunes account on my current computer for my daughters ipod touch and tried connecting my ipod nano and it won't sync and says that it is associated with another iTunes library so how do I merge the two libraries?

    You do not merge libraries.
    iDevices sync to one and only one computer.
    If you want a single library, you manually move the content from one library to another... all content will still be associated with the Apple ID it was acquired with.

  • Floating photos in 11 any one know how I can keep them in the workspace like elements 6

    floating photos in Elements11, does any one know how I can keep them in the workspace like elements 6 really annoying when looking under photoshop and seeing the photo blocks my desktop or something simular or even blocks the  tools bar opions  at the bottom, which also seems far to big any help in mmaking that smaller or putting it at the top like elements 6 .. ( think I may just go back tho that 6 )

    Hi Barbara B 
    Yes I have the photos floating but they float everywhere   but not with the workspace  If I  move the work area and the photo stays where it was blocking all under it  and as I said the photos tend to over lap into other parts as well when I move it in the work space   Yes i know as clear as Mud 
    Tim

Maybe you are looking for

  • Attachments disappear when moved

    When I move a message with an attachment from my In Box to another Mail (Apple Mail 5.0) folder sometimes the attachment disappears.  How do I correct this?

  • Why won't my Trash empty everything but an HP Folder?

    It wil empty everything else in it except the HP folder.  I don't even know how it got into the Trash..it must have been a mistake.

  • I am not able to download this app

    I have tried to download this app with 2 different Apple ID's that otherwise work. Is there a country restriction? No message - only waiting.....

  • Anyone Having Problems Updating To FCE 4.0.1

    I have just downloaded the FCE 4.0.1 Update rather than have it automatically installed. This means I can use the update again if necessary without a further download. However, when I tried to update the procedure failed, stating that some items were

  • Avviso 20225.

    Quando si installa Acrobat 7.0, il programma di installazione  restituisce l'errore "Avviso 20225: Il programma di installazione di  Adobe Acrobat 7.0 non è stato in grado di creare un nuovo elemento:  Adobe PDF Converter. La stampante Adobe PDF potr