08-12-2014 06:48 PM
Hello!
Using the Stimulus Profile Editor, I am finding that using a sequence within a sequence to be cumbersome. This is because it requires you to declare in the main sequence, every parameter that the sub-sequence will use.
I would like to have a 'configure' sequence whose parameters are all default and do not need to be declared or passed through by every sequence that calls it. Right now, if I change one argument of the 'configure' sequence I have to go to every sequence that references it, and update the parameters and the sequence call.
Essentially, I would just like an independent subfuction that has no inputs and returns a few outputs. If the profile editor is not capable of this, what would be my next best option?
Thanks!
08-13-2014 02:15 PM
Hello,
You can take advantage of the new features in NIVS 2014 to help against re-defining default values for your RT Sequences. Take a look at the documentation in 2014 which explains in more detail how you can use channel references in your sequences:
What's New in NI VeriStand 2014
http://zone.ni.com/reference/en-XX/help/372846H-01/veristand/whats_new/
Variables for Reading and Writing Channels in a Real-Time Sequence
http://zone.ni.com/reference/en-XX/help/372846H-01/veristand/spe_vars_chref_parameters/
Example 1a: Reading and Writing Channels Directly from a Real-Time Sequence
http://zone.ni.com/reference/en-XX/help/372846H-01/veristand/spe_tutorial_example1a/
By using channel references, you won't have to re-set default parameters. Let me know if you have any questions.
Sincerely,