While the loop records all the data

Hello

I have a LabView program containing two while loops. The first is used to increment a frequency on our machine and the second, which is located in the first, used to take a certain number of points of data to this frequency. After taking these data points, the frequency is supposed to rise again. This happens for a set number of times.

The problem I have is that the data file as the data points in the second then the loop are supposed to be written in does not display do not all the data points in the program should have taken. For example, if we want the first loop increment of 10 times and the second to take 5 data points every time, we expect to see 50 data points in our files. But we see only 10. The watch file always only an amount of data points equal to the first loop iterations. If we cut our data at that time.

Someone has an idea what could be our problem?


Tags: NI Software

Similar Questions

  • While the data activity indicator display is recharging of Webservice

    Hi guys,.

    How can I display an indicator of activity while the data or recharging of Webservice?

    Currently I used Timer to set the agenda.

    Thanks in advance.

    Concerning

    Hey,.

    You can make it visible when you start the application, and on the function of earphone Event.COMPLETE, you can configure it to hide the indicator. hope that helps. Good luck!

  • Problem with the rule while the data is loading files

    Hello

    I'm having a problem trying to load data to an application that uses rules files. Load data files were from another application using the DATAEXPORT. I have two files for each entity. One is for the current year and one for next year. The source and target applications are different, so I do all the mapping using rule files.

    The data of the current year file contains data for CurrMonth:Dec & CurrYear. The following year data file contains data for Jan: Dec and the next. I made rules for each entity files load data into the application and has made the mapping when creating these rules files using set 12 months.

    The problem that I am facing is that I'm able to correctly load the following year in the target application, my rules file is the right month for each column mapping. But for the year underway, I have just 2 columns of data (whereas & CurrMonth = Nov) and so when I'm trying to load the data file using the rules file, it is to map the November and December months like January and February and charging at these months of FY11, which is false.

    I don't know how to solve this problem. The current year data file it will always change in terms of months then how can I modify the rules that he recognizes that the months are coming in and where to put the data.

    Please let me know your suggestions. Any help will be appreciated.

    Thank you!
    ~ Hervé

    PS ~ it was the same problem, I was faced with a few months back when I posted this question and I followed the advice in this post, but always faced to the question - DATAEXPORT and rules files

    Published by: Gwen on December 20, 2011 08:25

    Adella,
    We have faced a similar issue and we were able to solve it by sticking to these months dimension members (& currmonth: dec) and generate the header
    The export file created when paste us the dimension names in front of months on the export file
    Suppose that your export file is currmonth.txt and she Nov and Dec
    first line of your export file should look like this
    'Version' 'Year' 'Scenario' "XYZ" "123" "ABC" "Account", "Nov", "Dec".
    We have created a batch file to add this to the original export file, it looks like this
    Paste d "\0" Header.txt "D:\Hyperion\products\Essbase\EssbaseServer\app\xyz\123\currmonth.txt" > "D:\Hyperion\products\Essbase\EssbaseServer\app\xyz\121\currmonthchange.txt".

    Header.txt is a text file that it contains ("Version" "Year" "Scénario" "XYZ" "123" "ABC" "count")

    change your rules file so that it generates the header in your source (currmonthchange.txt)

    rulefile--> the properties of data source--> header--> data records source header--> recording containing the names of data filed charge (set 1)

    I hope this will solve your problem

  • How to clear the field of the image stored while the data type is LONG RAW

    Assalam O alaikoum

    I have a table of LONG RAW data type field. I made a form on that table. and the images stored in this area to help after the program.

    DECLARE
    filename VARCHAR2 (256);
    BEGIN
    filename: = GET_FILE_NAME;--(File_Filter = > ' JPEG (*.)) JPG; *. JPG; *. JPE; *. (JFIF)');
    READ_IMAGE_FILE (filename, 'JPEG', 'work_order.article_image');
    END;

    And he stored images when I commit / saves the form.

    Problem:

    I want to remove the image from this specific record field. I don't want to delete the entire record, I don't want to replace the image. I want to only empty this field.

    HOW CAN I DO?

    +"... I don't want to replace the image. I want to only empty this field... « +

    Have you tried:

    Go_Item('image_item');
    Clear_Item;
    

    François

  • increase the value of minute in 14 minutes, while the data is inserted into the table

    Hello

    I'm having the asp page that connects with the DB to insert values into the table. One column is date data type. Value from this asp page must be incremented to 14 minutes before be inserted into the table.

    How can I do this?
    sqlG="INSERT INTO AEMU " &_
                                                      " (MSISDN,X,Y,TIME_STAMP,REQ_ID, " &_
                                                      "  COUNTRY_G)" &_
                                                      " VALUES " &_
                                                      "('"& msid &"'," &_
                                                      "'" & X & "'," &_
                                                      "' " & Y & " '," &_
                                                      "to_date('" & Day(TrueTimeStamp) & "-" & MonthName(Month(TrueTimeStamp), True) & "-" & Year(TrueTimeStamp) & " " & Hour(TrueTimeStamp) & ":" & Minute(TrueTimeStamp) & ":" & Second(TrueTimeStamp) & "', 'DD-MON-YYYY HH24:MI:SS')," &_
                                                      "' " & req_id & " '," &_
                                                      "'" & CountryName_G & "')"

    Try this way:

    sqlG="INSERT INTO AEMU " &_
         " (MSISDN,X,Y,TIME_STAMP,REQ_ID, " &_
         "  COUNTRY_G)" &_
         " VALUES " &_
         "('"& msid &"'," &_
         "'" & X & "'," &_
         "' " & Y & " '," &_
         "to_date('" & Day(TrueTimeStamp) & "-" & MonthName(Month(TrueTimeStamp), True) & "-" & Year(TrueTimeStamp) & " " & Hour(TrueTimeStamp) & ":" & Minute(TrueTimeStamp) & ":" & Second(TrueTimeStamp) & "', 'DD-MON-YYYY HH24:MI:SS')+14/(24*60)," &_
         "' " & req_id & " '," &_
         "'" & CountryName_G & "')"
    

    Max
    [My Italian blog Oracle | http://oracleitalia.wordpress.com]

  • Please help: measure is missing from the data store

    Hello

    I have an a 20 TB drive data store and a magnitude of about 40 TB (local disks, areca raid controller).

    Long story short, I had to delete and re-create the volume 40 to on the RAID controller (without initialization, of course).

    Now all the data is there but eui has changed for the 40 to volume and vmware is unable to mount.

    log/hostd.log:2016-05-10T07:17:16.107Z of information pass [3D380B70] [Originator@6876 sub = Vimsvc.ha - eventmgr] event 118: a connected device eui.001b4d2051676528:1 may be offline. [Backvol1, 55e980d4-386dfa7f-7cb2-0cc47a09ba36] file system now is in a degraded state. While the data store is always available, parts of data residing on the extent which went offline may be inaccessible.

    [root@esxi2:/vmfs/volumes/55e980d4-386dfa7f-7cb2-0cc47a09ba36] esxcli instant vmfs storage list

    Volume name:

    VMFS UUID:

    Can mount: false

    UN-mountability reason: a few missing extensions

    Can will: false

    Reason for non-resignaturability: some missing extensions

    County of measure pending: 1

    Can someone help me please?

    Thank you!

    Hello
    You asked for instructions on how to readd a missing measure.
    Basically, it's pretty easy:
    in the VMFS to VMFS-based volume header section, you can assign extends it.
    Lets say that the basic volume is mpx.vmhba1:C0:T3:L0:1
    first of all extend is mpx.vmhba1:C0:T4:L0:1
    second extension is mpx.vmhba1:C0:T5:L0:1
    Then you will see this string in the VMFS header:
    vmhba1:3:0
    and a little later

    MPX.vmhba1:C0:T3:l0:1

    MPX.vmhba1:C0:T4:l0:1

    MPX.vmhba1:C0:T5:l0:1
    Just change the list of stretches.
    But: normally you can't change this section at all, and to add to the confusion, these values are stored in RAM is not trivial to change this value correctly.
    I highly recommend that instead of try it yourself and repeat all the mistakes I made while learning it - call me.
    I rather help you personally to give dangerous advice that will probably make things worse.

  • Save all the data for a while loop

    I already asked a similar question, but it is perhaps not very clear, and there are a few concepts that I did not understand.

    1. I have a keyboard to generate flow DTMF signal (I call it stream because it contains several shades that consist of a full phone number)

    2. I would like to save it as a wav file, but I guess that another format is correct and because the writing on a wav file does not support add so for this particular case, I use writing waving instead of writing to wav format

    My approach is to have a structure of queue so that I can write each iteration results in a file.

    (i) when I try to retrieve the data, there's nothing but 0.

    (II) my intention is to get 8000 samples per second (fs = 8 000) but he back up data so fast

    I have attached the file so if there is a way to solve problems, please help me.

    This vi includes many elements discussed above. There are no provisions for the intervals 'no signal '.

    Changes: Replaced with native features of LabVIEW Mathscript node. Mechanical Action to latch release button.  Cluster to array replaces Unbundle and table to build. Reshape the table to match the shape of the keyboard. Separate searches for frequencies of line and column. Note that this is easily extensible to handle the 4 x 4 keyboard. Structure of the event added. Added the stop command (but not implemented stop to the loop of the file). Added indicators for diagnostic purposes. Added FFT spectrum and graphic.

    I disabled writing to part of the file for testing.

    Lynn

  • storage of the data output of while loop

    Hello

    I have a data acquisition system set up to read the couple of a transducer. The output needs to be fed with an excel document, once the program stops running, or when a key is pressed.

    with the current code attached, the excel document is created, but it only shows the most recent series of data. How to make the table to store all the data coming from while loop?

    Ive only been programming with labview for two weeks, so chances are that it is something simple, but please help us in any case.

    JM

    To get what you expect, the Terminal output of table a while loop right click and select the option activate Indexing. Usually if you want to save data use queue to pass data inside the while loop to another loop/VI and perform data recording. For all that you have examples, please do a searc in LabVIEW help > find examples.

  • Get the data of while loop!

    Ladies and gentlemen,

    I am new to Labview, and I have many doubts!

    But now I need a help of a simple question!

    I need to get a Boolean status within a while loop and together a status outputs digital DAQ, but as I read in this forum, is impossible to use a tunnel to do that!

    I tried to use a LOCAL VARIABLE, but I think that I don't know how to use it!

    Please, check the photo and help me if possible... How can I get the status in real time of the Boolean (saida)?

    Thank you!

    Use a single loop that continues to turn and place all the code, including the output of data acquisition on the inside (why use separate loops if all run at the same rate?).

    To better help, fix the real VI instead of an image. What are the typical values for MP1... MP3? What is the significance of the division by one?

    You could also write simple lines after each loop, remove the dependecy of table built, data which cannot be done once all loops have ceased.

    (I also would not use one of these weird case of departure strutures.) Is there a while looping around it or you use "continuous operation"?)

  • Extraction of the data at the request of the race while loop

    Hi all

    Can anyone help please with the attached VI. Basically, I want to add another button and every time that you press this button, I want the data inside the loop to write once to the worksheet and not at any time before. I want continuely run the loop.

    Please, try to help with a sample VI. I'm fairly new and have difficulty finding the right building blocks .

    Best regards

    Maiz

    Use a button inside the loop.  Put the code to save the data within a structure of matter inside the loop.

  • How to acquire a position of the data series in a while loop that generate a position once a time in labview?

    My program is complete in a while loop. Once it runs, it will use kinect to keep my data of position of the head, so it will generate a position once. I want to reach 5 positions and can calculate 3 speed and acceleration 2. How can I get 5 times while it generates 1 time?

    If your data are made at the edge of the while loop and you right-click where the wire exits the while loop, you can select "Enable Indexing" that will produce a table of the data received as large as the number of times in the loop. You can also check the "examples: help find ' ' Producer/consumer', which will allow your receiver (producer) loop to get the data and send it to a processing loop (consumer).

  • In the attached VI why looping force the type of data while the other does not?

    In the attached VI why looping force the type of data while the other does not?

    I'm guessing that you have created the Enum on the front panel.  If you right click and create an indicator, it corresponds to the type and be an enum.  LabVIEW represents enums as U16, but because the types are not the same (for example, your enum has 3 values, but a U16's 65 536 values), LabVIEW automatically converts value (or converts) the smallest representation (enum) in the largest value (U16).

  • Record is in sight, but select doesn't give all the data

    Hello guys!
    I have a very strange problem here, which I have already discussed for hours now. I can't find a logical explanation for the behavior.

    I have a view composed of several paintings, including one via a database link. No problems at all so far!
    A user just informed of a case where a specific record data are not displayed. Therefore, I checked the problem and discovered that the individual selection queries don't produce any result for that specific record. A query that returned a result! ;-(

    Now I checked the view and it seems perfectly fine. When you select everything from this point of view where the id is that of the problem record, all columns are returned.

    The record exists, the perspective seems to work and also updated (changed some values in a table that contains the view and the view updates immediately)-I have no idea how to solve this problem! Maybe you have an idea? First of all, I think that it is not necessary to view code view, I guess! It's long enough!

    I'd appreciate your answers and advice!

    Thousand thanks in advance!

    Sebastian

    Suppose you have the following data...

    SQL> With test_data as
      2  (
      3  SELECT 11 int_qb_nr, 12 str_gebiet, 31 str_lrt_sub, 'GEH' test_col FROM Dual
      4  UNION ALL
      5  SELECT 11,12,31, 'DEF' FROM Dual
      6  UNION ALL
      7  SELECT 11,12,31, 'ABC' FROM Dual
      8  )
      9  -- "end of test data "
     10  SELECT * FROM test_data
     11  /
    
     INT_QB_NR STR_GEBIET STR_LRT_SUB TES
    ---------- ---------- ----------- ---
            11         12          31 GEH
            11         12          31 DEF
            11         12          31 ABC  -- " I need this data to be output "
    
    3 rows selected.
    

    Your query (Simplified)

    SQL> With test_data as
      2  (
      3  SELECT 11 int_qb_nr, 12 str_gebiet, 31 str_lrt_sub, 'GEH' test_col FROM Dual
      4  UNION ALL
      5  SELECT 11,12,31, 'DEF' FROM Dual
      6  UNION ALL
      7  SELECT 11,12,31, 'ABC' FROM Dual
      8  )
      9  -- "end of test data "
     10  SELECT * FROM
     11  (SELECT int_qb_nr, str_gebiet, str_lrt_sub, test_col,
     12         ROW_NUMBER ()
     13         OVER (PARTITION BY int_qb_nr, str_gebiet, str_lrt_sub ORDER BY" int_qb_nr, "
     14        "  str_gebiet, str_lrt_sub " ) rn
     15    FROM test_data)
     16    where rn = 1
     17  /
    
     INT_QB_NR STR_GEBIET STR_LRT_SUB TES         RN
    ---------- ---------- ----------- --- ----------
            11         12          31 GEH          1
    
    1 row selected.
    
    -- " Included Double quotes to highlight  "
    

    Oracle may not assign the same number of line for several data set that occurs for the group you mentioned in the PARTITION BY Clause. (int_qb_nr, str_gebiet, str_lrt_sub). Find a way to extend your ORDER BY Clause in the ROW_NUMBER function.

    Something like the following:

    SQL> With test_data as
      2  (
      3  SELECT 11 int_qb_nr, 12 str_gebiet, 31 str_lrt_sub, 'GEH' test_col FROM Dual
      4  UNION ALL
      5  SELECT 11,12,31, 'DEF' FROM Dual
      6  UNION ALL
      7  SELECT 11,12,31, 'ABC' FROM Dual
      8  )
      9  -- "end of test data "
     10  SELECT * FROM
     11  (SELECT int_qb_nr, str_gebiet, str_lrt_sub, test_col,
     12         ROW_NUMBER ()
     13         OVER (PARTITION BY int_qb_nr, str_gebiet, str_lrt_sub ORDER BY "  int_qb_nr, "
     14       "   str_gebiet, str_lrt_sub, test_col " ) rn
     15    FROM test_data)
     16    where rn = 1
     17  /
    
     INT_QB_NR STR_GEBIET STR_LRT_SUB TES         RN
    ---------- ---------- ----------- --- ----------
            11         12          31 ABC          1
    
    1 row selected.
    
    -- " Included Double quotes to highlight "
    

    I hope this helps.

    Kind regards
    JO

  • Help! Lost all the data and contacts while Hotsync-ing

    OK - I'm a fool.  I have a Treo 650 and have had problems of synchronization - lying there.  Today, I had the brilliant idea to delete all my contacts and calendar on my computer and starting over.  I put the phone hotsync and after a few minutes received an error message saying that the sync-ing process was interrupted.  Then I discovered that all the data of contacts and the calendar on my palm has been eliminated.  I thought that I had made a backup, but, just, did a search on my computer (XP Home) and couldn't find any file with .aba.

    Help Help Help

    Paul

    I had hotsynced.  There seems not to be problems with the settings on the computer, but the hard reset was eliminated my cable/dock setting.  I've recreated in this regard, hit hotsync on the 650, and he ran through the whole process.  Data on 650 and PC.  Now, to re - create my calendar

    Thank you very much!

    Message is about: Treo 650 (Cingular)

  • Save data in Excel, while the program continues to flow

    Dear community Labview,

    I am in charge to create one based on the acquisition of data (RPM, power, torque, pressure, temperature) program which should, among other things, to connect its measurements in excel. I had no problems to create the journal itself, however, I still have a problem: I'm supposed to implement a function whose task is to save these values while you press a record button down and stop recording once a stop button is pressed. The program is not supposed to stop running - it stores data of a running engine, and the only time where the program is supposed to be stopped is when we stop the engine.

    Now, I tried several ways to implement, but have failed so far, get the error 2146827284 to undefined location (an error in excel functions, it seems). The ways I've tried:

    • Flat sequence structure, first performing the writing to Excel, then stop logging in the VI collector, then record/stop reset to the original values.
    • Writing to Excel, then taking a Boolean result from the structure of the case where the entry is made and feeding it back to stop logging and the initials reset buttons.
    • I have an idea of the break from the while loop when saving files / creation is done, but I don't know how to implement, especially if it does not interfere with the work of acquiring data on the acquisition.

    I tried to include a Lite version is the most of the VI troubleshooting easier for one who is willing to help me. Recorded in LV2012, I think this is the first version that supports excel features that I put in place.

    Included are the VI, and the very basic excel template that I use for this test.

    Thank you for your attention, and I hope that I didn't offend anyone with any ignorance that may introduce the VI. I'm rather new to Labview.

    Hi, there are many things to improve. One thing that can solve your problem quickly is to change the mechanical action of the "stop recording". Currently, it is set on "change when you press on. You want a locking mechanism, so it only exports the data once. Try "lock when released. As it is right now, as soon as you click "stop recording", he tries to write and re - write and rewrite your Excel sheet as quickly as the main while loop will allow it. Change it to lock so he writes only once.

Maybe you are looking for