Generic Serial Cont...
 
Notifications
Clear all

Generic Serial Controllers

6 Posts
3 Users
0 Reactions
1,579 Views
Posts: 6728
Topic starter
(@p-short)
Illustrious Member
Joined: 20 years ago
[#58236]

Is there any way to place non-constant data in the header, such as the length of the packet?


5 Replies
jeffu231
Posts: 2456
(@jeffu231)
Famed Member
Joined: 15 years ago

There is not currently a way to put variable data in the header. What is the use case you are trying to solve for?


Reply
Posts: 6728
Topic starter
(@p-short)
Illustrious Member
Joined: 20 years ago

I've been designing a controller that would use generic serial input. I'd like to avoid needing to either hard-code the packet length in the controller or to have to add another mechanism to send that information to the controller. Not a big deal, though, I'll just add a two- or three- channel group that is programmed with a 'SetLevel' containing that data and connect it to the first output channels of the controller.


Reply
Posts: 429
(@mikekrebs)
Reputable Member
Joined: 12 years ago

Not exactly variable but...If you are building the element in vixen, wouldn't you know the number of pixels? If so, then you can just add the number in the header such as !@#099. Your controller program would look for !@# and assume the next three values are the size (in pixels) and then the 99 pixels worth of data would follow. It is about the same as using a set level on a "fake" element but I think adding it to the header is a tiny bit better unless you want to change it as you play the sequence.


Reply
jeffu231
Posts: 2456
(@jeffu231)
Famed Member
Joined: 15 years ago

I agree with Mike, the serial frame data size will always be the same size no matter what is happening on the lights and it will be aligned with the number of channels in use on the serial controller in Vixen. So it would be pretty simple to just add it to the header and adjust it if you add more channels.


Reply
Page 1 / 2
Share: