Create a beep at specific intervals

Hello,
I was only introduced to LabView today and must create a program that will produce a beep sound at (random) intervals and then repeat the cycle for a behavioral experiment I am conducting.
In other words, I have to create something with the following trial pattern: 3s silence, 1s beep, 2s silence, 1s beep, 5s silence, 1s beep (repeat cycle).
I got as far adding the beep.vi and making the necessary adjustments according to this tutorial: http://www.ehow.com/how_12122458_create-sound-numbers-labview.html
but another issue I came across is the lack of synchronization between the Boolean function and the sound production from the beep (It will continue to beep after pressing "stop"). Additionally, changing the frequency values did not change its tone...and a single beep.v's frequency would not be adjustable for the trial pattern I have mentioned above.
I would greatly appreciate any help (visuals would be much appreciated as well). I am a complete newbie to programming and my ineptitude has been stressing me out all day.
Thank you!!!!

Hi unevolved,
Sorry, I forgot to add another question. May I ask what LabVIEW version that you are running on?
Based on what you mention on the first point: following trial pattern: 3s silence, 1s beep, 2s silence, 1s beep, 5s silence, 1s beep (repeat cycle), I believe you'll need to use something like a state machine. I believe this might explain about state machines: http://www.ni.com/white-paper/7595/en/ and http://www.youtube.com/watch?v=JyJxNrgABsI.
I have created a rough program based on your cycles. The below screenshot is what i can think of based on your requirements. Presuming that you have read about the state machines from the link I have provided, I'll explain the code   
Basically, I have created 3 states, cycle 1 (3s silence, 1s beep), cycle 2 (2s silence, 1s beep) and cycle 3 (5s silence, 1s beep). First and foremost, you'll need to create a basic state machine structure which consists of a enum (with the state names - http://labviewwiki.org/Enumerated_type), while loop, shift registers (which passes the value from the current iteration to the next) and case structure (each with their own state). 
As you can see, I have a main case structure which controls if the loop operation and within it is the nested case structure which is the state machine itself. For each case, I have an array of enums (which I have specified the names to be Silence and Beep) and a for loop which contains the case structure which does both silence and beep.
As you noticed that the for loop has a indexing tunnel. This allows the for loop to run 2 iterations. On the first iteration, the 1st index array: Silence will be as an input for the case structure and executes Silence case state. On the second iteration, the second index array: Beep will execute the Beep case state.
The below is the silence state for the 1st for loop iteration:
The below is the beep state for the 2nd for loop iteration:
For Silence, I have used wait(ms) to provide the pause before it goes to the next state "beep".
The whole operation will basically repeats from Cycle1 -> Cycle2 -> Cycle3 until you hit the stop button. If you hit the stop button, the main case structure will be as below:
Which should stop the while loop. 
Hope it helps.
Warmest regards,
Lennard.C
Learning new things everyday...

Similar Messages

  • Help to create a monitor for specific non-windows ID generated by script

    Hello all,
    Do you know how to create a monitor for specific event ID (4,5,6,7 & 8) in SCOM (with alerts) I know how to create a monitor but not how to create it for specific servers. I would like to copy those monitors in the Management Pack that I override (because
    the original was locked).
    Thanks for your help.

    Hi,
    you can create new DISABLED monitor in new management pack.
    After that you will enable this monitor for specific servers using overrides.

  • Call a function at specific intervals

    Hi,
    I need to call a function or page at specific intervals. Or I need a ping a page at specific intervals, to keep the session alive.
    I found window.setInterval() works fine. Is there any such function in coldfusion?

    put your function in a cfc and use cfschedule to call to that method.  Example :
    remoteCalls.cfc
    <cfcomponent>  <cffunction name="callMe" access="remote">     .. do stuff here ..  </cffunction></cfcomponent>
    Setup a scheduled task in coldfusion to call your url every X minutes :
    http://www.domain.com/remoteCalls.cfc?method=callMe
    If you have arguments, pass them in as url variables.

  • Create trace file on specific location

    Hi all,
    I'm working with a 11gR2 Enterprise DB on Linux RedHat 5
    Now I need to create a trace file. This trace will be huge and I need to create it on an specific folder on my system because the udump fs could be small for it. These are the commands I'll use:
    oradebug setospid 3165
    oradebug unlimit
    oradebug event 10046 trace name context forever, level 12
    If I use the "oradebug tracefile_name" I'll get the actual trace file name but, How can I say the specific location where I need to create it?
    Best regards,
    dbajug

    dbajug wrote:
    Hi all,
    I'm working with a 11gR2 Enterprise DB on Linux RedHat 5
    Now I need to create a trace file. This trace will be huge and I need to create it on an specific folder on my system because the udump fs could be small for it. These are the commands I'll use:
    oradebug setospid 3165
    oradebug unlimit
    oradebug event 10046 trace name context forever, level 12
    If I use the "oradebug tracefile_name" I'll get the actual trace file name but, How can I say the specific location where I need to create it?
    Best regards,
    dbajugi dont know of any method that will allow you to do this for a single file, but you can use below workaround since the tracefile name is predictable
    lets say your database name is ORCL
    the ospid is 3165, so the tracefile will be created as udump/ORCL_ora_3165.trc
    before starting the trace, you can pre-create it at different location and point a symlink on it, e.g
    touch /lot_of_space_here/trace.trc
    ln -s /lot_of_space_here/trace.trc udump/ORCL_ora_3165.trc
    and now start tracing

  • HT2513 Using iCal on my ipad2 and can't seem to create a repeating event, specifically, an appointment that occurs the second Wednesday of every month.  Any help is greatly appreciated....thanks! iPad 2, iOS 5.0.1

    Using iCal on my ipad2 and can't seem to create a repeating event, specifically, an appointment that occurs the second Wednesday of every month.  Any help is greatly appreciated....thanks!
    iPad 2, iOS 5.0.1

    Although this isn't currently possible in the iOS Calendar app, go to iCloud.com (not on your iPad, but on a computer browser like Safari or Firefox) and log in.  There, you can add an event in Calendar and have the options to make it repeat however you want.

  • Enable to create ldt file for specific program using FNDLOAD submit request

    hi ALL ,
    i am trying to create .ldt file for specific program but the things is that following program creating .ldt file for all the program which are available on instance .
    please suggest me if i did anything wrong in my code ...
    DECLARE
    req_id fnd_concurrent_requests.request_id%TYPE;
    BEGIN
    fnd_global.apps_initialize (user_id => 1012001,
    resp_id => 20420,
    resp_appl_id => 1
    req_id :=
    fnd_request.submit_request
    (application => 'FND',
    program => 'FNDLOAD',
    description => NULL,
    start_time => NULL,
    sub_request => FALSE,
    argument1 => 'DOWNLOAD' ---Mode - UPLOAD
    argument2 => '@fnd:patch/115/import/afcpprog.lct'
    -- -LCT File
    argument3 => '/tmp/concqueues.ldt' -- -
    argument4 => 'PROGRAM',
    argument5 => 'XXFUJI'
    ,argument6 => 'XXSAG_FILE_DATA'
    DBMS_OUTPUT.put_line ('req_id= ' || req_id);
    COMMIT;
    END;
    thanks in advance
    sagar

    thanks for your reply ... Alex
    ... but... no i don't wanna create concurrent program for fndload neither i want to use FNDLOAD script ... the above FNDLOAD Submit request program worked for me and using that i have created ldt but my problem is that program is creating ldt for all program which are registered , it's not picking my my file which i pass as a parameter ...please have look into my code ...
    and please suggest me ..
    thanks
    sagar

  • Can GarageBand create a track with beeps at specified intervals?

    Hi everyone,
    Can I use GarageBand09 to do the following:
    Create an mp3 with beeps (or ticks, or strums or whatever) at specified time intervals:
    for the first minute every 6 seconds, the second minute every 5.7 seconds, the third every 5.4 seconds, etc?
    Any help would be greatly appreciated, as I am not a regular user of GarageBand.
    Thanks in advance!

    Sure. Create a real instrument track with an instrument that does the beep you want, set the ruler to display real time (instead of musical time) and put the notes wherever you want them. Once you have two or three notes with the regular spacing, you can copy and paste them as a group, and so on, so you won't have to place every single note where it belongs.

  • Cannot create new Events in specific Dates???

    I am having a problem creating a new event for a specific date, November 4th. What I did: I duplicated an event that took place in October 30th and dragged it to the desired date, in Monthly View, but iCal doesn't let me drop it in the day I want. The event can be dropped in the previous (3rd) or the next day (5th).
    When I use Daily View, i can navigate up to November 3rd, but then the left-arrow button does not take me to 4th.
    Has this happened to anyone? Can anybody help me?
    (by the way, I am using iCal 2.0.5).

    Hmm....I was able to fix my issues. I'll share it here in the event it can help you.
    While iCal was closed I simply moved to trash the folder "/Users/<my username>/Library/Application Support/iCAl/" I then re-opened iCal and I could then create new or import old ".ics" files, close iCal and re-open with all information being retained. Sweet!

  • Create materialized view with specific column sizes

    Hi all,
    I'm trying to create a materialized view with a specific a column size. Something like
    create materialized view test_mv
    refresh force on demand
    as
    select id,
           cast(my_compound_field as nvarchar2(50))
    from ( select id,
                  field1 || field2 my_compound_field
           from   my_table);But Oracle seems to ignore the cast and takes the maximum size it finds for field1 || field2 in the select query. The resulting table has a column nvarchar2(44) instead of nvarchar2(50).
    This can give a problem when the view is refreshed... there could be new data that exceeds the current size, i.e. where length(field1 || field2) > 44.
    How can I override the column size of a field in a materialized view?
    Edit: Some additional info to clarify my case:
    field1 and field2 are defined as nvarchar2(25). field1 || field2 can theoretically have a length of 50, but there is currently no data in my table that results in that length, the max is 44. I am afraid that there will be data in the future that exceeds 44, resulting in an error when the MV is refreshed!
    Edited by: Pleiadian on Jan 25, 2011 2:06 PM

    Cannot reproduce what you are saying is happening.
    SQL> create table t (a nvarchar2(50), b nvarchar2(50));
    Table created.
    SQL> create materialized view tmv as
      2  select a, b, a || b c from t;
    Materialized view created.
    SQL> desc tmv
    Name                                      Null?    Type
    A                                                  NVARCHAR2(50)
    B                                                  NVARCHAR2(50)
    C                                                  NVARCHAR2(100)
    SQL> drop materialized view tmv;
    Materialized view dropped.
    SQL> create materialized view tmv as
      2  select a, b, substr(a || b, 1, 10) c from t;
    Materialized view created.
    SQL> desc tmv
    Name                                      Null?    Type
    A                                                  NVARCHAR2(50)
    B                                                  NVARCHAR2(50)
    C                                                  NVARCHAR2(10)
    SQL> select * from v$version;
    BANNER
    Oracle Database 11g Enterprise Edition Release 11.1.0.7.0 - 64bit Production
    PL/SQL Release 11.1.0.7.0 - Production
    CORE    11.1.0.7.0      Production
    TNS for Linux: Version 11.1.0.7.0 - Production
    NLSRTL Version 11.1.0.7.0 - Production
    SQL>Edited by: 3360 on Jan 25, 2011 8:10 AM
    And with data
    SQL> insert into t values ('3123423423143hhshgvcdcvw', 'ydgeew  gdfwe   dfefde  wfjjjjjjj');
    1 row created.
    SQL> commit;
    Commit complete.
    SQL> desc tmv
    Name                                      Null?    Type
    A                                                  NVARCHAR2(50)
    B                                                  NVARCHAR2(50)
    C                                                  NVARCHAR2(10)
    SQL> select * from tmv;
    A
    B                                                  C
    3123423423143hhshgvcdcvw
    ydgeew  gdfwe   dfefde  wfjjjjjjj                      3123423423

  • Creating arrows to indicate specific point on a frame

    I am in the middle of a project using FCP HD and I need to create arrows to pint to specific body parts on either a photo or video. Is this something I have to do in photoshop or can I do this in FCP? I really have know idea how to go about doing this or what program to use...thought I would start here. i would appreciate any advice on this.
    Thank you.

    I have always created my arrows in Photoshop and then imported them into FCP. Works real well and is very easy to do. I now have a file with different colored arrows to be use when ever...
    Hope this helps
    Gary

  • Creating publishing page in specific folder and with custom page layout using JSOM

    Hi!
    I have a site collection under my root, in which I have a page library with a folder inside. I want to create a publishing page inside the folder using JSOM. The API provides the following information on the three possible ways of how you can create a publishing
    page.
    PublishingPageInformation with all defaults.
    PublishingPageInformation.Name and PublishingPageInformation.PageLayoutListItem.
    PublishingPageInformation.Name, PublishingPageInformation.PageLayoutListItem and PublishingPageInformation.Folder.
    Source - SP.Publishing.PublishingPageInformation Properties (sp.publishing)
    Since I want to create the page in a specific folder in the page library, I have to go for the last option.
    I have a function call chain that look as follows:
    getLanguageID(webUrl, languageID)
    .then(function(resolveVal) {
    language = resolveVal;
    return checkPageExist();
    .then(getEditorialNewsFolderJSOM)
    .then(getAssociatedPageLayoutListItem)
    .then(addPublishingPage)
    The first two methods, 
    getEditorialNewsFolderJSOM
    getAssociatedPageLayoutListItem
    fetches the required data as SP.Folder- and SP.ListItem-objects.
    The problem occurs when
    addPublishingPage
    is called. This method, in turns calls this function. 
    var pageInfo = new SP.Publishing.PublishingPageInformation();
    pageInfo.set_name(publishPage.title);
    pageInfo.set_pageLayoutListItem(pageLayoutListItem);
    pageInfo.set_folder(editorialNewsFolder);
    pageCreationContext.newPage = pubWeb.addPublishingPage(pageInfo);
    clientContext.load(pageCreationContext.newPage);
    clientContext.executeQueryAsync(function() {
    publishPage.isPageCheckOut = true;
    resolve();
    }, function(error) {
    reject(precio.intranet.resource.errCreateContent_addPublishPage);
    The error happens when this function is called with the page information object.
    SP.Publishing.PublishingWeb.addPublishingPage(pageInformation)
    Error:
    Cannot read property '$2t_0' of undefined
    and it happens in SP.Runtime.js.
    I've tried this
    sample code from the MSDN-team, and added the pagelayout and folder properties, but it renders the same error.
    Creating a page directly in the page library with a blank SP.PublishingPageInformation object works perfectly fine!
    What could possibly be wrong? The error isn't something that I can debug myself since it happens in SP.Runtime.js, and the documentation for this is very sparse!
    Any help on how to resolve this issue would be helpful!

    Hi Vinay,
    This may be useful:
    https://blogs.oracle.com/jdevotnharvest/entry/remote_task_flow_vs_wsrp

  • Unable to open newly created files using a specific font.

    Hello everyone!
    All of a sudden, I am not able to open newly created files in Acrobat Pro 9.0 that use a specific font. It seems to be localized to files that are created in Microsoft Words, as I tried to create a document in Pages and was able to open that PDF (using the same font) in Acrobat. I'm not sure what to do at this point...Any ideas?

    Hi,
    If you have recently upgraded to Mac OS X 10.6.7, then have a look here:http://forums.adobe.com/message/3593533#3593533, where Steve Werner had the solution.
    Niall

  • Need to call Web Services in a periodic manner from BizTalk at specific intervals? Does BizTalk have the Timer functionality to schedule?

    In BizTalk Send port, we have an option to enable service window but it works if we need to make a call with in a specific period. My requirement is, For instance to make a call at 9:00 AM, 11:00 AM, 02:00 PM, 04:00 PM like that.
    Is there a way to implement this in Orchestrations or through any windows schedulers? Also, need to consider the performance as well.
    Please shed some light on this. Your help is greatly appreciated!!!
    Vijay

    Your requirement is not of multiple schedule “service windows”, it’s of multiple schedule “service trigger” when you can send the message. Service windows would specify “between” a specific time window like between 1 AM and 2 AM or 9:00 AM and 12 AM. But
    your requirement is send the messages at a specific time.
    You can design this trigger for BizTalk to come using a schedule task to create a triggering file at the scheduled times so that it would trigger BizTalk and its artifacts (a send port) to send a message.
    Or my options would be create WMI script (or powershell or any script) which would start the send port and another script to stop the send port - when it’s called/triggered. Configure a schedule task to run the “start” script so that during send port can
    be started and after few minute call another schedule task which would call the “stop”-script which would stop the send ports. – Simple isn’t it
    J
    If this answers your question please mark it accordingly. If this post is helpful, please vote as helpful by clicking the upward arrow mark next to my reply.

  • Unable to create entry under Product Specific Transportation Lane by BAPI Function Module

    I am developing one RFC function module which will trigger BAPI_TRLSRVAPS_SAVEMULTI2 to create transportation lane (/n/SAPAPO/SCC_TL1) in APO. But I am facing one problem while creating a new entry under “Product Specific Transportation Lane”. But I am not able to pass ‘Group Selection’ radio button field in BAPI11201TRPRODLANE2 structure since I am not getting suitable field, but Product Group Type and Product Group value I am able to pass. Can anyone help me if you have any idea on this?

    Hi Siva,
    Thaks for those function modules. I tried with '/SAPAPO/TR_TRPRODM_PUT'. This deletes from table /SAPAPO/TRPRODM but not from /SAPAPO/TRM and so the means of transport still appears in the transaction. Do you have any idea why it behaves this way.
    Thanks

  • Creating pricelist for a specific inventory organization

    Hi,
    the pricing guide says that a pricelist can be created for the following .
    1.specific to entire organization
    2.specific to one operating unit
    How can this be done??
    Thanks & Regards,
    Nithya

    Hi all,
    The multiple org section of the advanced pricing guide says that u can't have a pricelist specific for a inventory org though at the order management application level we've chosen a specific inventory org as the default org. In the pricelist LOV of the sales order screen all the pricelists that r active will appear and we'll have to choose.
    Regards,
    nithya

Maybe you are looking for

  • Change in start date of tax depreciation not for posting in mid of year

    Hi Experts, Tax depreciation area is not for posting. The fiscal year is from Jan to Dec. I want to calculate tax depreciation from May 2011 based on Net Book Value of tax depreciation as on 30.04.2011. But once I change the start date of tax depreci

  • Ipod with firewire cable

    My son was given an older, 1st gen, I think, Ipod that seems to only work with firewire cable. Is there a way to charge this directly on a laptop with USB portsw only? Will a newer cable with USB work on the Ipod (so far using my cabling it doesn't s

  • Motion 3.0 disappointment

    I just read in the Motion 3.0 Supplemental Documentation PDF that lights DO NOT cast shadows! I can't believe it. Oh well, back to After Effects... 2GHz dual G5 (rev2)    

  • Downgrade iPhone iOS

    I use Dad's old MacMini OS 10.4.11 + iTunes 9 for my music etc I have an iPhone 3GS which worked just fine & syncs with the mac. Two days ago I needed to print some photos so plugged into Dad's PC (XP + iTunes 10) to print. Great news! Upgrade availa

  • Microphone "Input Volume" Setting In "System Preferences" Not Being Saved.

    Hello, While using iChat for the first time, I was experiencing an echo sound. I went into System Preferences > Sound > Input, and changed my "Input Volume" slider from the default 71% down to 25%. This solved the echo problem. The "Input Volume" wil