danaur Posted June 20, 2023 Share Posted June 20, 2023 (edited) Hi, I try to access ths acq value from the Scope measurements tab in some script within the build-in scripting editor. Auto-complete seems not to work for this feature. And apparently it is not "acq". I am using the most ecent beta 3.20.10. Please educate me. Thank you. Edited June 20, 2023 by danaur Add program version Link to comment Share on other sites More sharing options...
0 attila Posted June 20, 2023 Share Posted June 20, 2023 Hi @danaur See the Help tab and examples. Link to comment Share on other sites More sharing options...
0 danaur Posted June 21, 2023 Author Share Posted June 21, 2023 Hi @attila, I know that I can operate measurements on channels. I am using the results from the Measurements tab directly. This is a releatively new feature and has the possibillity of scripted values. In this example I calculate the current over a shunt. I need to access the Mean, Median, Acq, etc. of the calculated value i_max. This works for every value but Acq. And the auto-complete does not work on the Measurements object attributes. Link to comment Share on other sites More sharing options...
0 attila Posted June 21, 2023 Share Posted June 21, 2023 Hi @danaur Try using measurement names without underscore and "~!@#$%^&*()+{}|:\"<>?,/;'[]\\-=" The underscore is considered by the autocompletion as the end of word, and therefore does not display child nodes, functions, properties correctly. Fixed for the next version and adding note about this feature in the Help. Thank you for the observation. Link to comment Share on other sites More sharing options...
0 danaur Posted June 21, 2023 Author Share Posted June 21, 2023 Ah, yes, thanks - without "_" in the variable name the auto complete is recognized. The "Acq" value from the Measurements table is called "count". attila 1 Link to comment Share on other sites More sharing options...
0 jostikas Posted Tuesday at 05:40 AM Share Posted Tuesday at 05:40 AM On 6/21/2023 at 11:57 AM, attila said: Hi @danaur Try using measurement names without underscore and "~!@#$%^&*()+{}|:\"<>?,/;'[]\\-=" The underscore is considered by the autocompletion as the end of word, and therefore does not display child nodes, functions, properties correctly. Fixed for the next version and adding note about this feature in the Help. Thank you for the observation. Hi! Sorry for necroing this: Has this fix regressed in 3.22.18? Because for me, it works sometimes, then only shows some, and then doesn't at all in others: If I press Ctrl+Space after only alphanum characters, it shows all matching attributes. If I press it after an underscore, it only shows some (!). If I press it after another alphanum after an underscore, nothing is shown. See attached images. Link to comment Share on other sites More sharing options...
0 attila Posted Tuesday at 07:31 AM Share Posted Tuesday at 07:31 AM Hi @jostikas Yes, for script accessibility it replaces in names these characters "~.!@$%*-+|?" with "__iaSpxNPIQ" and removes " `#^&()={}[]\\:;\'\"<>,/" What name did you give to the channels? Link to comment Share on other sites More sharing options...
Question
danaur
Hi,
I try to access ths acq value from the Scope measurements tab in some script within the build-in scripting editor.
Auto-complete seems not to work for this feature.
And apparently it is not "acq".
I am using the most ecent beta 3.20.10.
Please educate me.
Thank you.
Add program version
Link to comment
Share on other sites
6 answers 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