epics-modules / mrfioc2

EPICS driver for Micro Research Finland event timing system devices
http://epics-modules.github.io/mrfioc2/
Other
8 stars 29 forks source link

AC trigger generates Events? #148

Closed amichelotti closed 1 month ago

amichelotti commented 2 months ago

Hello, now I'm retrying some tests with AC trigger with this new release. If I set trigevent0 source AC with event code 1 and I set Divider, syncsrc (Event Clk) of Ac trigger in my EVG , I would expect the EVR can see the event code '1'. But I dont see any event '1' arriving. What I miss?

ACTrigger
Insomnia1437 commented 2 months ago

Can you verify your 50 Hz AC TTL level signal using oscilloscope? This signal should be provided to the IN0(TTLIN) input on EVM.

amichelotti commented 2 months ago

Hi, I checked square and levels, but no way to make it working, until I've done:

kill <IOCPID>
rmmod mrf
modprobe pci_mrfevg
modprobe pci_mrfevr

./EvgSetACInput /dev/ega3 0 0 1 0
./EvgSetACMap /dev/ega3 0
./EvgSetTriggerEvent /dev/ega3 0 1
rmmod pci_mrfevg
rmmod pci_mrfevr
modprobe mrf
<startioc>

I've also noted that linux driver 'pci_mrfevg.ko' cannot be used (doesnt generate /dev/egaxx ) if 'mrf.ko' driver is loaded. This way I see the events. So it seems that pci_mrfevg.ko (the above utilities ) does something different respect accessing PVs that should select and activate the AC trigger. I also noted that the led below the IN0 is always OFF independently from AC trigger is working or not.

amichelotti commented 1 month ago

Thanks last patch resolved the issue