LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how can I mark data acquired during DAQ?

I am acquiring analog data from an accelerometer with LabView 6.1 and I need to mark some time points during the acquision to indicate the time at which some events occurs during the measurement. I want to do this by pressing the space bar of the keyboard or by clicking a button of the mouse each time the event occurs. I want that the mouse or keyboard event is synchronized with the DAQ. Haw can I do both things?

 

Thanks!

0 Kudos
Message 1 of 9
(3,567 Views)

HI Yasmina,

 

Wher you want to mark in graph or some where else?

0 Kudos
Message 2 of 9
(3,552 Views)

Hi Ramsgt!

 

It could be anywhere! Thanks!

 

Yas

0 Kudos
Message 3 of 9
(3,516 Views)

Hi Yasmina,

 

Could you better explain what you are trying to do? There are many ways you can do this. I would recommend logging all the data (with time stamp) to file and just recording the timestamps of the events.

Joe Daily
National Instruments
Applications Engineer

may the G be with you ....
0 Kudos
Message 4 of 9
(3,496 Views)

Hello Joe,

Thank you very much for your answer, here it goes a better explanation of what I what to do: I am measuring acceleration from an accelerometer using an analog to digital adquisicion card and labview. This is a continuos adquisicion to file in the same way as it appears in one of the examples of LabView.

This measured acceleration comes from rolling a stroller over different kinds of paviment, so I want to record the time at which the stroller comes in and out from each type if paviment and I could do this just by pressing the space bar or a mouse button. I think recirding time stamps of the events would be perfect for this I just do not know how to do this, I haven´t use Labview in a while.

 

Thanks you very much for your help.

 

Yas.

 

0 Kudos
Message 5 of 9
(3,486 Views)

Hi Yasmina,

 

Where you want to generate mouse events on grap or somewhere else. Do you want to plot the graph of the measured data and mark on that. Explain it in a better way.....................

 

Regards,

Rams

0 Kudos
Message 6 of 9
(3,483 Views)

Hi!

Thanks again. I would like to save the time stamps of the mouse events (or space bar) in the same file where I am saving the data now, so instead of having two columns (time and acceleration) I will have three with the time stamps, in this way I can analyze different portions of the data (for different paviments) in different ways in the future not only graph it. Thanks!

 

Yas

0 Kudos
Message 7 of 9
(3,470 Views)

Hi Yas,

 

Just been looking at your problem and noticed it was similar to something I came across yesterday. I will attach a snippet that may help you. If not, just post back and I'm sure we can find something!

 

Chris

National Instruments - Tech Support
Message 8 of 9
(3,453 Views)

Hi Yas,

 

Had another thought. If you are running LabVIEW Full or better you can use an events structure to trigger the date stamp. They are in the structures pallet and may be suitable for your problem. If you place the previously posted snippet in the event structure and set the event to a mouse click you should be able to time stamp whenever you click and this will add it to the measurement file.

 

Hope this helps!

 

Chris

National Instruments - Tech Support
Message 9 of 9
(3,448 Views)