ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Daqmx Logging on demand

I am complet beginner so sry if im missing something obvious.

 

I have a simple Vi getting and displaying data via a Daqmx task and also set up the logging via dte DAqmx Configure Logging (TDMS) Vi (https://www.ni.com/docs/en-US/bundle/ni-daqmx-labview-api-ref/page/vi-lib/daqmx/configure/task-llb/d...). It is set up like this at the moment:grafik.png

 

it workes fine and logs the data with the start of the programm but how can i trigger the logging with a button or a sequenz. The Vi will running a long while before the test to check some data, logging will only be needed while the actual Test is running. So how do i start/pause the logging here ? 

0 Kudos
Message 1 of 2
(233 Views)

Try using the pause/unpause property to log the data on demand.

dsbNI_0-1760929316691.png


When you unpause logging (Logging.Pause = False), DAQmx will start a new group within the configured log file for the new data.

Doug
Enthusiast for LabVIEW, DAQmx, and Sound and Vibration
Message 2 of 2
(178 Views)