Open pgwijesinghe opened 3 weeks ago
Good idea. Any ideas how to generate a serial number for a soft instrument? Things like the cryostats are more or less straightforward because they could be derived from the hardware. But we have X lockins that are all identical... maybe I can get a number from the pxi chassis/4461 cards
Write IDN
is a public method that the child class will call (where? onProcessStarted
?) to set the serial number and firmware number
Protected method to set IDN data:
IDN Data Flow:
Child Instrument:process.vi
calls Open Hardware.vi
Open Hardware.vi
opens connection to the hardware, and then calls Write IDN.vi
Write IDN.vi
queries the S/N (or reads a constant, it's up to the developer) and then calls Instrument.sendMessageToProcess.vi
, the message is then handled by Handle Command.vi
in the Instrument:process.vi
.
I propose adding a feature where all instruments output an identification (IDN) dictionary upon request. This feature would be similar to outputting the set of available commands upon a 'HELP' request.
e.g.