Wiki

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
university:tools:m2k:scopy:scripting-guide [08 Jun 2018 16:40]
Antoniu Miclaus add examples
university:tools:m2k:scopy:scripting-guide [06 Dec 2018 15:29]
Antoniu Miclaus
Line 11: Line 11:
 The scripts can be run in two different ways: The scripts can be run in two different ways:
  
-=== Via command line: ===+==== Via command line: ====
  
 <​xterm>​ <​xterm>​
Line 17: Line 17:
 </​xterm>​ </​xterm>​
  
-=== Via Debugger Instrument ===+==== Via Debugger Instrument ​====
  
-To open the Debugger in Scopy tool, its visibility must be enbled in the Instrument Menu. To do this, open the Scopy.ini file under the following path: "​C:​\Users\<​your_username>​\AppData\Roaming\ADI"​. Change the "​debugger"​ property from the "​launcher"​ group from to true, and then open the Scopy tool.+To open the Debugger in Scopy tool, its visibility must be enbled in the Instrument Menu. To do this, open the Scopy.ini file under the following path: "​C:​\Users\<​your_username>​\AppData\Roaming\ADI"​. Change the "​debugger"​ property from the "​launcher"​ group from '​false' ​to 'true. **Make sure that Scopy app is closed when doing the file modifications.**
  
 <WRAP centeralign>​{{:​university:​tools:​m2k:​scopy:​debugger_true.png?​250|}} <WRAP centeralign>​{{:​university:​tools:​m2k:​scopy:​debugger_true.png?​250|}}
 </​WRAP>​ </​WRAP>​
 +
 +Now open Scopy:
  
 <WRAP centeralign>​{{:​university:​tools:​m2k:​scopy:​debugger_instrlist.png|}} <WRAP centeralign>​{{:​university:​tools:​m2k:​scopy:​debugger_instrlist.png|}}
Line 56: Line 58:
 | dio.dir[idx] ​      | Read/​Write ​ | true(out);​false(in) ​ | Set channel direction (idx=0-15) | | dio.dir[idx] ​      | Read/​Write ​ | true(out);​false(in) ​ | Set channel direction (idx=0-15) |
 | dio.out[idx] ​      | Read/​Write ​ | true(high);​false(low)| Set channel output (idx=0-15) ​   | | dio.out[idx] ​      | Read/​Write ​ | true(high);​false(low)| Set channel output (idx=0-15) ​   |
-| dio.gpi[idx] ​      | Read        | true(on);false(off | Check if channel ​pin can be used as input (or is used by other instrument as output, i.e. Pattern Generator Instrument   |+| dio.gpi[idx] ​      | Read        | true(high);false(low)| Check pin value (high/low      ​|
 | dio.running ​       | Read/​Write ​ | true(on);​false(off) ​ | Run DigitalIO instrument ​        | | dio.running ​       | Read/​Write ​ | true(on);​false(off) ​ | Run DigitalIO instrument ​        |
  
Line 201: Line 203:
 ===== Examples ===== ===== Examples =====
  
-List of script examples:+List of script examples ​can be found here: 
 + 
 +  * [[https://​minhaskamal.github.io/​DownGit/#/​home?​url=https://​github.com/​analogdevicesinc/​scopy/​tree/​master/​js|Script Examples]]
  
-  * {{ :​university:​tools:​m2k:​scopy:​dio.zip | }} +===== Resources ===== 
-  * {{ :university:​tools:​m2k:​scopy:​siggen_osc.zip | }} +  * [[https://wiki.qt.io/​JavaScript|JavaScript language Overview]]
-  * {{ :​university:​tools:​m2k:​scopy:​power_dmm.zip }}+
  
 +**Return to [[university:​tools:​m2k:​scopy:​|Scopy Main Page]]**
university/tools/m2k/scopy/scripting-guide.txt · Last modified: 25 Jun 2020 22:07 (external edit)