Current Position:Home > Which is the best structure for start/stop data logging?

Which is the best structure for start/stop data logging?

Update:10-11Source: network consolidation
Advertisement
Hi everybody,
hope I can explain my problem good enough that anyone can help me:
I have a VI which continuely shows on a graph the voltage of a Analog Input of a DAQ device. Now I want to allow the user to start/stop with a click on a button data logging. Means that a second loop writes to a selected path every ms the data to a spreadsheet file.
At the moment my VI works like this:
You run the VI and Labview asks you one time for the file path, then you can start and stop the data logging. But you can do it only one time. If you want to log a certain time later another file, you have to close and open the whole VI again which is not very professional...
My target is:
It is onlyl necessary to start the VI one time. Then you can select a new file path, log data, select another file path, logging data again....and so on...
Which programm structure is necessary, can anyone help me as a labview beginner with that issue? I attached the VI if someone just wants to edit that...
Thank you for your help!! Markus
Attachments:
Logging voltage.vi ‏93 KB
screenshot.JPG ‏98 KB

The Best Answer

Advertisement
@NaruF1 and GerdW
you are right, there is a mistake, both loop rates should be the same (10 ms) :-)
@NaruF1
yes you understood correctly that the file dialog should appear every time the user wants to start writing a new log-file. The voltage we measure is a analog signal, so there will be several interesting periods we want to save for a later analysis in Excel.
To your 2nd point: if it works with a array it will be fine. But it must be possible to log data for lets say 5 minutes, so the array won´t be too large? (5 min @ 10  ms loop rate will be 30000 rows..
attached is the VI, saved as LV2009..
Thanx a lot!
@GerdW
..you ask why I didn´t create a structure like you recommended with notifiers or queues? The simple answer would be that I am not familiar with all this.. just began to write my first Labview programm. I will have al look to the LV help with all that stuff... Thank you a lot
Attachments:
Logging voltage.vi ‏80 KB
  • Which is the best structure for start/stop data logging? Update:10-11

    Hi everybody, hope I can explain my problem good enough that anyone can help me: I have a VI which continuely shows on a graph the voltage of a Analog Input of a DAQ device. Now I want to allow the user to start/stop with a click on a button data log

  • Build XML for Custom Nested Accordian (like Tree View Structure) for SharePoint List Data Update:10-11

    Expected output in Xml: <?xml version="1.0" encoding="utf-8" ?> - <TopRoot> - <Root id="1" Name="Department"> - <Type id="2" Name="IT"> - <SubType id="3" Name

  • Differrences between structure and table in data dictionary in ABAP? Update:10-11

    What is the differrences between structure and table in data dictionary in ABAP? are they same?Tables : 1. The place where the data is stored so that you can retrieve at any time. 2. There can be more than one record stored Structures : 1. The data /

  • Structure of the sender Data Type Update:11-30

    hi; i have two tables and want to fetch data from both in one go using sender JDBC adapter. Can any one tell me the structure of the sender Data Type if Table1 has A1,A2,A3 as fields and Table2 has B1,B2,B3 as fields. i want to fetch only A1,A2 field

  • Directory structure for the new Data Services Project Update:10-11

    1) I do as prescribed in the manual "Building and deploying Flex 2 Applications", page 325 "To create a web application make a copy of the /flex directory and its contents. Rename the copy and store it in the same location under /servers/de

  • Org unit Hierarchy structure between two  Key date s Update:10-11

    Hello Friends, We have an issue with displaying HR Org unit hierarchy structure between two calendar months. The BI Report has a selection parameter to select Org unit hierarchy , Calendar month From and Calendar month To The BI Report is to display

  • Warning Message:- Field BRSCH from structure CUSTOMER-CENTRAL_DATA-CENTRAL-DATA is provided by Business partner Update:10-11

    Hi Experts, I get this error when replication the Organization Unit created in transaction BP from CRM to ECC. The error is generated in ECC system and Error Class is CVI_EI. Any ideas. Kind Regards, GauravHi Gaurav, The Business partner does not hav

  • Dynamic Structure creation and assigning data. Update:10-11

    Hi, I have a structure and a work area, DATA: begin of sample_struct,       elem1 type xxx,       elem2 type yyy,       elem3 type zzz,       end of sample_struct. DATA: wa_sample_struct type sample_struct. DATA: lr_rtti_struc TYPE REF TO cl_abap_str

  • Transporting Extract Structures for Business Content Data Sources Update:10-11

    Hi We have added a new field to the 2lis_13_vditm data source and when i am trying to capture it in the transport, only the data source is getting captured and not the extract sturcture. When I go to the Object Entry Directory of the Extract Structur

  • Open ended data structure for retrieving SQL data Update:10-11

    I have a flex project that reads data from a database and sends it to my flex app to display in a chart. I need to do this in Actionscript since I have to dynamically create different charts based on the database definitions. Up til now, I have inser