Frederick Doering 0 Posted September 12, 2017 Share Posted September 12, 2017 (edited) I'm using WaveForms2015 version 3.6.8 In the help files it specifies .Run.value under patterns yet it appears to be undefined: .Patterns# .States .Trigger.text .Wait.value.Run.value .Repeat.value .RepeatTrigger.checked my script: var AAtemp=Patterns1.Run.value; and the error message I receive: Error in line: 1 TypeError: Result of expression 'Patterns1.Run' [undefined] is not an object. I would like to set the run length of the pattern via script. How can I go about this? Edited September 12, 2017 by Frederick Doering Link to post Share on other sites
1 Solution attila 498 Posted September 12, 2017 Solution Share Posted September 12, 2017 Hi @Frederick Doering First of all let me highlight the following: The Script tool is intended to automate some operations, to extend the GUI features. There is no need to set up all the interface from Script, the Script is saved together with other instruments in workspace. What can be done in the GUI, is easier to do there, like: setup channels, naming, static configuration... Then, use the Script to adjust parameters that need to be changed, write log... like: changing PWM duty based on some scope measurements. The indentions are not shown correctly in the WaveForms help tab. Please open the help in browser, Help menu/ Browse. The Run is the child of States:Patterns1.States.Run.value Link to post Share on other sites
Question
Frederick Doering 0
I'm using WaveForms2015 version 3.6.8
In the help files it specifies .Run.value under patterns yet it appears to be undefined:
.Patterns#
.States
.Trigger.text
.Wait.value
.Run.value
.Repeat.value
.RepeatTrigger.checked
my script:
var AAtemp=Patterns1.Run.value;
and the error message I receive:
Error in line: 1
TypeError: Result of expression 'Patterns1.Run' [undefined] is not an object.
I would like to set the run length of the pattern via script. How can I go about this?
Edited by Frederick DoeringLink to post
Share on other sites
1 answer to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now