Search found 134 matches

by AMitchneck
Tue Aug 18, 2020 7:39 am
Forum: Scripting
Topic: Identify button when clicked
Replies: 1
Views: 226

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: 358

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: 937

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: 1023

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: 948

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: 1373

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: 2523

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
by AMitchneck
Wed Jun 12, 2019 1:55 pm
Forum: Scripting
Topic: I can,t use Library Expressions like Bitoperators
Replies: 2
Views: 1284

Re: I can,t use Library Expressions like Bitoperators

"(value & 0x1) == 0x1" returns a Boolean value of true or false. My guess is iX is not able to properly convert this back to an integer value and thus returns 0, hence why this value is always blue. Try removing the == 0x1 portion so the bit0IsSet has the formula "value & 0x1". This will result in a...
by AMitchneck
Tue Jun 04, 2019 7:32 am
Forum: Application Development
Topic: FTP Server issue
Replies: 3
Views: 2293

Re: FTP Server issue

s1fis, Using ftp in active or passive mode is determined by the client not the server. The client opens a control connection via port 21. As part of the initial handshake, the client requests active or passive mode. In active mode, the ftp server opens the data transfer port as specified by the clie...
by AMitchneck
Wed May 29, 2019 6:46 am
Forum: Scripting
Topic: Login User with only password
Replies: 7
Views: 5454

Re: Login User with only password

You can keep the login screen from showing "user ... has logged in" by calling the login function passing it false. The following shows the full login screen (user + password requested), but does not show the user has logged in: Globals.Security.Login(false); The corresponding logout: Globals.Securi...