Sending OSC out DAT values

Hi everyone from the derivative community,

i have some issues on my TD osc project, i’m sending through an OSC out DAT values from a curve, the condition that im using on my OSC out DAT is Whileon. Looking through Protokol i noticed that i can’t send clean 0 values or negative values, but if i use on values change all values are sended but if there’s some still values in time i can send it only once.
i don’t know if i explained right but my question is: there’s a method to send clean 0s in whileon condition or in the other hand is possible use value changes but sending constant value though the time ?

It’s helpful to upload a bit of your code here to see what you are doing.

I am not sure I completely understand but it sounds like you are using a chopExecute to send a message to the OSCoutDAT.

The chopExecute will only fire when numbers change or when the value is above 1 (while On)

You could try putting your chop value directly into the OSCoutCHOP instead, it will send every frame by default

that’s my setup, the final output of my values will be stepper motors or brushless motors.
Working on plc (to receive and translate output values), we noticed that OSC out CHOP send unwanted values complicating plc coding, this problem doesn’t happen when using this OSC out DAT setup.
That’s why, for now, i’m restricted to use DAT instead CHOP.
There’s a way to force the DAT to fire 0 too insted >0 values only?

Hi @marcop,

the whileOn callback will execute every frame that a channel’s value is >0 hence a value that is 0 or below will not trigger the whileOn callback.
Do you need to always send all values or only if the value changed?
One simple adjustment could be to just use the same code from the whileOn callback in the whileOff callback which would now catch all values 0 or below.
You could also consider using a Execute DAT instead and run your code slightly adjusted from the onFrameStart callback.

cheers
Markus

Thanks a lot Markus!, using while off condition make it works as I figured it, i feel a bit dumb to not try this before, thanks again for ur work in this community

Marco