Using module on multiple ports
tjernobyl
Posts: 2
I have 2 Tandberg precision HD 1080 cams, i was hoping to be able to use the duet module for these cameras, however the module doesnt support daisy chain.
Is there a way to define a module on 2 physical and 2 virtual devices?
// UI module
DEFINE_MODULE 'TANDBERG_PrecisionHD' CameraUI(vdvDev, dvTP, menuButtons)
// Duet comm module
DEFINE_MODULE 'TANDBERG_PrecisionHD_dr1_0_0' Camera1(vdvDev, dvTandberg_PHD)
Is there a way to define a module on 2 physical and 2 virtual devices?
// UI module
DEFINE_MODULE 'TANDBERG_PrecisionHD' CameraUI(vdvDev, dvTP, menuButtons)
// Duet comm module
DEFINE_MODULE 'TANDBERG_PrecisionHD_dr1_0_0' Camera1(vdvDev, dvTandberg_PHD)
0
Comments
I don't think Netlinx uses module names in any way does it? I thought they were for the programmer's benefit.
Paul
i never got i to work, ive tried all sorts of combinations with multiple copies of the same file, defining the modules with different names, hopefully someone will release a visca compatible version on this module in the future, for now ill just do it manually.
Jeff
It does. Internally, the instance name is added to every variable, named wait, subroutine, etc., so multiple modules won't collide with each other. It's not something you can see in any way, but the master does it under the hood. I'm sure that explanation is somewhat simplified, but that is how I heard it from an AMX person ... not sure if it was at training or tech support, but it's not just a guess.
What benefit would that be? I’ve always considered it completely useless from a programmer standpoint.
Interesting. I have seen the same module definition copied and pasted multiple times with the same module name with no issues so I didn't think it mattered at all. When I have a minute to spare I will test it and see what happens.
Just to make sure you aren't missing any module definitions? Not sure really.
Paul
There was a time when there were issues if you had multiple instances of the same module but didn’t group them together as TN527 discusses. I was told that isn’t a problem anymore but I group them together anyway as another just in case.
And then you have this note in the Netlinx help file about modules inside modules:
And lastly, I’ve had several problems when defining duet modules and by just changing the order of the defines the duet modules would work or not work. That one really scares me.