-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adding more selection options in evm db files #169
Conversation
0bf5e5b
to
07a1567
Compare
@jerzyjamroz @gabrielfedel Any more suggestions before we can complete this PR? |
@hongran , sorry for the long time to answer. I tried to test this branch on our system but I got these errors:
|
@gabrielfedel I think it is due to the configuration of the mtca card. I am checking the config struct:
The config for mtca is
Could you revise the config for the mtca card? According to the manual, the mtca EVM has 1 front panel input, 0 UNIV input (on front panel), 8 I/O ports on the back plane, and 10 input ports on the transition board. The current setting 3 FP input, 16 UNIV input and 0 rear input seem not correct. I also noticed that the code does not differentiate back plane ports and transition board ports. Currently the "Rear" ports are treated as transition board ports. The db file I made was for the VME board which has 16 transition board inputs, but the mtca has 0 in the current config. That's why you saw the errors. Since the number of records for the ports are hard-coded in the evgInput.db, evgTrigEvt.db and evgDbus.db files, it is difficult to make them fit for both VME and mTCA. Any suggestions?
|
@gabrielfedel @jerzyjamroz Hello, have you got a chance to take a look at my last reply? Any suggestions on resolving this issue? If it creates too many hassles to make a db file that fits all cards, I can make a new db file specifically for vme-300, and we can take more time to discuss how to handle this in the future. I would like to have the code we used at APS reconnected to the upstream branch as soon as possible, before we go too deep into operation, and I still have quite a few updates to push. If this PR is merged, it will be easier for me to handle the rest of PRs. |
Hi @hongran , sorry for the long time again. So what you pointed out from the MTCA EVM is really not corrected:
I will double check that, but I think we could handle this in another MR. One of the reasons it has been so long for my answer was because I was looking into what would be the best way to solve the different dbs for MTCA and VME. So my suggestion is the following: You try to keep the existent db's compatible with MTCA (as they are now), and you will include new db's that will "patch" the existent ones for VME. For example for evgDbus.db, you can create the evgDBusVME.db that could have:
You can use the Does that makes sense ? |
Yes. I will give a try and update this MR. |
07a1567
to
0c3898f
Compare
@hongran , I have done the review and it looks it works ok except the fact I didn't test that physically with MTCA RTM. Few things:
The solution with the extension of Please let me know what you think. |
@jerzyjamroz and @gabrielfedel , I just realized that the records (like TD-TEST:Ctrl-EVM-1:TrigEvt0TrigSrcRearInp0-Sel) are hard-coded in eftTrigEvt.db. If we keep it that way there is no way to make a db file that works for both the mTCA and VME cards, since there are 16 transition board channels for VME while there are 10 for mtca. Besides the mbbo records, I also need to extend many records like this. I think it is better to make separate db files for vme-300 cards. If you agree with separate db files, I will push a commit to the MR and make sure the existing db files are the same as those in the master branch except the mutual exclusion mechanism. Ran Hong |
@hongran :
|
fix: db-vme300-dev branch
I have merged your PR. Thanks for making the changes. Now the number of I/O ports are the same, so I don't need to make new db files for now. After I have other contributions in the queue merged, I will come back to this issue and probable we can come up with new ideas. |
Added the rear transition board options for Dbus, triggered event and Pps source.
The select records have more options, and selecting from one record automatically sets others to 0.