These instructions refer to the active acquisition server, refer to passive acquisition tutorial if you wish to monitor a directory for newly acquired data passively.
cd <tomviz_repo>/acquisition
pip install -r requirements-dev.txt
cd <tomviz_repo>/acquisition
python -m tomviz.acquisition.cli
This will start the server using a mock API for testing.
This method returns a description of the parameters that a particular method supports for the currently loaded adapter.
{
"jsonrpc": "2.0",
"id": "<id>",
"method": "describe",
"params": ["<methodName>"]
}
Returns the parameter description.
{
"jsonrpc": "2.0",
"id": "<id>",
"result": [{...}]
}
Connect to the instrument
{
"jsonrpc": "2.0",
"id": "<id>",
"method": "connect",
"params": {...}
}
{
"jsonrpc": "2.0",
"id": "<id>",
"result": {...}
}
Disconnect from the instrument
{
"jsonrpc": "2.0",
"id": "<id>",
"method": "disconnect",
"params": {...}
}
{
"jsonrpc": "2.0",
"id": "<id>",
"result": {...}
}
## Setting tilt parameters
### Request
```json
{
"jsonrpc": "2.0",
"id": "<id>",
"method": "tilt_params",
"params": {...}
}
Return the current title parameters
{
"jsonrpc": "2.0",
"id": "<id>",
"result": {...}
}
{
"jsonrpc": "2.0",
"id": "<id>",
"method": "acquisition_params",
"params": {...}
}
Return the current acquisition parameters
{
"jsonrpc": "2.0",
"id": "<id>",
"result": {...}
}
{
"jsonrpc": "2.0",
"id": "<id>",
"method": "preview_scan"
}
{
"jsonrpc": "2.0",
"id": "<id>",
"result": "<url>"
}
Where url
is URL that can be used to fetch th 2D TIFF
{
"jsonrpc": "2.0",
"id": "<id>",
"method": "stem_acquire"
}
{
"jsonrpc": "2.0",
"id": "<id>",
"result": "<url>"
}
Where url
is URL that can be used to fetch th 2D TIFF