Hi.
I wonder if it is possible to change output data range for "generic serial" ? For example I have channel in vixen3 and I changing its brightness from 0 to 100% and output data for this channel in "generic serial" stream changes from 0 to 255 what is typical standard setup. I want to configure this range to 0 - 31 or simply speaking I want to reduce resolution from 8 to 5 bits per channel. I think it can be done using dimming curves but I don't know how and I cant find the ansfer in tutorials and documentation. Thanks for any help in this question.
If you are using an Arduino you could use the "map()" instruction to change the received bytes from 0 - 255 to 0 - 31.
https://www.arduino.cc/reference/en/language/functions/math/map/
I haven't used dimming curves in Vixen to answer your question.
You can use a dimming curve to alter the range. You would add a curve to the output and set it to be a linear line from 0 - 31. It defaults to a ramp on, so drag the right side down to 31 from 100. It maps values from left to right to the vertical value indicated by the curve.
jeffu231 wrote:You can use a dimming curve to alter the range. You would add a curve to the output and set it to be a linear line from 0 - 31. It defaults to a ramp on, so drag the right side down to 31 from 100. It maps values from left to right to the vertical value indicated by the curve.
Small correction. The dimming curve is in percentage. So if you want a range of 0-31, then you need to set the rightmost point on the dimming curve to be 31/255 which is 12.156%
So ... I added dimming curves as described using configure/dimming curve for group and I stil have 0-255 values at output, but if I click individual curve block for each item in grapgical pathing, do something here - for example click twice "reverse curve" button and then click OK it start working for this particular item. This is not a problem if you have 10-15 otputs ... but I have at arount 3000 - a loot of clicking. I don't want to use "map()" or generaly do this in driver's firmware because I want to reduce datastream pushed into the serial port as much as possible and send as fast as possible by reducing number of sended bits from 8 to 5 and it generaly work perfect now I sending 2700 raw channels (900 RGB's) at 921600baud and takes 23ms per frame but configuring those curves this way will be a pain.
dzejwor wrote:... I don't want to use "map()" or generaly do this in driver's firmware because I want to reduce datastream pushed into the serial port as much as possible and send as fast as possible by reducing number of sended bits from 8 to 5 ....
Vixen only sends bytes, as I understand it. Therefore you wouldn't be reducing the datastream on a channel basis, only the value.
Edit: Each channel will be 10 bits, The only way to reduce byte counts is to "encode" the datastream. But you will have packing and de-packing overhead and Vixen doesn't have such a protocol that I'm aware of.
You can reduce number of bits in COM port configuration - standard and widely used config is 8 data bits 1 stop bit and no parity but nothing obstructs the setting of other values and I now use 5 databits, 1 stop bit and no parity and in hardware/firmware aspect everything work perfect - any troubles there but data range generated by vixen itself is stil 8 bit and this is what I want to do - "reduce" it by applying dimming curves to outputs what also is already tested - I have my 0 - 31 change in datastream. The problem is in the configuration of the dimming curves window what seems to save but not use new dimming curve setup when I add it to the group of outputs. I adding for example "generic numbered group" what contains 10 lights, a group of 10 outputs was generated. Now i apply dimming curve for this group and set it as described here (left side reduced to ~12%) "dimming curve" blocks are generated for each output) now I adding "color handling" and set it to full RGB ("color breakdown" blocks are generated) now I pathing my 30 outputs from color breakdown blocks to the generic serial and ... nothing still have 0-255 output in data stream. I need to click every single "dimming curve" block in grapgical pathing viev, make some change here no matter what then change it back to proer value and click OK. From this point, the curve starts to work according to the settings. looks like some kind of software bug or I do something wrong.
