Search found 13 matches

by liestol
Wed Feb 06, 2019 8:03 am
Forum: Scripting
Topic: Scripting for Time string to Seconds
Replies: 1
Views: 4452

Re: Scripting for Time string to Seconds

How is your string formatted (Test1)? I'm guessing this is different on the panel than on the development pc.

Try adding MessageBox.Show(test) so we can see exactly what we're dealing with.
by liestol
Wed Feb 06, 2019 4:42 am
Forum: Scripting
Topic: Popup Screen Open Status
Replies: 2
Views: 5613

Re: Popup Screen Open Status

If there are no available methods to this, a quick hack would be something like this I would assume: - make a internal boolean tag popupOpened - set popupOpened to true in popup_Opened() - set popupOpened to false in popup_Closed() void Screen1_Opened(System.Object sender, System.EventArgs e) { Glob...
by liestol
Wed Feb 06, 2019 4:38 am
Forum: Scripting
Topic: Reading bits from 32-bit variable
Replies: 6
Views: 11463

Re: Reading bits from 32-bit variable

Hi, Try doing something like this; using System.Linq; int your32BitInt = 12345; //replace 12345 with your value, ex. Globals.Tags.xxx.Value; string intConvert = Convert.ToString(your32BitInt, 2); //convert to binary in string int[] individualBits = intConvert.PadLeft(32, '0') //add missing 0's from ...
by liestol
Tue Oct 11, 2016 3:07 am
Forum: Application Development
Topic: .NET Framework 4 referenced assemblies
Replies: 5
Views: 9824

Re: .NET Framework 4 referenced assemblies

Adam,

Yeah, you can't use controls made for a newer framework. I'm looking to see if it's possible to update the Framework in use by iX Dev from 4.0 to 4.0.3 (just a small update), if not I'll see if I can make the dll compatible with 4.0.
by liestol
Mon Oct 10, 2016 1:23 pm
Forum: Scripting
Topic: Accessing screen controls from scriptmodules
Replies: 4
Views: 14247

Re: Accessing screen controls from scriptmodules

Adam, Thanks for the insight. The warning isn't really much of a concern, as I suppose I shouldn't run into issues as long as the objects are nulled and disposed of when closing the screen. Good to see that there's a bit of a community emerging here on the forums. Thanks again, I greatly appreciate ...
by liestol
Mon Oct 10, 2016 1:18 pm
Forum: Application Development
Topic: .NET Framework 4 referenced assemblies
Replies: 5
Views: 9824

Re: .NET Framework 4 referenced assemblies

Hi, Sorry, my bad. I'm targeting a T12C-PPC, running iX Runtime on Win7 Ultimate. The problem is that my dll is made for .NET 4.0.3, and iX Dev is giving me an error stating that only ".NET 4.0." is supported. Basicly I'm wondering if a small update from 4.0 to 4.0.3 will stop me from using controls...
by liestol
Sun Oct 09, 2016 7:37 am
Forum: Scripting
Topic: Accessing screen controls from scriptmodules
Replies: 4
Views: 14247

Re: Accessing screen controls from scriptmodules

Adam, Thanks a lot for your input. I've successfully managed to interact with the screen controls from the script module. However, there's a few follow up questions I have: - Setting the control values (Globals.scriptModule.screenData.btn = button1; / Globals.scriptModule.screenData.btn = null;) in ...
by liestol
Sun Oct 09, 2016 7:06 am
Forum: Application Development
Topic: .NET Framework 4 referenced assemblies
Replies: 5
Views: 9824

.NET Framework 4 referenced assemblies

Hi all, I'm looking into adding custom controls to the iX platform, and have run into a few issues. One of my dll's is built for .NET framework 4.0.3, but iX Developer won't let me load this, with the statement that the framework in use is "4.0. ". Is this as expected, or is there anything I can do ...
by liestol
Wed Oct 05, 2016 1:04 pm
Forum: Scripting
Topic: Accessing screen controls from scriptmodules
Replies: 4
Views: 14247

Accessing screen controls from scriptmodules

Hi all, So, here's the problem I have: I have a screen (let's call it Screen1), which contains different controls (buttons, charts, text). What I'm trying to do here is to interact with these controls from a scriptmodule, which contains a function that is run in set intervals via the scheduler. The ...
by liestol
Wed Oct 05, 2016 5:47 am
Forum: Application Development
Topic: Issue sending data to sqlexpress from 2 hmis over a network
Replies: 1
Views: 5926

Re: Issue sending data to sqlexpress from 2 hmis over a netw

How is your table set up in the sql database? Try enabling some error catching using try/catch to see what kind of errors the panels give of when crashing.