Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Consider a cli entry point to query all com ports for harp devices #35

Open
bruno-f-cruz opened this issue Nov 9, 2024 · 1 comment

Comments

@bruno-f-cruz
Copy link
Collaborator

Something that uses harp.toolkit could potentially work.

$portString = Invoke-Expression "harp.toolkit list"

$portNames = $portString -replace '.*\[(.*)\].*', '$1' -split ', '


foreach ($port in $portNames) {
    $command = "harp.toolkit --port $port --timeout 2000"
    Write-Host "Executing command: $command"
    Invoke-Expression $command
}
@galenlynch
Copy link

This is great, huge time saver!

@bruno-f-cruz bruno-f-cruz transferred this issue from AllenNeuralDynamics/Aind.Behavior.Services Jan 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants