VeriStand

cancel
Showing results for 
Search instead for 
Did you mean: 

custom sequences or functions with default parameters

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!

 

 

0 Kudos
Message 1 of 2
(4,841 Views)

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,

 

 

 

Aldo A
Applications Engineer
National Instruments
0 Kudos
Message 2 of 2
(4,820 Views)