LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Trace Breaks when closing a trace.

LabVIEW 8.0 DSC Module:
I am logging data using Write Trace.vi.
I Open, Write, then close the traces on each logging cycle.
Every time I close the trace a Trace Break is place after the data point.
 
Is this expected behaviour? Can a trace be closed without adding a Trace Break?
If not, how much space is used by a Trace Break? 
0 Kudos
Message 1 of 4
(4,670 Views)
Hello,

This is expected - we use the write trace VI's to simulate the behavior of a shared variable (tag) whose value is logged.  If our logging process was stopped, a trace break would be entered in the database to show that at this time data was no longer being logged continuously.  By closing the trace, this signals to the database to insert a trace break at this time to show that no more data is to be expected until the trace is re-opened.  The trace break is stored in the database as a single NaN (not a number) value, so it should have only a small impact on the size of your database.

If you have an application that will need to frequently write to a trace, you could open the trace outside your loop, put all of the write operations inside the loop, and after the logging process is complete, close out the trace.  This would more closely reflect the normal operation of a logged shared variable and only insert a trace break when the entire process has completed.
Cheers,

Matt Pollock
National Instruments
0 Kudos
Message 2 of 4
(4,651 Views)

Thank you for the reply.

In future versions, it would be nice if the user could disable the Trace Break when closing behaviour.

0 Kudos
Message 3 of 4
(4,627 Views)
Thanks for the feedback!

If you find other areas of LabVIEW or the DSC Module that could use improvement, be sure to let our developers know through our Product Feedback page.  Some of our best ideas for new features come from customer suggestions!

Cheers,

Matt Pollock
National Instruments
0 Kudos
Message 4 of 4
(4,607 Views)