ISISComputingGroup / IBEX

Top level repository for IBEX stories
5 stars 2 forks source link

RIKEN FE: NI DAQ setup for PLC interactions #3266

Closed KathrynBaker closed 6 years ago

KathrynBaker commented 6 years ago

As a member of the computing group I want to be sure that I can use DIO via the NI cDAQ systems to perform the changeover logic switching with the RIKEN Front End PLC

Acceptance Criteria

  1. This will be tested with a real PLC on the 3rd of July as part of #3150
  2. The cDAQ IOC can be run with suitable PVs for the logic IOC
  3. The cDAQ IOC has been tested with emulated PSUs, the logic IOC and some in/out signals in G39 and that it reads/sets lines as expected

Notes

  1. The PLC will drive the line to low to signal that the logic will be changed
  2. Some prototyping of a circuit may be required, although using the other I/O pins via a method such as LabVIEW/NI MAX may be enough for this testing
  3. @Tom-Willemsen should be able to help with the logic IOC
  4. @FreddieAkeroyd is most familiar with the DAQmx IOC
  5. Both Tom and @KathrynBaker have some familiarity with the PSU Emulators in question
FreddieAkeroyd commented 6 years ago

I will spend a small amount of time on the existing DAQmx ioc, it appears to work but may need a bit more understanding of how it works. Given we are happy talking to LabVIEW from an IOC already, it may be easier to prototype this way and then do the full IOC later.

FreddieAkeroyd commented 6 years ago

Now working OK after last PR

FreddieAkeroyd commented 6 years ago

The merged PR code was tested using NI hardware and with a demo system provided by Tim Carter. The PRs just patched the existing daqmx code and generalised a few DB files with macros. I have not committed the modified st.cmd used as it would be very riken specific and live better elsewhere, we will likely merge daqmx, riken power supplies and changeover logic into a single IOC in a separate ticket. So I think this ticket could be considered complete.

kjwoodsISIS commented 6 years ago

After discussion at stand-up, this ticket is now considered complete.