Questions

Hi All
I have some questions.
Q1: How can I display which sequencer I am running on for my sequence ?
Q2: In hierarchical sequence, we use seqA.start(m_sequencer,this). But even if i just use seqA.start(m_sequencer),it still work. why it still works?
Q3: someone say using p_sequencers is not recommended for reuse. does anyone can give example?
thanks a lot!

In reply to peter:

  1. Use the get_sequencer() method in the sequence.
  2. The second argument of the start() method is the parent sequence. This is not needed for basic features, but needed for more advanced functionality involving *_do() method hooks. Providing a parent sequence also help debugging by providing a hierarchical calling stack path, and viewing transactions.
  3. You can search for examples [=im_field_forum%3A23&solrsort=score%20desc]here](Forum Search | Verification Academy[0).

In reply to dave_59:

Thanks for reply
1.get_sequencer() return a reference to the default sequencer. How can I print it?
2.what is the meaning of involving *_do() method hooks?
Thannks!

  1. Depends what you want printed. Would get_name() or get_type_name() suffice?
  2. See the description of the start() method.

In reply to peter: