Keyboard Shortcuts
Likes
- Crestron
- Messages
Search
Re: How to get C# trigger a method based on event from Simpl+
Trying to create logic similar to the game Othello. this has been causing the following error: Unhandled Exception: System.NullReferenceException: Object reference not set to an instance of an object in Simpl+
? C# public class myGame { ? ? ?public ushort BUTTONID { get; set;} ? ? ?public ushort ButtonId? ? ? // being populated from Simpl+ ? ? ?{ ? ? ? ? ? ?get { return BUTTONID; } ? ? ? set { BUTTONID = value; } ? ? ? } ? ? ? ?public RootButtons[] _buttons = new RootButtons[64]; // set board array 8x8 playing grid ? ? ? ?public void ButtonPresses() ? ? { ? ? ? ? ButtonClickLogic(ButtonId); // call method ? ? ?} ? ? ?public bool ButtonClickLogic(ushort buttonPress) ? ? { ? ? ? ? ? If( _buttons[buttonPress].BUTTON_FB = 0) ? ? ? ? ? ?{ ? ? ? ? ? ? ? ? _buttons[buttonPress].BUTTON_FB = 1; ? ? ? ? ? ?} ? ? ? ? ? else ? ? ? ? ? ?{ ? ? ? ? ? ? ? _buttons[buttonPress].BUTTON_FB = 0; ? ? ? ? ? ?} ? ? ?} } public class RootButtons
? ? {
? ? ? ? public ushort BUTTON_FB { get; set; }
? ? } Simpl+ push Button { ? ? ?x = getlastmodifedarrayindex(); ? ? ?myGame.ButtonId = x; ? ? myGame.ButtonPresses(); } I have an EventHandler for return values from C# |
Re: How to get C# trigger a method based on event from Simpl+
¿ªÔÆÌåÓýBool is not a datatype understood by SIMPL+ so you won¡¯t have access to those methods. ? You can wrap it in a ushort equivalent method but SIMPL+ also doesn¡¯t generally deal well with one method having multiple signatures. ? e.g. ? public void doSomethingForSimpl(ushort i) { ????????????? doSomething((I != 0)); } ? Public void doSomething(bool b) { ????????????? // original method } ? In theory ? Public void doSomething(ushort i) { ????????????? doSomething((I != 0)); } ? Should also work. Until it doesn¡¯t. Usually defining it first makes things happy..until something changes. -- Lincoln King-Cliby Commercial Market Director ? From: [email protected] <[email protected]> On Behalf Of
Brad Wykoff via groups.io
Sent: Tuesday, February 28, 2023 6:33 PM To: [email protected] Subject: Re: [crestron] How to get C# trigger a method based on event from Simpl+ ? what if method in C# is public bool? |
Re: 3 Series Comparison
¿ªÔÆÌåÓýI have an MC3 for sale if it¡¯s going to get anyone out of a jam. Location NZTim Greenbank Control Systems Engineer On 1 Mar 2023, at 07:56, Mike Moso via groups.io <AV_Programmer@...> wrote:
|
How to get C# trigger a method based on event from Simpl+
I am able to use EventHandler in Simpl+ to watch for changes from C# but how do you reverse that logic??
Example: I have an integer (16bit) value that periodically changes in Simpl+ that is being sent to C# via public ushort somename; Need C# to watch for changes to somename then do something, like trigger a method.? |
Re: 3 Series Comparison
The thing I find most troubling is that Crestron provides no mention of processor other than "3 Series". I have used every 3 Series available, and each one feels like it operates differently, and the MC3 is the worst performer.
But we cannot quantify those experiences other than referring to system ram, as that is the only metric Crestron provides us to compare (and IO too). The PRO2 has been a top contender for my projects and has also given me zero issues. Before moving to the RMC3 for my house, I used the PRO2. Mike - |
Re: Doorbird D1101V1
On Tue, Feb 28, 2023 at 12:07 PM, MSTC wrote:
Camera server does not support many simultaneous streams, so on a large system you might want to mount Doorbird to an NVR and then point the touch panels to the particular NVR channel stream rather than pointing them to the Doorbird.? I leave the Doorbird out of the ¡°cameras¡± list as it is available on the ¡®gate¡± page.? AV LinkPro also has NVR capability, so it might do the trick, check with them for features ¨C but NVR is an additional option ($).MSTC, That's a brilliant idea!! Thanks!!? (why didn't I think of that??...) |
Re: Doorbird D1101V1
¿ªÔÆÌåÓýMy experience is Doorbird reliably integrates quite well with Crestron via the ControlWorks module in a small system, and also via the AV LinkPro SIP server in a larger scenario.? I have not tried other SIP servers. ? A couple notes:
? Hope this helps; Kol ? ? ? From: <[email protected]> on behalf of bryan_d_garcia <bdgarcia@...> ? Hi All, |
ILuxDesigner
Has anyone tried to install iLuxDesigner recently? I am trying to install it on a fresh Windows 10 Parallels VM, but the install crashes saying "..unable to register the DLL/OCX. Regsvr32 failed with exit code 0x3". I tried a 32-bit (this one) and 64-bit OS, with Toolbox already installed and without. I also tried to manually register the DLL with regsvr32 but it give me a "side by side" error. Can anyone shed any light? |
Re: Doorbird D1101V1
¿ªÔÆÌåÓýHello, ? We are the authors of the Crestron module. Happy to have a conversation about the module and product if you have any specific questions. Feel free to contact me directly. ? Caleb ? Caleb Radecky |
Manager, Online Products & Services ? From: [email protected] <[email protected]> On Behalf Of
bryan_d_garcia
Sent: Monday, February 27, 2023 23:34 To: [email protected] Subject: [crestron] Doorbird D1101V1 ? [Edited Message Follows] Hi All, |