LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I tag specific events in my data?

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! 

0 Kudos
Message 1 of 6
(3,674 Views)

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.

0 Kudos
Message 2 of 6
(3,667 Views)

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

0 Kudos
Message 3 of 6
(3,631 Views)

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!

0 Kudos
Message 4 of 6
(3,621 Views)

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." Smiley Wink

0 Kudos
Message 5 of 6
(3,615 Views)

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.

Richard






Message 6 of 6
(3,597 Views)