NI Home
Cart Cart | Help
Hello Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI
You are here: 
NI Home > NI Developer Zone > NI Discussion Forums


Reply
Member
Jeyan
Posts: 6
0 Kudos

How to get the Runstate variable of an external sequence called from the Client Sequence through Sequencecall?

Hi,

 

           I need to change the runtime high and lo limit values of all the tests of the client sequence file before running it. My sequence file is having a SequenceCall which calls an external sequence. Can anyone tell me how to change/access the High and lo limit values of the external sequence test steps?

 

Thanks,

Jeyan

Active Participant
dug9000
Posts: 1,508
0 Kudos

Re: How to get the Runstate variable of an external sequence called from the Client Sequence through Sequencecall?

It would probably be better to do one of the following:

 

1) Pass the limits in as parameters to the sequence

or

2) Use propertyloader to load the limits.

 

-Doug

Active Participant
snowpunter
Posts: 272
0 Kudos

Re: How to get the Runstate variable of an external sequence called from the Client Sequence through Sequencecall?

I'll second option 1. Make your limits variables and pass the data in when you call it.

CTA, CLD, MTFBWY
Member
Jeyan
Posts: 6
0 Kudos

Re: How to get the Runstate variable of an external sequence called from the Client Sequence through Sequencecall?

Doug,

 

       Thanks for the suggestion. Passing the parameters as limit values is a good option.

       

Unfortunately there are lots of sequences which had been developed. None wants to change it now. We have to load different limit values for different end models. Ultimately the sequence remains same but limit changes and as I said the sequence is there and we dont want to alter it by adding parameters. Is there a way we can load limits (only runtime) to the external sequence file's test steps?

 

Thanks,

Jeyan

Active Participant
dug9000
Posts: 1,508
0 Kudos

Re: How to get the Runstate variable of an external sequence called from the Client Sequence through Sequencecall?


Jeyan wrote:

Doug,

 

       Thanks for the suggestion. Passing the parameters as limit values is a good option.

       

Unfortunately there are lots of sequences which had been developed. None wants to change it now. We have to load different limit values for different end models. Ultimately the sequence remains same but limit changes and as I said the sequence is there and we dont want to alter it by adding parameters. Is there a way we can load limits (only runtime) to the external sequence file's test steps?

 

Thanks,

Jeyan



PropertyLoader is designed to be able to load limits dynamically (at runtime) like this.

 

-Doug

Member
Jeyan
Posts: 6
0 Kudos

Re: How to get the Runstate variable of an external sequence called from the Client Sequence through Sequencecall?

Doug,

 

          I used the property loader method but I could not load the limits of any sub sequence call calling an external sequence file.

 

I took the FlowRate_test.seq example from the NI Example folder "C:\Documents and Settings\All Users\Documents\National Instruments\TestStand 4.2.1\Examples\PropertyLoader\LoadingLimits\LimitsFromExcelFile\UsingCVI". I created a sequence called PumpTest.seq in the same folder path. I then moved the Pump Test step from the FlowRate_test.seq to the PumpTest.seq. Now created a sequence call in the FlowRate_test.seq and called the PumpTest.Seq as the module path. When I execute the FlowRate_test.seq , I get the error as shown below:

 

Error

 

Attached is the Flowrate_Test.seq and the PumpTest.seq which should be there in the folder path "C:\Documents and Settings\All Users\Documents\National Instruments\TestStand 4.2.1\Examples\PropertyLoader\LoadingLimits\LimitsFromExcelFile\UsingCVI".

 

Let me know whether I am doing something wrong in this method. 

 

My idea is to alter the runstate variable High and Low of Pump Test in the PumpTest.seq and then run the Flowrate_Test.seq.






Active Participant
dug9000
Posts: 1,508
0 Kudos

Re: How to get the Runstate variable of an external sequence called from the Client Sequence through Sequencecall?

You need to split the limits for each file into separate excel files (or separate sections of the same file with different tags). You can then load the limits from the root file for the subsequence file as follows:

 

1) Copy the limit loader step, creating a new step for the subsequence file (you can put it right below the original step if you like).

2) Edit the new limit loader step as follows:

a) uncheck the "Import to Run-time Sequence Only" setting.

b) set the sequence file to "PumpTest.seq" (including the quotes)

c) on the source tab change the filename to the file that contains the limits for your subsequence.

 

Hope this helps,

-Doug

By using this web site, you accept the Terms of Use for this web site. Please read these Terms of Use carefully before using any part of this site. Please go here for information on ni.com's copyright infringement policy.
My Profile | Privacy | Legal | Contact NI © 2011 National Instruments Corporation. All rights reserved.    |    E-Mail this Page E-Mail this Page