levylabpitt / Multichannel-Lockin

Multichannel software lock-in amplifier.
BSD 3-Clause "New" or "Revised" License
12 stars 0 forks source link

Generate a UID for Multichannel Lock-in #86

Open pgwijesinghe opened 2 weeks ago

pgwijesinghe commented 2 weeks ago

Currently the Multichannel Lock-in being a software doesn't come with a serial number. Proposal is to create a scheme linking the serial numbers of the HW components attached (Chassis/DAQ Cards).

NI System Configuration APIs allow us to capture these information. An example is provided in the directory (default): "C:\Program Files (x86)\National Instruments\LabVIEW 2019\examples\nisyscfg\Show All Hardware.vi" where it lists down all the attached devices to a target PC and their serial numbers. We can modify this to filter out the Chassis/DAQ cards.

image

ciozi137 commented 2 weeks ago

I will try to implement by getting info from DAQmx tasks at task creation: image

I don't know if I can get Chassis serial number this way. If not, I can use NI System Configuration. I already use these when enumerating multiple synchronized chassis: image