Stardraw Forums



Biamp Nexia Level request

Posted By Daniel Goldau 27/01/2012 11:59:59
Add to Favorites0
Author Message
Daniel Goldau
 Posted 27/01/2012 11:59:59
Forum Member

Forum Member - (47 reputation)Forum Member - (47 reputation)Forum Member - (47 reputation)Forum Member - (47 reputation)Forum Member - (47 reputation)Forum Member - (47 reputation)Forum Member - (47 reputation)Forum Member - (47 reputation)Forum Member - (47 reputation)

Group: Forum Members
Last Active: 02/05/2012 14:29:09
Posts: 22, Visits: 79
47
Hi Stardraw Team,


I have a Problem to write the requested Fader Value to a Textbox or so.
Can you help me?

I get the following string from the Biamp:


[3072] [27.Jan.2012:17:19:16+01:00] Debug "Nexia PM (TCP) (2).Tcp Line received: #GETD 2 FDRLVL 99 1 -68.000000 "

but the Textbox will not changed, it will always shown 0.


Connect Lichtservice

Teichweg 4+6

D-49504 Lotte

Tel: ( ..49) 541 6002170

Fax: (..49) 541 6002172

www.connect-lichtservice.de

info@connect-lichtservice.de

 debug.rtf (4 views, 109.11 KB)
David Snipp
 Posted 28/01/2012 15:19:13
Architect

Architect - (3,500 reputation)

Group: Administrators
Last Active: 6 hours ago
Posts: 2,645, Visits: 4,748
Are you getting *any* events fired or is it just this one?

Is your DeviceID for this device set to 2 in the topology view?

Do you have a Biamp Nexia Level Fader connected to the Biamp Nexia (TCP) device in the toplogy view?

Is it's InstanceId set to 99 ?

Are you listening to the event OnFaderLevelChanged event on that device?

I presume that you action to set the textbox is called when this event fires.


David Snipp
Stardraw.com Ltd
Daniel Goldau
 Posted 30/01/2012 14:10:40
Forum Member

Forum Member - (47 reputation)Forum Member - (47 reputation)Forum Member - (47 reputation)Forum Member - (47 reputation)Forum Member - (47 reputation)Forum Member - (47 reputation)Forum Member - (47 reputation)Forum Member - (47 reputation)Forum Member - (47 reputation)

Group: Forum Members
Last Active: 02/05/2012 14:29:09
Posts: 22, Visits: 79
47
Hi David,

I have build a small project.
Sending a value to the nexia is not the problem, because it works fine.
But when i try to request the Faderlevel with button 1 and after the value is shown in the debug file i try to set the LED Text with button 2 the text will changed from 1 to 0 but not to the value in the debug file.
I have try it also with on level changed.. but nothing will changed.


Connect Lichtservice

Teichweg 4+6

D-49504 Lotte

Tel: ( ..49) 541 6002170

Fax: (..49) 541 6002172

www.connect-lichtservice.de

info@connect-lichtservice.de

 debug.txt (6 views, 60.31 KB)
 debug.jpg (5 views, 9.53 KB)
David Snipp
 Posted 06/02/2012 00:07:21
Architect

Architect - (3,500 reputation)

Group: Administrators
Last Active: 6 hours ago
Posts: 2,645, Visits: 4,748
Could you attach a sample project that shows this problem?

We can then reproduce it here and diagnose the problem.


David Snipp
Stardraw.com Ltd
Daniel Goldau
 Posted 08/02/2012 13:10:06
Forum Member

Forum Member - (47 reputation)Forum Member - (47 reputation)Forum Member - (47 reputation)Forum Member - (47 reputation)Forum Member - (47 reputation)Forum Member - (47 reputation)Forum Member - (47 reputation)Forum Member - (47 reputation)Forum Member - (47 reputation)

Group: Forum Members
Last Active: 02/05/2012 14:29:09
Posts: 22, Visits: 79
47
Hi David,

I have attached a sample project.

Regards

Daniel


Connect Lichtservice

Teichweg 4+6

D-49504 Lotte

Tel: ( ..49) 541 6002170

Fax: (..49) 541 6002172

www.connect-lichtservice.de

info@connect-lichtservice.de

 sample.zip (1 view, 48.73 KB)
Andrus
 Posted 09/02/2012 13:17:18
Supreme Being

Supreme Being - (156 reputation)Supreme Being - (156 reputation)Supreme Being - (156 reputation)Supreme Being - (156 reputation)Supreme Being - (156 reputation)Supreme Being - (156 reputation)Supreme Being - (156 reputation)Supreme Being - (156 reputation)Supreme Being - (156 reputation)

Group: Forum Members
Last Active: 17/04/2012 23:57:50
Posts: 92, Visits: 729
156
Hi guys!

You not getting back anything because there is a small bug in the driver. Martin fixed it about 2 years ago but I think fixed driver is not uploaded to the library. Below is working one!

using System;

using Stardraw;

using Stardraw.Project;

using Stardraw.Control;


public class MyClass : BaseInPortInstance {


public MyClass(ProductInstance productInstance, Port port) : base(productInstance, port) {

}

private int instanceId = 0;

[PromoteProperty]

public int InstanceId {

get { return instanceId; }

set { instanceId = value; }

}

private int faderNumber = 0;

[PromoteProperty]

public int FaderNumber {

get { return faderNumber; }

set { faderNumber = value; }

}


ScriptHelper sh = new ScriptHelper();


private void SendSetCmd(string cmd) {

if (ConnectedPort != null)

sh.ExecutePortMethod(ConnectedPort.ProductInstance.Name, ConnectedPort.Name, "SendSetCmd", cmd);

}

private void SendIncCmd(string cmd) {

if (ConnectedPort != null)

sh.ExecutePortMethod(ConnectedPort.ProductInstance.Name, ConnectedPort.Name, "SendIncCmd", cmd);

}

private void SendDecCmd(string cmd) {

if (ConnectedPort != null)

sh.ExecutePortMethod(ConnectedPort.ProductInstance.Name, ConnectedPort.Name, "SendDecCmd", cmd);

}

private void SendGetCmd(string cmd) {

if (ConnectedPort != null)

sh.ExecutePortMethod(ConnectedPort.ProductInstance.Name, ConnectedPort.Name, "SendGetCmd", cmd);

}

[Controllable]

public event EventHandler OnFaderLevelChanged;

public void ChangeFaderLevel(double level) {

if (faderLevel != level) {

faderLevel = level;

if (OnFaderLevelChanged != null)

OnFaderLevelChanged(this, EventArgs.Empty);

}

}

double faderLevel = 0;

[Controllable]

public double FaderLevel {

get { return faderLevel; }

set { SendSetCmd(string.Format("FDRLVL {0} {1} {2}", InstanceId, faderNumber, value)); }

}

[Controllable]

public void FaderLevel_Increment(int value) {

SendIncCmd(string.Format("FDRLVL {0} {1} {2}", InstanceId, faderNumber, value));

}

[Controllable]

public void FaderLevel_Decrement(int value) {

SendDecCmd(string.Format("FDRLVL {0} {1} {2}", InstanceId, faderNumber, value));

}

[Controllable]

public void RequestFaderLevel() {

SendGetCmd(string.Format("FDRLVL {0} {1}", InstanceId, faderNumber));

}

[Controllable]

public void RequestFaderMute() {

SendGetCmd(string.Format("FDRMUTE {0} {1}", InstanceId, faderNumber));

}


[Controllable]

public event EventHandler OnMuteChanged;

public void ChangeMute(bool _mute) {

if (mute != _mute) {

mute = _mute;

if (OnMuteChanged != null)

OnMuteChanged(this, EventArgs.Empty);

}

}


private bool mute;

[Controllable]

public bool Mute {

get { return mute; }

set { SendSetCmd(string.Format("FDRMUTE {0} {1} {2}", InstanceId, faderNumber, value ? 1 : 0)); }

}


public void OnLineIn(string line) {


if (line.StartsWith("#GETD")) {

string[] strings = line.Split(' ');

if (strings.Length > 4) {

int number = int.Parse(strings[4]);

if (number == faderNumber) {

switch (strings[2]) {

case "FDRLVL":

ChangeFaderLevel(double.Parse(strings[5], System.Globalization.CultureInfo.CreateSpecificCulture("en-us")));

break;

case "FDRMUTE":

ChangeMute(strings[5] == "1");

break;

}

}

}

}

}

}



BR

Andrus
Digital Emotions
David Snipp
 Posted 09/02/2012 13:30:01
Architect

Architect - (3,500 reputation)

Group: Administrators
Last Active: 6 hours ago
Posts: 2,645, Visits: 4,748
Thanks for this Andrus,

We've now published an updated driver for the Biamp Nexia PM Level Fader.


David Snipp
Stardraw.com Ltd
Andrus
 Posted 09/02/2012 13:50:51
Supreme Being

Supreme Being - (156 reputation)Supreme Being - (156 reputation)Supreme Being - (156 reputation)Supreme Being - (156 reputation)Supreme Being - (156 reputation)Supreme Being - (156 reputation)Supreme Being - (156 reputation)Supreme Being - (156 reputation)Supreme Being - (156 reputation)

Group: Forum Members
Last Active: 17/04/2012 23:57:50
Posts: 92, Visits: 729
156
Hi!

Same problems are also for Mixer output fader and Nexia output fader DSP blocks.

BR

Andrus
David Snipp
 Posted 09/02/2012 14:00:22
Architect

Architect - (3,500 reputation)

Group: Administrators
Last Active: 6 hours ago
Posts: 2,645, Visits: 4,748
Andrus,

Thanks for that - we have now updated the Mixer Output and the Output Fader DSP Block drivers.


David Snipp
Stardraw.com Ltd
Daniel Goldau
 Posted 10/02/2012 08:13:09
Forum Member

Forum Member - (47 reputation)Forum Member - (47 reputation)Forum Member - (47 reputation)Forum Member - (47 reputation)Forum Member - (47 reputation)Forum Member - (47 reputation)Forum Member - (47 reputation)Forum Member - (47 reputation)Forum Member - (47 reputation)

Group: Forum Members
Last Active: 02/05/2012 14:29:09
Posts: 22, Visits: 79
47
Hi David, Hi Andrus,

Andrus, your Driver is working fine, thanks.

David, i have tested the updated driver but the driver don't work, i have copy the script from Andrus to my Project manualy and it works.
Please check and the updated driver, thanks

Daniel


Connect Lichtservice

Teichweg 4+6

D-49504 Lotte

Tel: ( ..49) 541 6002170

Fax: (..49) 541 6002172

www.connect-lichtservice.de

info@connect-lichtservice.de


Similar Topics

Expand / Collapse

Reading This Topic

Expand / Collapse

Back To Top