Search found 137 matches

by AMitchneck
Mon Aug 30, 2021 7:27 am
Forum: Application Development
Topic: Login/Logout popup
Replies: 2
Views: 14730

Re: Login/Logout popup

Ken,

Do you mean the dialog that appears indicating user has logged in/out? If you are using login/logout through script, you can supply the login/logout function with the value 'false'

Code: Select all

Globals.Security.Login(false);
Globals.Security.Logout(false);
by AMitchneck
Fri Jul 23, 2021 8:05 am
Forum: Application Development
Topic: SetSystemTime
Replies: 3
Views: 8519

Re: SetSystemTime

Ken, Don't know if this helps, but I have successfully set the system time on my X2 display using the following class. To set system time, I use SystemCtrl.Time = New DateTime(year, month, day, hour, minute, second); public class SystemCtrl { private const uint POWER_STATE_RESET = 0x00800000; privat...
by AMitchneck
Wed Feb 10, 2021 8:26 am
Forum: Application Development
Topic: Component Caption/Label
Replies: 1
Views: 6192

Re: Component Caption/Label

You use a label with the component. You can then group the two controls together by selecting both, right clicking, and selecting group.
by AMitchneck
Tue Aug 18, 2020 7:39 am
Forum: Scripting
Topic: Identify button when clicked
Replies: 2
Views: 7768

Re: Identify button when clicked

There are multiple ways to identify the button. You can 1) attach action to each button that sets the corresponding tag or 2) hook click event to button and use scripting. For latter option, there are additionally 2 choices; 1) attach individual events per button and modify corresponding tag in each...
by AMitchneck
Thu Aug 06, 2020 8:59 am
Forum: Scripting
Topic: Handling array from scripting
Replies: 2
Views: 8205

Re: Handling array from scripting

Hi fsturlese,

You need to access Tag1's value by index. Try the following

Code: Select all

public partial class ScriptModule1
{
  public void InitTags()
  {
    int i;
    Globals.Tags.Tag2.Value = 10;
    for (i=0; i<10; i++)
    {
      Globals.Tags.Tag1.Values[i].Value = i;
    }
  }
}
by AMitchneck
Tue Dec 03, 2019 7:26 am
Forum: Hardware
Topic: X2 Extreme 7 Froze
Replies: 2
Views: 8349

Re: X2 Extreme 7 Froze

I had the same issue, along with the Ethernet port freezing. Updating firmware to the latest version fixed my issues.
by AMitchneck
Thu Nov 14, 2019 4:36 pm
Forum: Application Development
Topic: Git version control for IX-developer project
Replies: 3
Views: 5754

Re: Git version control for IX-developer project

I haven't used a change management program, but I have copied the project directory between computers without issue. I don't see why git would have any issues as long as all the project files/folders are included.
by AMitchneck
Thu Oct 10, 2019 7:33 am
Forum: Tags
Topic: Merge tags
Replies: 1
Views: 7041

Re: Merge tags

Hi BeeJee, What do you mean by merge? Do you mean if "type" has the string value "world" and number has the integer value '9' that you want naming to have the string value "world9"? If yes, you can use string.Format: globals.Tags.naming.Value = string.Format("{0}{1}", globals.Tags.type.Value, global...
by AMitchneck
Tue Jul 02, 2019 7:07 am
Forum: Scripting
Topic: NullReferenceException
Replies: 2
Views: 5360

Re: NullReferenceException

If I had to guess, you have something in your code like

if ( a.b.c == null ) ...

and the NullReferenceException is being thrown due to a.b being null.
by AMitchneck
Fri Jun 14, 2019 7:30 am
Forum: Application Development
Topic: Difference between Build and Rebuild
Replies: 3
Views: 7156

Re: Difference between Build and Rebuild

Build only compiles modified code.
Rebuild clears the output folder, then builds all.

If anything has been changed in your project before simulation, download or export, the following occurs:
1. Project is saved
2. Build is run
3. Simulation, download, or export started