get comments while collecting data

I have a program which collects data in the lab and displays on the screen as he goes.  I want to add a comment feature, so that if the user sees something interesting she could click on "Comment" and add a comment that will be saved in a text file at the end of the session of data acquisition.  I would like to 'time stamp', comment by using the time (since the beginning of the acquisition) when you press button "comment."  So, I wrote a piece of code (enclosed) test, that does not work as you wish.  When the code begins, he's waiting for the user to start a timer (data acquisition would begin at this point, the full blown program).  Then start the timer, and the program waits for the user to click on 'Stop' and then displays the time elapsed between start and stop.  At least it is supposed to work this way.  While he waits for the shutdown, it monitors the "Comment" button and gets user input if the comment is.  He adds the time current for the comment by the user, as you wish.  It's just, the program pays attention to the comment button and does not pay attention to the Stop button. This program does not stop when the user presses Stop.  I want to enable zero, one or more user comments in the period between 'Start' and 'Stop '. What should do?  Thank you.

Try running this execution highlighting (icon in the toolbar "bulb") and you will see what happens.  Your code is, in fact, attentive to the stop button - just not when you want.  If you click on 'Stop' and then click on the "Comment" button, you will find that your code stops as expected.  The problem is that your inner while loop (check the 'Comment' button) runs continuously, and the code checks the condition of the outside loop while (the one that is connected to the "Stop" button) until the inside while the loop ends.

A better solution would be to eliminate all the structures of the sequence and all nested in loops and replace it with a single while loop.  Inner loop while could check to the Stop button to terminate the loop and the code to manage the comment function within a structure of business wired to your comment button.

Tags: NI Software

Similar Questions

  • Getting error while inserting data from source to the target in the procedures?

    Hello

    I want to insert the data from the source to the target in the procedures, have the same schema.

    For this, I did as follows

    Command on the source:

    Technologies: oracle

    Schema: EDWHCMB

    Command:

    SELECT COMPANY_NAME, COMPANY_CODE OF

    EDWHCMB. DWT_COMAPNY

    Command on the target:

    Technologies: oracle

    Schema: EDWHCMB

    command:

    INSERT INTO EDWHCMB. TEMP

    VALUES)

    COMPANY_CODE,

    COMPANY_NAME)

    I have run the procudere then I got error as follows

    ODI-1228: SAMPLE1 (procedure) task fails on ORACLE EDWH connection target.

    Caused by: java.sql.BatchUpdateException: ORA-00984: column not allowed here.


    How to insert the data from the source to the target in the proceedings?

    Please send any document to this...

    Please help me.

    Thanks in advance,

    A.Kavya.

    Hi Bruno.

    If your tables are on the same schema then why do you use command on the source and the command on the target? You can simply do the following on the command on the target

    INSERT INTO EDWHCMB. TEMP

    SELECT COMPANY_NAME, COMPANY_CODE OF

    EDWHCMB. DWT_COMAPNY


    If you really want at all to use the command on the source and target both then I think you need to change the following code on your order on the target

    INSERT INTO EDWHCMB. TEMP

    VALUES)

    : COMPANY_CODE,.

    (: COMPANY_NAME)

    Hope your TEMP table has only these 2 columns.

    Thank you

    Ajay

  • We get an error when I try to collect data from vCenter Server. But the Collection of Cluster works!

    Hello

    I m getting a strange errormessage when he tries to load my vCenter Server inventory.

    I have configured my vCenter Server as the endpoint server and I was able to load the Clusters. When I klick collection of data in a Cluster (Cluster of EQL 1) I can load all the data and the State is 'successful', but when I try to load the inventory FRO the vCenter Server (to get the models) im getting this error message:

    The treatment [inventory], error details error: illegal managed object reference type, folder.

    The same schows Agent logs:

    [26.08.2014 16:48:16] [Info]: start: treatment Workitem ID [2e38598e-4385-4b2d-bc88-fd2b773d1f98] [inventory]

    [26.08.2014 16:48:16] [Debug]: [[inventory]] [inventory] VirtualMachine.Admin.Hostname = vCenter

    [26.08.2014 16:48:16] [Debug]: [[inventory]] VirtualMachine.Admin.ParentIdentity = [inventory]

    [26.08.2014 16:48:16] [Debug]: [[inventory]] [inventory] VirtualMachine.ManagementEndpoint.Name = vCenter

    [26.08.2014 16:48:16] [Debug]: [[inventory]] VirtualMachine.ManagementEndpoint.Identity = [inventory]

    [26.08.2014 16:48:16] [Debug]: [[inventory]] [inventory] VirtualMachine.ManagementEndpoint.Endpoint0 = vCenter

    [26.08.2014 16:48:16] [Debug]: [[inventory]] [inventory] VirtualMachine.Admin.Name = inventory

    [26.08.2014 16:48:16] [Error]: <? XML version = "1.0" encoding = "utf-16"? >

    < Boolean > false < / Boolean >

    Error parsing [inventory], details of the error:

    System.ArgumentException: Illegal managed object reference type, folder.

    at DynamicOps.Vrm.Agent.vSphere.VSphereGetHostsRequest.ExecuteImpl)

    at DynamicOps.Vrm.Agent.vSphere.VSphereHypervisorServiceProvider.GetHosts (ManagementEndpoint managementEndpoint)

    to DynamicOps.Vrm.Agent.Collector'3.get_Hosts)

    to DynamicOps.Vrm.Agent.Collector'3.CollectManagementEndpoints)

    to DynamicOps.Vrm.Agent.CollectInventory'3.Collect)

    to DynamicOps.Vrm.Agent.BaseHypervisorAgent'3.EnumerateHypervisorResources (collector collector 3, WorkItem workItem, PropertyBagHelper propertyBagHelper)

    to DynamicOps.Vrm.Agent.BaseHypervisorAgent'3.ProcessWorkitem (WorkItem workItem, task of the chain, PropertyBagHelper propertyBag)

    to DynamicOps.Vrm.Agent.vSphere.VSphereAgentService.ProcessWorkitem (WorkItem workItem, task of the chain, PropertyBagHelper propertyBag)

    to DynamicOps.Vrm.Agent.BaseAgent.ProcessWorkitem (WorkItem workItem)

    I hope that someone had an idea, im out of ideas.

    THX Steven

    There is no data for the endpoint collection... And I'm not entirely sure of how you added the vCenter object it... y at - it a calculation object named "vCenter? To answer your specific questions about the models, however, they must be stored on a cluster that is part of the tissue group for data collection to pick them up... They are not considered as a global entity (as a resource calculation). Add models to one of the clusters and then to collect data on it, and you should be fine.

  • Need to collect data every hour

    Hello

    I'm relatively new to labVIEW and need help with this particulare VI. It is configured to collect data of vibration at noon and midnight. What I need to be able to have it changed so I would be able to collect data from every 1 hr. And eventaully I want to collect every 4 hours. Any help would be appreciated.

    I would be created something like this:

    The seconds time lets get a cluster of the time.  We just need the hours, Minutes and seconds of the cluster.  For the hours, use the Quotient and remainder divided by what you increment.  Add remaining with the seconds and minutes.  If the sum is 0, then you can start your recording.

  • Strange behavior when using Labview to collect data from Tektronix oscilloscope tds8200

    I hit a wall in trying to understand this one. The problem I have is that my application will not start the oscilloscope when it should.

    I use an oscilloscope Tektronix TDS8200. My goal is to collect data from the oscilloscope using Labview waveform. First of all, my program initializes and configures the oscilloscope; This part of the program works very well.

    The second part of the program begins the acquisition of data with the function 'Tktds8k Start or Stop Aquisitions.vi', which is to press the button run on the scope. The function "tktds8k to Waveform.vi" is used and should ideally return data, which I connected to a waveform playback graph.

    When I run my program, the first part runs without a problem, but as soon as the program comes to the service get the waveform, the run button in the scope, which is green when running, turns off; the program then expires, and no data is collected.

    Here is where it gets weird. I went through the debugging to try to understand this point, and I put breakpoints on the beginning and get shape wave functions so that I could scroll through the last part of the program. The program continues with the departure function, and the button run in scope is green. The breakpoint for the function get the waveform is reached and when I press on continue, turns the Run button and turns it off then back on almost immediately. data are collected, the waveform graph appears and the program ends without error.

    I thought that the timetable could be the problem, so I did the program wait as long as five seconds between the functions of start and get the waveform and that did not work. I also tried to move the start function to before the configuration functions and remove start completely; no method worked.

    is there any ideas on why, the program works when I enabled breakpoints and isn't when breakpoints are disabled? I'm sure there is an easy solution, but I was not able to find a solution.

    I have attached a pdf that contains information about the functions of the Oscilloscope (tktds8k.pdf), and I have also attached my program.


  • Collect data from specific frequency of the power spectrum

    Hello

    I want to know how to collect data from specific frequency of power spectrum file. I'm trying to separate data from specific frequency of the original file.

    This will depend on much how your data is stored. You will need a way to read the file in LabVIEW and then a way to identify the data you want. I often record data in a .csv file, then I use "Reading worksheet" to get the data in a table. Then, you can simply use 'Index Array' to get the datapoints you need.

  • How to collect data on the programs of LabView and VC ++ at the same time?

    Hello

    There are two programs in LabVIEW and another is in VC ++. The two programs to collect hardware data.

    Therefore, for the experience, it is necessary to begin to collect data at the same time and lag must be

    less than millisecond (it is essential for the experience). How can this be achieved? BTW, I'm new to LabView.

    I think on the use of network socket to get the message for both applications.

    I was wondering if there is a better way.

    Thank you.

    MARK002-MAB wrote:

    Hello

    There are two programs in LabVIEW and another is in VC ++. The two programs to collect hardware data.

    Therefore, for the experience, it is necessary to begin to collect data at the same time and lag must be

    less than millisecond (it is essential for the experience). How can this be achieved? BTW, I'm new to LabView.

    I think on the use of network socket to get the message for both applications.

    I was wondering if there is a better way.

    Thank you.

    You do not say if two programs access the same material, but I guess not. Because if they did, you probably get conflicts when the two programs try to access the same material at the same time.

    In either case, the only really reliable way to ensure that your needs of< 1ms="" would="" be="" hardware="" triggering.="" one="" hardware="" unit="" is="" programmed="" to="" provide="" a="" hardware="" trigger,="" typically="" a="" digital="" signal="" and="" the="" other="" is="" programmed="" previous="" to="" the="" desired="" start="" point,="" to="" wait="" for="" that="" trigger="" and="" start="" automatically="" when="" it="" is="" received.="" if="" both="" hardware="" units="" are="" ni="" daq="" cards="" you="" can="" do="" that="" fairly="" easily="" using="" the="" rtsi="" bus="" or="" in="" case="" of="" pxi="" the="" pxi="" trigger="" lines.="" if="" they="" are="" different="" hardware="" then="" it="" can="" get="" more="" complicated="" to="">

  • Issue while loading data using the file Rules Essbase

    Hi all

    I am facing problem while loading data using the Rules file. In the rules file, I rejected several members in two areas (two dimensions). Now if I load the data using the rules file I'm getting errors for all members in the dataload.err file. If I reject mutiple members of a single field, the data load without settling errors in the dataload.err file.

    I want to know how rmany members of several fields of ejection for loading data using the file Rules Essbase? Is it possible?

    Okay, okay... I think that you must assign Global Select / reject Boolean in the parameters of loading data as 'Or':

  • Get comments on images shared without the need for Adobe ID?

    Trying to share lightroom collections to get comments on my images to clients, friends, etc. Is there a way for them to display their tastes and go through comments without each of them (first, create then) signin with an Adobe ID?

    Hi SteveBost,

    You can share your images, but the other person needs an Adobe ID to comment or like your images.

    Note: Users only need an Adobe ID and don't need to be members of creative cloud to view, comment on, or choose Favorites.

    Concerning

    Sarika

  • My verse ATT modem (non apple devices to use this modem} is connected to the ATT line, Time Capsule (iPhones, Macs Time Capsule use) via ethernet Uverse.) Non apple devices can collect data from iPhones or Mac using the time Capsule?

    My verse ATT modem ({use of devices not apple wifi of this modem} is connected to the ATT line, Time Capsule (iPhones, Macs use the wifi of the time Capsule) and connect to the Uverse modem via ethernet.)

    Both devices are set to the highest security and each uses separate passwords.

    Non apple devices can collect data from iPhones or Mac using the time Capsule?

    With a bit of work by someone who knows how to do such things, not Apple computers could read some files on the Mac if file sharing is configured on the network... devices non-Apple and... He knew the device passwords or administrator for Macs.

    Mac could also play the files on other Macs if file sharing has been implemented and the device password or admin was known.

    If you ask if a PC can read the files on the Time Capsule, the answer is Yes, without doubt, assuming that the PC knew the password of device for the time Capsule.

  • How to get media Express collection CD player?

    Hello
    is there a way to get the Express collection CD player support?
    Thanx

    Hello

    You can buy it from the ASP. I'm sure that it s not very expensive.

    Good bye

  • When zoomed in on a waveform graph, how can I get all of the data points that is currently displayed on the graph?

    I use X-zoom tool on the graphic palette. In this chart, the x-axis are time. Thus, for example, if I have 30 seconds displayed on the x-axis of the complete graph, and I want to zoom in on the Middle 10 seconds, how can I get the axis y data points that correspond to this average 10 seconds?

    Similar to Cory's suggestion, could you use the X - Scale-> range-> the Min and Max properties to retrieve the appropriate data?

    Maybe even link your sweater of data for the range of scale change event?

  • How to start collecting data through digital triggering entry user GOLD

    Hello

    I have a vi with which I would like to collect data. It is configured to start to perceive when the start trigger is detected, which works perfectly, but I would also create a user can start the process of data collection by pressing a button instead of apply the trigger. I am at a loss on how to do it. I thought that the structure of the event would work well; However, the relaxation has no Boolean value I can associate it with. If that were the case, I could then perform a logical comparison between the trigger and the button to determine if the collection of data should begin.

    So, how can I represent a trigger activated as a Boolean value? Or is there a better way to reach my goal?

    I think I can make things clearer by expressing in linear programming that it is, I'm trying to achieve:

    If (trigger == true: button == true) {}

    begin to collect data

    }

    I have attached my vi where someone feels useful.

    Hello

    You're right, 6229 USB is certainly not compatible with NO-Sync. However, you should be able to do with the DAQmx driver functions.

    If I understand correctly, you want to generate a graph of your analog input and have this file based on a triggered event entry. A line using PFI will not work for this particular function, but you can create a task digital input instead and pass the thread to a D e/s instead of a PFI line line. You can then use for/no-write the analog input file using a case structure depending on the State of the digital line.

    I hope this helps! Let me know if you have any other questions.

  • Microsoft Solitaire - message: "we have some problems to connect to Internet to download Microsoft Solitaire Collection data...» »

    For the last 2 days, when I opened my Microsoft Solitaire Collection, the program opens and I'll click on one of the 5 games and as soon as the second 15 announcement is complete, a message appears that says: "we have some problems to connect to Internet to download Microsoft Solitaire Collection data...» ».  What this mean and is there a way I can fix it?

    I uninstalled the MS Solitaire Collection, then reinstalled from the store. Connected on the first try. The app itself is the problem.

  • 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!

Maybe you are looking for

  • Link e-mail file has stopped working. How should I do?

    When I click on file/send link nothing happens. He slowed at the beginning of this week, and now it doesn't work at all.

  • Online purchases of HP was not delivering additional offers that have already paid.

    Hi all I bought the laptop of HP 15-r078tu of the hp online shops. Its price was 23990 Rs and I also selected 2 offer Zack with it.one is Macfee antivirus with a value of 499 Rs and Rs. 3499, of a value of more than 2 years warranty. In total, I paid

  • OfficeJet 6830: Problems scanning

    Hi, I just bought an Officejet 6830 and I have a mac. Is there anyway that scanning duplex can be activated by an Apple operating system because I was able to dig a few days and still can't find what I'm looking for.

  • Files corrupted in "Downloaded Program Files".

    I have a list of files downloaded programs that do not match any IE Add - ons, but at least some of them are related to activex controls and java prevents me to use either in a browser - can I still use the download from Microsoft Technet at this sta

  • HP Officejet 6500 E710n-z how can I send faxes received

    I have a HP Officejet 6500 E710n-z set up like the wireless. I want to have all incoming faxes saved directly to my PC and not be printed. I can't find all the information on how to do it. There may be information on the DVD that comes with it, but I