Hi
As part of experimenting with EPICS Qt with EPICS Base 3.14.12.3, I came to the need to write a function that writes values to PVs. Here is my attempt:
int status;
chid id;
CA_SYNC_GID gid;
ca_search(name, &id);
status = ca_pend_io(1); // Already checking if status != ECA_NORMAL
ca_put(type, id, &value); // type can be DBF_STRING, DBF_DOUBLE, etc.
This is already working fine but I have some questions:
1.
I used to have
ca_task_initialize and
ca_task_exit but my Qt application
always crashes on executing the function, the value is written but the app crashes. I thought since CA is already initialized and cleaned-up within EPICS Qt I removed both functions and the app works fine. Is this a correct behavior?
2.
When do I really need the synchronous group version of
ca_put(the ca_sg_put)?
Best Regards,
Abdalla Ahmad
Control Engineer
SESAME
Allan, Jordan.
Tel: (+962-5) 3511348 , ext. 265
Fax: (+962-5) 3511423
Mob: (+962-7)88183296
www.sesame.org.jo