Global timestamp variable

Shay Ohayon's Avatar

Shay Ohayon

31 Jul, 2017 01:24 PM


How can I send the global timestamp you use to synchronize things internally in mworks as a string over 0MQ?

-- Shay

  1. Support Staff 1 Posted by Christopher Sta... on 31 Jul, 2017 01:44 PM

    Christopher Stawarz's Avatar

    Hi Shay,

    If you want to send it via the Open Ephys network events client, just assign the current time (now()) to the "request" variable. MWorks will convert it into a string for you.

    Alternatively, if you want to send a formatted string that includes the time, use the format function, e.g.

    format("current timestamp = %d", now())


  2. 2 Posted by Shay Ohayon on 31 Jul, 2017 01:46 PM

    Shay Ohayon's Avatar

    Perfect. Thank you for the quick reply.

    -- Shay

  3. Christopher Stawarz closed this discussion on 31 Jul, 2017 08:08 PM.

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

Keyboard shortcuts


? 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