I'd like to know how can I configure the tracing options (Configure -> Station Options..) in a way that when my sequence both in the sequence editor and in the OI, I can see only the tracing in the MainSequence and not in all the subsequences.
There isn't a specific Station Option for that, but you could set Properties>>Run Options>>Sequence Call Trace Setting to Disable Tracing in Sequence for each sequence call step in your main sequence.
There is an easier way then opening each one. Put the following expression in the SequenceFilePreStep callback:
Parameters.Step.TS.SData.Trace="OFF"
with a precondition of
PropertyExists("Parameters.Step.TS.SData.Trace")
You could go so far as to set up a FileGlobal to change whether or not you wanted it on or off. I have also used User Priveleges to determine whether tracing is on or off in the sub sequences.
I'd like to have a small VI that reads from a sequence all my sequenceCall step types and turn ther tracing into Off or ON. I've seen in the TS Help that I have to use the TraceSetting Property (SequenceCallModule.TraceSetting ), but I cannot find this property in LV passing the Seqeunce Context. Some ideas? Can you send me an example in LV 7.1? Thanks