Wiki

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
university:tools:m2k:scopy:scripting-guide [08 Jun 2018 13:01] Antoniu Miclausuniversity:tools:m2k:scopy:scripting-guide [03 Jul 2018 13:54] – [DigitalIO] 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 to true, and then open the Scopy tool.
Line 56: Line 56:
 | 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 201:
 ===== Examples ===== ===== 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]]
 +
 +===== Resources =====
 +  * [[https://wiki.qt.io/JavaScript|JavaScript language Overview]]
 +
 +**Return to [[university:tools:m2k:scopy:|Scopy Main Page]]**
university/tools/m2k/scopy/scripting-guide.txt · Last modified: 25 Jun 2020 22:07 by 127.0.0.1