more python bridge / plotting questions

mhisted's Avatar

mhisted

05 Feb, 2021 03:23 PM

Hi Chris,

I'm setting up plotting in Python via the client bridge, as I alluded to in last question.

I currently have a little Python infrastructure code for client bridge scripts to register a callback on every variable and then keep track of their current values. This seems to work ok.
I vaguely remember you and I discussed having a client-bridge-side function to just return the current value of each variable.
I assume that would have been implemented via C-level processing of the event stream to do what I do in Python.
But I checked through the Python IPCConduit code and didn't see anything like this.

Question: should I just use my existing code, or is there a currently-faster way to do it? If it doesn't exist already, I'm happy to try adding plotting to what I've got and hopefully processing time won't be limiting.

Mark

  1. Support Staff 1 Posted by Christopher Sta... on 05 Feb, 2021 03:29 PM

    Christopher Stawarz's Avatar

    Hi Mark,

    I vaguely remember you and I discussed having a client-bridge-side function to just return the current value of each variable.

    That's been on my to-do list for a long time, but I haven't implemented it yet. Until I do, you'll need to stick to your current approach.

    Cheers,
    Chris

  2. 2 Posted by mhisted on 05 Feb, 2021 05:43 PM

    mhisted's Avatar

    Hi Chris,

    Not a big deal. My Python version should be fine. I'll probably do some profiling in the next few weeks and I'll share what I find, too.

    Mark

  3. Christopher Stawarz closed this discussion on 05 Feb, 2021 06:59 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac