HP Forums

Full Version: can you detect virtual vs physical calculator in a program?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I have a Python program that runs much faster on the virtual Prime cf the physical Prime so I was hoping there was some programmatical way to detect one vs the other, either natively in Python or via hpprime.eval().

I note that Help, About shows "Hardware: Emu" but I can't find this in a variable.

Is this possible?
Try the command VERSION(2). It returns the hardware version ("A", "C", or "D") on physical calculators. It might return "Emu" on your virtual machine.
Perfect - it works :-)

Thank you!

(03-05-2024 04:02 AM)Joe Horn Wrote: [ -> ]Try the command VERSION(2). It returns the hardware version ("A", "C", or "D") on physical calculators. It might return "Emu" on your virtual machine.
Reference URL's