07-16-2010 04:41 PM
Hi!
I'm new to LabVIEW, and I'm sure this is an elementary question.
I am using the write to spreadsheet function, and in one column of the spreadsheet I currently have 0s. I would like to be able to change the 0 to a 1 to mark specific instances in the data with a push button on the front panel. I have not been able to do this and I would greatly appreciate any ideas y'all have.
Thanks!
07-16-2010 06:07 PM
It's a little unclear exactly what you want to do. Could you post the code you have worked on so far? You may not feel like you're far enough along to post the VI, but it will help us understand what you're trying to accomplish.
07-19-2010 11:28 AM
Sorry I was unclear.
I'm making my VI for psychologists testing out a type of lie detector. They want to be able to mark in the data where they ask a question so that they are able to monitor a subject's physiological response to a question. So in my VI I have a write to spreadsheet function with one column of data being 0s. I want to have a button such that when they press it, the 0s in the column of data turns to a 1 so that when they open the file that they are writing their data to, they will see their tagged data as having 1s in that column. I hope that was clearer. I've attached my VI.
Thanks
07-19-2010 12:19 PM
JackDunaway,
I finally had the presence of mind to create a case structure, and I was able to solve the problem. Thanks for your time!
07-19-2010 12:27 PM
Glad you were able to resolve the problem... keep in touch with the forums when you're running into problems, and especially when you have some code where you are thinking to yourself, "There's got to be an easier way." ![]()
07-19-2010 02:59 PM
kriphlet,
One thing about the code you posted: You are starting and stopping the DAQmx Task every loop iteration. You should start the task on the outside of the loop to the left, and stop the task on the outside on the right. This will allow your acquisition to run as fast as it can, and will save processing power, etc.