06-24-2009 05:38 PM
06-24-2009 06:03 PM
06-25-2009 09:50 AM
Well stoping the data while I take my notes is not that big of a deal. Infact I dont think I would want to do that. But what you are describing seems exctly what I want to do. Could you point my in the direction of an example or something to further explain?
Thanks much
06-25-2009 10:01 AM
How exactly would you like the comments written?
Because if you write comments intermittenly through your data, if you move the data to excel or anything else, it isnt going to handle the text well. I would recommend either writing comments all at the beginning or at the end.
Since in your case you will be commenting during the test, I would recommend all at the end.
06-25-2009 10:24 AM
Why not use a separate file with timestamps. Then you can log the time then you started writing your comment. That way you can time the vent closer to the thing you want to comment. Use a separate loop for comment writing. This loop will most of the time do noting so insert a "wait (ms)" function and set the time as high as 500
06-26-2009 02:29 PM
GovBob, I think you have the correct idea on what exaclty I want to do. After looking at the event and how it operates, I believe it is exaclty what I want. I am looking for how to get a text box to type in whatever comments I want, then perhaps press a button such as "add" and have labview add it to my csv, then clear the text box and wait until I want to add something else. I do not think getting the comment to the right place on the csv file will be a huge deal. Any suggestions on getting a text box and being able to fire off?
Thanks all for the help
06-26-2009 02:46 PM
lkdfjaio1241 wrote:GovBob, I think you have the correct idea
Who is GovBob.....
06-26-2009 04:58 PM
Well that would be me Lil' Red Rooster
lkdfjaio1241: Since you are new this is a great opportunity to learn a bunch on a fun project. I would take a look at the Producer Consumer (events) template. With an event structure you don't want it to be unresponsive to user input when it is processing a loop.This involves using queue's. Also (if you don't already) make sure you understand how a state machine works. If it was me I would use a subvi for comments in the producer loop.
How I would invision this is that you would have a Producer loop with an event structure in it. A start button would trigger a consumer loop that would start your DAQ acquisition through a named queue. You would also have a comments button event case. This would fire a second consumer loop through a different named queue which would capture the location of where you were at in the .csv file and popup a subvi where you would write your comments. In this manner you would be still running your acquisition. You could then commit your comments at the end of your application when you fire the stop event case.
Cory's comment is very valid: how are you going to view this data? And what version of LabVIEW are you using. I might try my hand at modeling this if I have time this weekend.
Hope this helps
06-26-2009 05:02 PM
06-26-2009 05:23 PM