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

examples: Use session-based simulation by default #258

Merged
merged 10 commits into from
May 4, 2023

Conversation

bkeryan
Copy link
Collaborator

@bkeryan bkeryan commented May 2, 2023

What does this Pull Request accomplish?

Update examples for modular instruments to use session-based simulation by default.

Why should this Pull Request be merged?

Make examples run "out of the box".

Enable simulation for instruments that either do not support persistent simulation in NI MAX or require TSM offline mode to enable persistent simulation.

What testing has been done?

Manually tested all examples in InstrumentStudio and TestStand.

@dixonjoel
Copy link
Collaborator

So with this setup, is it true that the user doesn't have to do anything in NI-MAX? Or do you still need to add a simulated device in NI-MAX?

@bkeryan
Copy link
Collaborator Author

bkeryan commented May 2, 2023

So with this setup, is it true that the user doesn't have to do anything in NI-MAX? Or do you still need to add a simulated device in NI-MAX?

Yes, you no longer have to add simulated devices in NI MAX.

If you do add a simulated device in NI MAX, you have to set USE_SIMULATION=False in order to use it.

Base automatically changed from users/bkeryan/example-options to main May 2, 2023 21:54
bkeryan added 2 commits May 4, 2023 11:52
When you initialize a dict with `d = {}`, mypy infers the key/value types from the
first usage. To allow heterogenous values, add a type annotation.

Signed-off-by: Brad Keryan <[email protected]>
@bkeryan bkeryan merged commit b3d99ad into main May 4, 2023
@bkeryan bkeryan deleted the users/bkeryan/example-simulation branch May 4, 2023 17:14
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

Successfully merging this pull request may close these issues.

2 participants