Hi everyone,
I’m trying to write a Channel Access client interface to node.js using libca, and I am running into a puzzling issue.
I have a simple test script where I create a channel, then create a new subscription, and pass in an event callback function which just prints the current value of the PV to the terminal. Most of the time, this works great, but maybe 20% of the time, I get two updates, then nothing else for the duration of the program. This is always using the same code, with the same PV. If I run ‘camonitor’ on the PV repeatedly, I never see the same problem.
I don’t get any exception messages, and the rest of the script doesn’t crash or halt, so it seems like the event callback just stops getting called.
Any ideas about what might be happening, or things I can do to further debug this?
Thanks!
—Matt