Skip to content
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

String PV #93

Open
georgekontogiorgos opened this issue Feb 1, 2022 · 0 comments
Open

String PV #93

georgekontogiorgos opened this issue Feb 1, 2022 · 0 comments

Comments

@georgekontogiorgos
Copy link

georgekontogiorgos commented Feb 1, 2022

Hello,

I am writing a custom Background Program in C language to perform fast gathers.

One specification is that the user could be able to set the output file name on the GUI. By this reason, I would like to know if there is something related to read and write strings on PowerPMAC.

I saw this snippet of code on pmacVariableWrite template:

record(ao, "$(P)$(Q):SET") {
  field(DESC, "Write value to pmac")
  field(DTYP, "$(DTYP=asynFloat64)")
  field(SDIS, "$(P)$(Q):SYNC.PACT")
  field(OUT, "@asyn($(PORT),0)PMAC_W$(TYPE=D)_$(VAR)")
}

and maybe this TYPE is the solution for my problem. I don`t know how to use it on both sides: EPICS and PowerPMAC; and I would like some help on it.

I also would like to know if I could just adapt TYPE of the same template on tag 2-4-11 which is the running version on our entire lab. The following snippet of the same template for the variable write template of version 2-4-11 (Note that TYPE does not exist)

record(ao, "$(P)$(Q):SET") {
  field(DESC, "Write value to pmac")
  field(DTYP, "asynFloat64")
  field(SDIS, "$(P)$(Q):SYNC.PACT")
  field(OUT, "@asyn($(PORT),0)PMAC_VDM_$(VAR)")

The Cdata shared memory was designed for string manipulation, could I have access to it from pmacVariableWrite?

Thanks in advance
George

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant