Skip to content

Commit 026fc34

Browse files
authored
Merge f3498de into a2b78bd
2 parents a2b78bd + f3498de commit 026fc34

13 files changed

+377
-205
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: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@ Check [Keep a Changelog](http://keepachangelog.com/) for recommendations on how
3131
- (**tsp-toolkit-kic-cli**) Fixed timeout issue with upgrading instruments over USB
3232
- (**tsp-toolkit-kic-cli**) Fixed issue with writing a zero-sized TSP script to an instrument
3333

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

3639
### Fixed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,8 @@ The Instrument Explorer provides an intuitive interface for discovering, connect
8181
- **Firmware Upgrade**: Upgrade instrument firmware directly from the explorer interface.
8282
- **Terminal Integration**: Open terminal connections to instruments with a single click.
8383
- **Reset & Abort**: Control instrument state with reset and abort functions.
84+
- **\[Beta] Save Buffers to File**: Save the contents of a reading buffer to a CSV-format file
85+
- **\[Beta] Save Commands and Output to File**: Save any proceeding commands and their output to a file
8486

8587
### Terminal Usage
8688

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

108110
1. Right-click a TSP file in the explorer or editor and select "Send Script to Terminal"
109111
2. Click the Run icon in the editor title bar when a TSP file is open
112+
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
110113

111114
### Automated TSP Script Generation
112115

package-lock.json

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

package.json

Lines changed: 6 additions & 6 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,9 +673,9 @@
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",
676+
"@tektronix/kic-cli-darwin-arm64": "0.21.2-8",
677+
"@tektronix/kic-cli-linux-x64": "0.21.2-8",
678+
"@tektronix/kic-cli-win32-x64": "0.21.2-8",
679679
"@tektronix/script-gen-darwin-arm64": "0.1.1-0",
680680
"@tektronix/script-gen-linux-x64": "0.1.1-0",
681681
"@tektronix/script-gen-win32-x64": "0.1.1-0"

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)