How to use the acquisition of input data acquire a signal at a frequency while writing to the file at a different frequency

Hello I'm trying to read in a temperature of a thermocouple and displayed on a waveform graph and at the same time, I want to write data to a file at a significantly lower frequency.  Currently, I am sampling data acquisition at chaque.01s and I would like a sample to write to the file every 2 s.  I thought of activating/deactivating the option activate the relay every 2 s, but I don't know how to do that and I wouldn't be surprised if there is a standard way to do this, but I've not been able to find.

Thank you

Miguel

If you are sampling of chaque.01s and you want to write a snack every 2 s, what about all the other samples?  You want to just throw away?  You read so 200 samples in 2 seconds.  But you want to write a sample.  You can do it if you don't mind losing the other 199 samples.

You could use the elapsed timer function and the release of the elapsed time of a structure of business wire.  Put your writing inside the real deal function.  Nothing in the case of false.  Make sure that all of the timer to reset automatically.  If every two seconds, the case will be set to true, and will be called the write function.

Tags: NI Software

Similar Questions

  • HOW to use the file/BLOB data temporary - email for multiple users... Please see code

    Dear gurus
    the code below works fine, he sends a good fixation to the first user, but to the 2nd user, it send blank (empty) file.
    What I want, I have read the data from the source and enter the temporary BLOB and use the same data to send several users in the loop.


    create or replace
    PROCEDURE dba_ho.emailattacheulhr is
    / * LOB related operation varriables * /.
    v_src_loc BFILE.
    l_buffer RAW (54);
    l_amount directory: = 54;
    l_pos INTEGER: = 1;
    l_blob BLOB: = EMPTY_BLOB;
    l_blob_len INTEGER.
    v_amount INTEGER.
    / * Related UTL_SMTP varriavles. */
    v_connection_handle UTL_SMTP. CONNECTION;
    v_from_email_address VARCHAR2 (200);
    v_to_email_address VARCHAR2 (200);
    v_cc VARCHAR2 (200);
    v_smtp_host VARCHAR2 (50);
    v_subject VARCHAR2 (500);
    l_message VARCHAR2 (30000);
    l_filename VARCHAR2 (4000);
    CustNo number (8);
    CNAME varchar2 (50);

    cst slider is
    Select a.EMAIL_ADDR, a.CARDHOLDER_NAME
    Cust a
    ORDER BY a.cust_no;

    / * This procedure of send_header is mentioned in the documentation * /.
    PROCEDURE send_header (pi_name IN VARCHAR2, pi_header IN VARCHAR2) AS
    BEGIN
    UTL_SMTP. WRITE_DATA (v_connection_handle,
    pi_name | ': ' || pi_header | UTL_TCP. CRLF);
    END;

    BEGIN
    v_src_loc: = BFILENAME ('DIR_MMAIL', 'MAKPROM.pdf');
    v_from_email_address: = '[email protected] ';
    v_cc: = '[email protected] ';
    v_smtp_host: = 'mailhost.mak.com ';
    v_subject: = 'list of Promotion of Mak;
    -l_blob BLOB: = EMPTY_BLOB;
    / * Prepare the LOB of attachment file. */
    DBMS_LOB. OPEN (v_src_loc, DBMS_LOB. LOB_READONLY); -Read the file
    DBMS_LOB. CREATETEMPORARY (l_blob, TRUE); -Create a temporary LOB to store the file.
    v_amount: = DBMS_LOB. GETLENGTH (v_src_loc); -Amount to be stored.
    DBMS_LOB. LOADFROMFILE (l_blob, v_src_loc, v_amount); -A temporary file in LOB loading
    l_blob_len: = DBMS_LOB.getlength (l_blob);


    Begin
    CSE opened;

    loop
    extract the CSE in custno, v_to_email_address, cname;
    When the output cst % notfound;

    l_message: = 'Dear customer ' | UTL_TCP. CRLF;
    l_message: = l_message | CNAME | UTL_TCP. CRLF;
    l_message: = l_message | UTL_TCP. CRLF;
    l_message: = l_message | "Thanks for choosing. Enclosed please find our current list of promotion for your review. '||
    UTL_TCP. CRLF;
    l_message: = l_message | UTL_TCP. CRLF;
    l_message: = l_message | "Sincere friendships. UTL_TCP. CRLF;
    l_message: = l_message | UTL_TCP. CRLF;
    l_message: = l_message | UTL_TCP. CRLF;
    l_message: = l_message | "To Mak' | UTL_TCP. CRLF;
    l_message: = l_message | ' www.mak.com' | UTL_TCP. CRLF;

    / * Associated with coding UTL_SMTP. */
    v_connection_handle: = UTL_SMTP. OPEN_CONNECTION (v_smtp_host, 25);
    UTL_SMTP. HELO (v_connection_handle, v_smtp_host);
    UTL_SMTP. MAIL (v_connection_handle, v_from_email_address);
    UTL_SMTP. RCPT (v_connection_handle, v_to_email_address);
    UTL_SMTP. RCPT (v_connection_handle, v_cc);

    UTL_SMTP. OPEN_DATA (v_connection_handle);
    send_header ("", v_from_email_address) ;--|| ("<>'");
    send_header ("TO", v_to_email_address) ;--|| ("<>'");
    send_header ('CC', v_cc);
    send_header ('Subject', v_subject);

    -MIME header.
    UTL_SMTP. WRITE_DATA (v_connection_handle,
    "MIME-Version: 1.0 ' |" UTL_TCP. CRLF);
    UTL_SMTP. WRITE_DATA (v_connection_handle,
    ' Content-Type: multipart/mixed; ' || UTL_TCP. CRLF);
    UTL_SMTP. WRITE_DATA (v_connection_handle,
    "boundary =" ' | "'" Sample.SECBOUND' | '"' ||
    UTL_TCP. CRLF);
    UTL_SMTP. WRITE_DATA (v_connection_handle, UTL_TCP. CRLF);

    -Body of the message
    UTL_SMTP. WRITE_DATA (v_connection_handle,
    '--' || "Sample.SECBOUND" | UTL_TCP. CRLF);
    UTL_SMTP. WRITE_DATA (v_connection_handle,
    ' Content-Type: text/plain; "|| UTL_TCP. CRLF);
    UTL_SMTP. WRITE_DATA (v_connection_handle,
    'charset = US-ASCII' | UTL_TCP. CRLF);
    UTL_SMTP. WRITE_DATA (v_connection_handle, UTL_TCP. CRLF);
    UTL_SMTP. WRITE_DATA (v_connection_handle, l_message |) UTL_TCP. CRLF);
    UTL_SMTP. WRITE_DATA (v_connection_handle, UTL_TCP. CRLF);

    -Attachment of e-mail
    UTL_SMTP. WRITE_DATA (v_connection_handle,
    '--' || "Sample.SECBOUND" | UTL_TCP. CRLF);
    UTL_SMTP. WRITE_DATA (v_connection_handle,
    ' Content-Type: application/octet-stream' |
    UTL_TCP. CRLF);
    UTL_SMTP. WRITE_DATA (v_connection_handle,
    ' Content-Disposition: attachment; ' || UTL_TCP. CRLF);
    UTL_SMTP. WRITE_DATA (v_connection_handle,
    "filename =" ' | "MakMail.pdf" | '"' || UTL_TCP. CRLF);
    UTL_SMTP. WRITE_DATA (v_connection_handle,
    ' Content-Transfer-Encoding: base64' | UTL_TCP. CRLF);
    UTL_SMTP. WRITE_DATA (v_connection_handle, UTL_TCP. CRLF);
    / * Write the BLOB into pieces * /.
    While l_pos < l_blob_len LOOP
    DBMS_LOB. READ (l_blob, l_amount, l_pos, l_buffer);
    UTL_SMTP.write_raw_data (v_connection_handle,
    UTL_ENCODE. Base64_encode (l_buffer));
    UTL_SMTP. WRITE_DATA (v_connection_handle, UTL_TCP. CRLF);
    l_buffer: = NULL;
    l_pos: = l_pos + l_amount;
    END LOOP;
    UTL_SMTP. WRITE_DATA (v_connection_handle, UTL_TCP. CRLF);

    -E-mail nearby
    UTL_SMTP. WRITE_DATA (v_connection_handle,
    '--' || "Sample.SECBOUND" | '--' || UTL_TCP. CRLF);
    UTL_SMTP. WRITE_DATA (v_connection_handle,
    UTL_TCP. CRLF. '.' || UTL_TCP. CRLF);
    UTL_SMTP. CLOSE_DATA (v_connection_handle);
    UTL_SMTP. Quit (v_connection_handle);
    -DBMS_LOB. FREETEMPORARY (l_blob);
    -DBMS_LOB. FileClose (v_src_loc);

    End loop;


    EXCEPTION
    WHILE OTHERS THEN
    UTL_SMTP. Quit (v_connection_handle);
    DBMS_LOB. FREETEMPORARY (l_blob);
    DBMS_LOB. FILECLOSE (V_SRC_LOC);
    dbms_output.put_line (SQLERRM); -try to print the error message.
    END;
    DBMS_LOB. FREETEMPORARY (l_blob);
    DBMS_LOB. FileClose (v_src_loc);
    End;

    -end of code

    Help, please.

    Concerning

    S.Garewal

    This is what happens when you copy a code without understanding.
    Take a look at the code here

    /* Writing the BLOB in chunks */
    WHILE l_pos < l_blob_len LOOP
    DBMS_LOB.READ(l_blob, l_amount, l_pos, l_buffer);
    UTL_SMTP.write_raw_data(v_connection_handle,
    UTL_ENCODE.BASE64_ENCODE(l_buffer));
    UTL_SMTP.WRITE_DATA(v_connection_handle, UTL_TCP.CRLF);
    l_buffer := NULL;
    l_pos := l_pos + l_amount;
    END LOOP;
    

    Discover the parameters of DBMS_LOB. READ.
    For the first time it's good reading but your position and the quantity is not initialized when you loop and read again and is not read correctly.

  • HP Envy 700-216: how to use the files in my System Recovery folder on my desktop?

    I had to do a recovery of the system, due to damaged or corrupted Windows files. I backed up my files on 9 DVDs. System Recovery has restored the files in a folder on my desktop, but how do I use them?

    I'm mainly interested in restoring my data to my Quicken 2010 and possibly my 2015 AutoCad.

    You are welcome.

    The only answer I have for not being able to find the files is that they can not have been backed up.  Otherwise, they should be in the folder.  I have to be honest.  I did several laps, but never made a backup of my files.  I always keep my personal data, backups of Quicken, photos, etc. on the external USB hard drives.  If the data are very important to me, I have it on at least two disks.

  • How to use the file that is saved in my new video project

    Ho I use adobe Prime Minister 12 with license elements, and when I download the video and edit (delete a scene of her) I save in my new video project in video format very strange *.prel after that when I try to download files of this new is that with the changes in the system can not download because not suport this format *.ples how do I make changes to the format of the new file that is saved in my new video project?

    Thanks in advance

    stefang

    Your work begins in a project file first items 12/12.1 with the file extension PREL. You can change the content of your Timeline and save the project file in a project file if you do not have ready to export the file to a format for playback.

    When you are ready to export your content published or not fake chronology, you go to the section of publication + part of the open project where you make your choice of export-

    a. file saved on the hard disk of the computer (with various choice of video and audio compressions and file extensions)

    b. burn to DVD, AVCHD or Blu - ray disc

    What do you do?

    a. export your Timeline to file or burn it to a disc?

    OT

    b. export selectively some of the content rather than the entire contents of the timeline timeline?

    For 'a', see section publication + share.

    For 'b '.

    In the editing area of the program, you set the gray tabs on the work area bar to cover the area to export.

    and

    When you get to publish + Share/computer/and your choice, make sure that the choice has an option for 'Hand work area Bar Only' and have a check mark next to this option.

    The screenshot was made with a version earlier than 11, but still applies to the notion of positioning of the grey tabs and share work area Bar only in the export options.

    Please review and consider. For any question or need clarification, please ask.

    Thank you.

    RTA

  • How to use the files from old computer to new iTunes

    I have been using an external hard drive to store and access my media files to iTunes via iTunes on another computer.   I just got a new computer and want to use this hard drive and files of music via iTunes on it.  What is the best way to do this and what are the steps to begin to play the files from the hard drive on the new iTunes?

    I have changed the preferences of the media folder in iTunes without result and sought media when iTunes opens, also without result.   Thank you!!!

    Media preferences are not what you think. Change said iTunes simply to memorize new media at this location. This is the file iTunes Library.itl tells iTunes where your media. If you use the same external drive (and these are the two Macs) copy the old iTunes folder form computer to the same location on the new computer and it will start with the old library.

  • How to use the file transfer Wizard

    I have and old Dell XP and I am go buy

    new Dell with Windows 7.  I'm going to

    disconnect the old computer and with some help

    Setup new computer using Dell Windows 7.

    I want to save, copy and install My Documents,

    My computer, email, and Favorites in new

    computer.  I tried the file transfer Wizard and

    the choice of external hardware is a floppy disk.

    I would like to record information about a cd, if

    possible, and when I get the new computer installation

    that's when I purchase.  I'm not

    technical savy.  Could someone please help.

    Thank you. Judy

    The Complete Guide to Windows Easy Transfer - video

    Carey Frisch

  • Hey, how to use the files as in Firefox for Android?

    Hey all. Since the add-on of Ghostery for Firefox Beta for android (36) has not worked, I contacted Ghostery customer service, and they responded with a beta version of the Ghostery add-on to see if it would work. There is a file as... I was wondering, how can I use it in Firefox for android? To make use of this add-on? Thank you!

    Hi Ererer

    I have never installed an add-on third party directly to the Android operating system (only on the desktop). If you find the as in your folder Android downloads or via the Android file manager if it is in a different directory, try tapping on it and see if it will open in Firefox for Android and settle. Don't know if it will work because this cannot carry on Android and I do not see in our documentatino: https://support.mozilla.org/en-US/kb/find-and-install-add-ons-firefox-android

    Please let me know if the above works.

    See you soon!

    ... Roland

  • How to use the OS on a different language on my Satellite A500-18 t?

    My laptop is Toshiba Satellite A500-18 t with French edition of Windows 7 Home premium.
    I want to change the interface of windows for English, but how can I do this?
    Please, I want a quick help... I would also like its drivers

    Laptops are specific countries and products when you buy your laptop you also buy OS with a single license for your operating system preinstalled.
    If you want the English version, you must purchase Microsoft Win7 disc facilities for the English language.

    All the drivers, tools and utilities that you can find on Toshiba download page under http://eu.computers.toshiba-europe.com/

  • using the function - how to use the values of the input variables on the table select statement names

    Hello community, I have a problem when creating a function. The purpose of this function is to check the table of weather gave yesterday or not. We must check this on different tables on different sachems. We are creating a function with input variables.

    CREATE OR REPLACE FUNCTION IN_SCHEMA.IS_YDAYDATA_TO_TABLE

    (

    in_schema IN VARCHAR2,

    in_tablename IN VARCHAR2,

    in_datefield IN VARCHAR2,

    )

    RETURNS INTEGER

    AS

    -Declaring variables

    v_is_true INTEGER.

    BEGIN

    SELECT

    CASE

    WHEN MAX (in_datefield) = TRUNC(SYSDATE-1)

    THEN 1

    ON THE OTHER

    0

    END

    IN

    v_is_true

    Of

    in_schema.in_tablename

    ;

    RETURN v_is_true;

    END;

    /

    When creating, I got error: [error] ORA-00942 (44:19): PL/SQL: ORA-00942: table or view does not exist

    How to use the values of the input variables on the table select statement names?

    Hello

    Here's a way you can use dynamic SQL statements for this task:

    CREATE OR REPLACE FUNCTION IS_YDAYDATA_TO_TABLE

    (

    in_schema IN VARCHAR2,

    in_tablename IN VARCHAR2,

    in_datefield IN VARCHAR2,

    in_first_date DATE DEFAULT SYSDATE - 1,.

    in_last_date DATE by DEFAULT NULL

    )

    RETURNS INTEGER

    AS

    -IS_YDAYDATA_TO_TABLE returns 1 if in_schema.in_tablename.in_datefield

    -contains all the dates in the in_first_date of the range through included in_last_date

    - and it returns 0 if there is no such lines.

    -If in_last_date is omitted, the search only the data on in_first_date.

    -If in_first_date is omitted, it defaults to yesterday.

    -Time parts of the in_first_date and in_last_date are ignored.

    -Declaring variables

    sql_txt VARCHAR2 (1000);

    v_is_true INTEGER.

    BEGIN

    sql_txt: = 'SELECT COUNT (*).

    || 'FROM ' | in_schema | '.' || in_tablename

    || 'WHERE ' | in_datefield | ' > =: d1'

    || «AND» | in_datefield | '< >

    || 'AND ROWNUM = 1';

    dbms_output.put_line (sql_txt |) '= sql_txt in IS_YDAYDATA_TO_TABLE");  -For debugging

    Sql_txt EXECUTE IMMEDIATE

    IN v_is_true

    With the HELP of TRUNC (in_first_date) - d1

    TRUNC (NVL (in_last_date

    in_first_date

    )

    ) + 1                -- d2

    ;

    RETURN v_is_true;

    END is_ydaydata_to_table;

    /

    DISPLAY ERRORS

    If you must use dynamic SQL statements, put all the SQL statement in a single string variable, such as sql_txt in the example above.  In this way, you can easily see exactly what will be executed.  Comment out the call to dbms_output under test is completed.

    Try to write functions that will address not only the question that you have now, but similar questions that you may have in the future.  For example, now that interest you only to the verification of the data of yesterday, but later, you might want to check another day or range of days.  The above function combines the convenience of a function simple (looks like yesterday data if you don't tell him otherwise) with the power of a more complex function (you can use the same function to check any day or range of days).

  • How to use the queue data Structures stack?

    Hi all, you can tell me how to use the queue, stack, the link in the list... Structures of data in the project of BlackBerry? Thanks for any suggestions!

    BlackBerry devices are not java desktop running. you are limited to the blackberry api, basically j2me + rim extensions, based on java 1.3/1.4 (no enums, no generic, many collections not impl etc.).

    Remove your JRE6 and change your code until there is no more error.

  • Y at - it a paper on how to use the map data the lookup value?

    I'm looking for a documentation where I could find information about the game of card data and how to use the map data configured according to look.

    Any help is very appreciated.

    I found a few threads on data cards:

    http://topliners.Eloqua.com/docs/doc-2434

    http://topliners.Eloqua.com/docs/doc-2817

    http://topliners.Eloqua.com/message/14058#14058

    Maybe that can help you get started

  • How to use the date with the report parameter format

    Hi all

    How to use the date format with this tag function,

    <? param@begin:P_FROM_DATE? > <? $P_FROM_DATE? >

    This date of form source of report and setting is coming as this 2012/11/01 00:00:00.

    So now I need this in MY-DD-YYYY marker. I tried like this..? param@begin:P_FROM_DATE? > <? $format - date: P_FROM_DATE; ' DD-MON-YYYY '? >

    but its giving error. Can someone pls how to convert to the format of date custom.

    Thanks and greetings
    Srikkanth.M

    Problem solved.

    REF this link

    Date Format of XML

  • How to use the data object 'DatastoreHostMount '.

    I train to iterate on the grouping value in vCenter and for each data store found, determine whether a host has mounted data store or if it is visible to the host. I am using data object 'DatastoreHostMount' , but I don't know exactly how to use the object to retrieve the name of host configuration.

    Here's the perl code snippet and I get an error for:

    #get all hosts within cluster and check the connectionState and compare with all datastores found
    #is there a more efficient way to combine this section with the next section?
    
            my $hosts = Vim::get_views (mo_ref_array => $cluster->host);
    
            foreach my $host (@$hosts) {
                    if ($host->runtime->connectionState->val eq 'connected') {
                            my $datastores = Vim::get_views (mo_ref_array => $cluster->datastore);
                            foreach my $datastore (@$datastores) {
                                      print "  Datastore ", $datastore->host->summary->config->name,"\n"
                            }
                    }
                    elsif ($host->runtime->connectionState->val eq 'disconnected') {
                            print "\t|", $host->summary->config->name, "|Disconnected|\n"
                    }
                    elsif ($host->runtime->connectionState->val eq 'notResponding') {
                            print "\t|", $host->summary->config->name, "|Not Responding|\n"
                    }
            }
    

    Cannot call method 'Summary' on some wrapping 71 de./listCluster.pl.

    Disconnection of the end

    =========================================================================

    -William

    Scripts for VMware ESX/ESXi and resources at: http://engineering.ucsb.edu/~duonglt/vmware/

    OK, I remembered how it works. Sorry for the noise:

    |

    My $datacenter = Opts::get_option ('Center');

    My $datacenter_view = Vim::find_entity_view (view_type = > 'Data center',)

    filter = > {name = > $datacenter});

    If (! $datacenter_view) {}

    Die "data center" "» $datacenter. "" not found\n ";

    }

    My $cluster_views = Vim::find_entity_views (view_type = > 'ClusterComputeResource',)

    begin_entity = > $datacenter_view);

    My $counter = 1;

    Print "Clusters found: \n";

    {foreach (@$cluster_views)}

    Print "$counter:". "." $_-> name. "\n";

    My $datastores = Vim::get_views (mo_ref_array = > $_-> data store);

    foreach my {$datastore (@$datastores)}

    my $instances = @{$datastore-> host};

    my $instance = 0;

    while($instance < $instances) {}

    My $x = Vim::get_view (mo_ref = > $datastore-> Home-> \[$instance\]-> key);

    print $datastore--> summary-> name, "Datastore", $x-> name, "\n";

    $instance ++;

    }

    }

    $counter ++;

    }

  • How to use the TRUNC function with dates in the expression builder in OBIEE.

    Hello
    How to use the TRUNC function with dates in the expression builder in OBIEE.
    TRUNC (SYSDATE, 'MM') returns 1 July 2010"where sysdate is July 15, 2010 ' in SQL. I need to use the same in the expression builder in the logical layer mdb column.


    Thanks in advance

    Use it instead:
    TIMESTAMPADD (SQL_TSI_DAY, (DAYOFMONTH (CURRENT_DATE) *-1) + 1, CURRENT_DATE)

  • How to use the recovery CD?

    Hello

    Ive lost the instructions to tell me how to use the recovery CD. I forgot, I need to press to access the disks when I reboot!

    Can anyone help please?
    St. Clare

    Hi clear, before using the recovery CD make you that all important data has been saved to the floppy or USB key because the procedure will erase the entire hard drive. The method for booting from a cΘdΘrom may vary according to the model number of your laptop, but it's something like hold the 'B' button for the Toshiba Startup logo. If this fails you can try to change the boot sequence or use the Toshiba from Windows or the BIOS configuration tool (ESC then F1 when prompted from a cold start) make CD-ROM the first device startup in the list.

    Richard S.

Maybe you are looking for

  • Using the PV formula in numbers

    Hello out there in cyber space. Can someone tell us how we can use the formula PV of Apple in a Numbers spreadsheet?  It is listed in the new forms, but how o to enter the ss? Help much appreciated. Team consult Ultra Luxembourg.

  • Built is not executed in run mode

    Hello I have to PCs. With LV 2013 to develop and create exe files and a second PC with only Runtime installed. Earlier, I tried the first time to run an exe built fresh and got this popup: But I see that it is installed in my Windows 7 64-bit softwar

  • hard drive HP pavilion g6 1325sa error code

    Hi my laptop wifes simply ceased to run correctly the other day, slow to do anything, has been after an update from MS, perhaps coinsidence but when NLB is test Diagnostics HP he has failed the test of shore hard with error code 9LXALM-66 X 755 - MFP

  • Sunrise/sunset and the White Balance

    I have a question about the automatic substitution of the White Balance when shooting sunrises and sunsets. A few days ago I got my first DSLR, the EOS 5 d Mk III. "I know that triangle ISO after the filming of the movie on my Canon a-1 I bought 34 y

  • Is it possible to find the duplicate files easily on XP?

    Hello I threw a lot of data in my hard drive & I don't know that it contains a lot of duplicates/snaps etc. Y at - it a freeware to identify & delete the duplicate, because it creates confusion & occupies space unnecessay. Concerns