Skip to content

Commit 5777856

Browse files
authored
Merge 3b79083 into a2b78bd
2 parents a2b78bd + 3b79083 commit 5777856

14 files changed

+402
-223
lines changed

.vscode/settings.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,11 @@
2121
"typescript.tsc.autoDetect": "off",
2222
"cSpell.words": [
2323
"categ",
24+
"hislip",
2425
"IIDN",
2526
"LOGLOC",
26-
"rclick"
27+
"rclick",
28+
"TCPIP"
2729
],
2830
"Lua.workspace.ignoreDir": [],
2931
"Lua.diagnostics.libraryFiles": "Disable",

CHANGELOG.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,10 @@ Check [Keep a Changelog](http://keepachangelog.com/) for recommendations on how
1919
## [1.4.1]
2020

2121
### Added
22-
- \[Beta] Add ability to save script output to a file
23-
- \[Beta] Add ability to save buffer contents to a file
24-
- \[Beta] Add ability to start and stop saving commands and output to a file
22+
- \[Beta] Add Data Export Feature
23+
- \[Beta] Add ability to save script output to a file
24+
- \[Beta] Add ability to save buffer contents to a file
25+
- \[Beta] Add ability to start and stop saving commands and output to a file
2526
- Instrument login support for debugger
2627

2728
### Fixed
@@ -31,6 +32,9 @@ Check [Keep a Changelog](http://keepachangelog.com/) for recommendations on how
3132
- (**tsp-toolkit-kic-cli**) Fixed timeout issue with upgrading instruments over USB
3233
- (**tsp-toolkit-kic-cli**) Fixed issue with writing a zero-sized TSP script to an instrument
3334

35+
### Changed
36+
- (**tsp-toolkit-kic-cli**) When discovering VISA instruments, enumerate from VISA multiple times
37+
3438
## [1.4.0]
3539

3640
### Fixed

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ TSP-enabled Tektronix and Keithley instruments. This toolkit delivers a complete
1717
* **Script Debugging** - On-instrument debugging with breakpoints, step execution, and variable inspection.
1818
* **Automated Script Generation** - Configuration-driven interface to create TSP scripts without manual coding.
1919
* **System Configuration Management** - Support for TSP-Link™ networks and multi-instrument setups.
20+
* **\[Beta] Data Export**
21+
- **\[Beta]** Save script output to a file
22+
- **\[Beta]** Save buffer contents to a file
23+
- **\[Beta]** Start and stop saving commands and output to a file
2024

2125
## Quick Start
2226

@@ -81,6 +85,8 @@ The Instrument Explorer provides an intuitive interface for discovering, connect
8185
- **Firmware Upgrade**: Upgrade instrument firmware directly from the explorer interface.
8286
- **Terminal Integration**: Open terminal connections to instruments with a single click.
8387
- **Reset & Abort**: Control instrument state with reset and abort functions.
88+
- **\[Beta] Save Buffers to File**: Save the contents of a reading buffer to a CSV-format file
89+
- **\[Beta] Save Commands and Output to File**: Save any proceeding commands and their output to a file
8490

8591
### Terminal Usage
8692

@@ -107,6 +113,7 @@ To execute your TSP scripts on connected instruments, you can perform one of the
107113

108114
1. Right-click a TSP file in the explorer or editor and select "Send Script to Terminal"
109115
2. Click the Run icon in the editor title bar when a TSP file is open
116+
3. **\[Beta]** Save the output of a script to a file by clicking on the "\[Beta] Save TSP Script Output" option under the run/debug icon drop down at the top of the editor
110117

111118
### Automated TSP Script Generation
112119

@@ -230,6 +237,8 @@ Extensions installed through the marketplace are subject to the [Marketplace Ter
230237
- [App Note: How to Write TSP Scripts for TSP][app-note-how-to-write-tsp-scripts]
231238
- [App Note: Effortless Script Generation with TSP Toolkit ][app-note-script-gen]
232239
- [TSP Script Example Repository][tsp-script-examples]
240+
- Clone or download the ZIP file of the repository using the "Code" button
241+
![Clone or download from GitHub using the "Code" button](./images/ExampleRepoDownload.png)
233242

234243
### Supported Locales
235244

images/ExampleRepoDownload.png

26.3 KB
Loading

package-lock.json

Lines changed: 36 additions & 36 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -206,8 +206,8 @@
206206
"icon": "$(edit)"
207207
},
208208
{
209-
"command": "InstrumentsExplorer.updateIPAddr",
210-
"title": "Update IP Address",
209+
"command": "InstrumentsExplorer.updateInstrumentAddr",
210+
"title": "Update Instrument Address",
211211
"icon": "$(edit)"
212212
},
213213
{
@@ -451,7 +451,7 @@
451451
"group": "inline"
452452
},
453453
{
454-
"command": "InstrumentsExplorer.updateIPAddr",
454+
"command": "InstrumentsExplorer.updateInstrumentAddr",
455455
"when": "view == InstrumentsExplorer && viewItem =~ /CONN.*Enabled.*/ && viewItem =~ /CONN.*Active.*/ && !(viewItem =~ /.*Connected.*/)",
456456
"group": "inline"
457457
},
@@ -673,12 +673,12 @@
673673
"xml-js": "1.6.11"
674674
},
675675
"optionalDependencies": {
676-
"@tektronix/kic-cli-darwin-arm64": "0.21.2-4",
677-
"@tektronix/kic-cli-linux-x64": "0.21.2-4",
678-
"@tektronix/kic-cli-win32-x64": "0.21.2-4",
679-
"@tektronix/script-gen-darwin-arm64": "0.1.1-0",
680-
"@tektronix/script-gen-linux-x64": "0.1.1-0",
681-
"@tektronix/script-gen-win32-x64": "0.1.1-0"
676+
"@tektronix/kic-cli-darwin-arm64": "0.21.2",
677+
"@tektronix/kic-cli-linux-x64": "0.21.2",
678+
"@tektronix/kic-cli-win32-x64": "0.21.2",
679+
"@tektronix/script-gen-darwin-arm64": "0.1.1",
680+
"@tektronix/script-gen-linux-x64": "0.1.1",
681+
"@tektronix/script-gen-win32-x64": "0.1.1"
682682
},
683683
"extensionDependencies": [
684684
"sumneko.lua"

src/activateTspDebug.ts

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ export function activateTspDebug(
4848
Log.error("No connection available for debugging", LOGLOC)
4949
return
5050
}
51+
await conn.exitConnection()
5152

5253
// Set up debug helper
5354
DebugHelper.debuggeeFilePath = targetResource.fsPath
@@ -184,16 +185,5 @@ class InlineDebugAdapterFactory implements DebugAdapterDescriptorFactory {
184185
}
185186

186187
async function get_connection(): Promise<Connection | undefined> {
187-
let connection = await getActiveConnection()
188-
189-
if (!connection) {
190-
connection = await pickConnection()
191-
}
192-
if (!connection) {
193-
return undefined
194-
}
195-
196-
await connection.connectAndExit()
197-
198-
return connection
188+
return (await getActiveConnection()) || (await pickConnection())
199189
}

0 commit comments

Comments
 (0)