04-17-2014 05:27 PM
Hi
I have an question on enabling the Data Logging workspace control programmatically or by a user channel. I see that the capability of triggering exsits but couldnt find the enabling feature..
I would like to use the workspace object because it allows time stamp capturing in actual time format and not ms(embedded data logger).It would save the big overhead of converting it to actual time.
How do I achieve enabling it?? I can also use the feature of it enabled by default as an alternative since it would be preconfigured before deployment.
Ashm01
04-17-2014 06:01 PM
Do you mean that you want to programmatically start a log that was configured in a data logging workspace control rather than having to click the Start Logging button?
04-17-2014 06:47 PM
04-18-2014 09:10 AM
There is no programmatic interface to the workspace logging control. You have to click Start Logging to get it to start.
One idea that you could consider would be to navigate to the Start Trigger section and configure a start trigger for the log and then click the Retriggerable checkbox. Finally, on the Segmenting section select to Segment Files on Trigger. This will create a new file instance each time the logging session is waiting on a trigger and the start trigger condition occurs.
Then leave you would just need to start logging at the very beginning and leave it running indefinitely. After that, the log session will be somewhat controlled by the start trigger condition (and stop trigger condition if you specify one).
Some downsides of this approach:
1. The history dialog doesn't show the log files generated until the whole log session stops. You can find and inspect your files on disk, but the history dialog won't help you find them while the log is running.
2. Any post-processing won't occur until the whole log session stops.
04-18-2014 05:02 PM
It would be pretty nice to have that functionality exposed in future versions. It is inconvenient for now to toggle it manually.
04-18-2014 08:00 PM
04-18-2014 08:06 PM
04-18-2014 11:51 PM
04-22-2014 03:37 PM
Hi,
Is enabling the logging by default an option? How can I enable it?
Ash
04-22-2014 09:23 PM