slaclab / pysmurf

Other
2 stars 9 forks source link

Polling cryocard variables #661

Open jlashner opened 3 years ago

jlashner commented 3 years ago

Describe the problem

It would be really useful for us to have the ability to poll and monitor cryocard variables like amplifier bias voltages and currents, etc. so they can show up in our data feeds.

Describe the solution you'd like

I am not sure the best way to do this since cryocard registers all share the same read-pv. One option might be to create a software register for the specific cryocard registers we care about (amplifier currents) which queries the cryocard registers with the correct address whenever we try to poll it. Then we can monitor that software register with the smurf-streamer and pysmurf publisher and poll it regularly. @jesusvasquez333 do you think this would be possible or difficult to implement?

swh76 commented 3 years ago

@jlashner this would require a decent amount of work. One possible issue we should vet before considering fixing this ; someone should try doing the kind of polling you'd like done while taking data to make sure there are no noise implications. These polls will exercise the digital on the cryocard which could potentially impact noise performance. It's probably ok but someone should check.

jlashner commented 2 years ago

I can try a quick test where I take data regularly and while polling once a second and post the results. I still think this would be good to have though