How zzjimo/visa-tool works
VisaTool is an MFC Windows application for controlling a VISA-connected instrument, with a TCP server that accepts newline-separated commands and returns query results or errors. The demonstrated path is a TCP client request through TcpServer to the instrument operations exposed by myThread. The README identifies the main dialog but gives only MFC template documentation; the dialog and myThread implementation were not sampled, so their internal workflow and UI wiring remain uncertain.
Main entry points: TcpServer.cpp TCP server · VisaToolDlg.cpp Main dialog · myThread.cpp Instrument operations · visa.h VISA API
Components 9
Application UI
- Main dialog
VisaToolDlg.cpp
Instrument control
- TCP server
TcpServer.cpp - Instrument operations
myThread.cpp
VISA support
- Shared helpers
stdafx.cpp - VISA API
visa/visa.h - VISA types
visa/visatype.h
Other components
- Operator
- TCP client
- Instrument
Connections 8
- Operator → Main dialog: uses
ReadMe.txt - Main dialog → TCP server: starts
- TCP client → TCP server: sends commands
TcpServer.cpp - TCP server → Instrument operations: dispatches commands
TcpServer.cpp - Instrument operations → Instrument: controls via VISA
- TCP server → VISA API: checks status codes
TcpServer.cpp - VISA API → VISA types: uses types
visa/visa.h - Shared helpers → Main dialog: provides utilities