Login Page - Create Account

Support Board


Date/Time: Thu, 02 May 2024 12:06:19 +0000



Post From: ACSIL question: issue with sc.Input[] and sc.Subgraph[]

[2020-03-22 09:33:04]
BrMa - Posts: 77
Dear ladies and gentlemen,

I have an issue with sc.Input[] and sc.Subgraph[] - as the issue is the same with both, I'll only describe the issue for sc.Input[] in detail.
I created a study with 18 sc.input[] fields, following your guidelines (three points "..." in the source code mean, I removed lines for a better readability):


SCSFExport scsf_Test(SCStudyInterfaceRef sc) {
  ...
  SCInputRef input12 = sc.Input[12];
  SCInputRef input13 = sc.Input[13];
  SCInputRef input14 = sc.Input[14];
  ...

  if (sc.SetDefaults) {
  ...
    input12.Name = "Input 12";
    input12.SetYesNo(0);

    input13.Name = "Input 13";
    input13.SetYesNo(1);

    input14.Name = "Input 14";
    input14.SetYesNo(1);
  ...
  return;
  }
...
}

I made sure input0 to input17 are defined and there is no missing index on sc.Input[index].
My issue is as follows: all inputs besides index 13 are initialized perfectly fine, input 13 contains weird information.

I'm aware this sounds impossible but when I debug the code and start debugging at the line where the definiton of defaults starts (Line: if (sc.SetDefaults)) - so no processing of the study has been done yet, only the definition of fields - I receive the information in the debug window documented in the attached files Input12.jpg to Input14.jpg.
Based on this information, input 12 and 14 (like all others) seem to be initialized correctly where input 13 was not.

Regardless what is being captured in input13, it does not return the information captured in the configuration window.
I do have exactly the same issue with sc.Subgraph[0] with 13 sc.Subgraphs definded - all others work perfectly fine - sc.Subgraph[0] does not return the information captured in the configuration window.
Can you please take a look into this?

If you need additional debug information or anything else please don't hesitate coming back to me!
Thanks a lot in advance!
imageInput12.jpg / V - Attached On 2020-03-22 08:45:12 UTC - Size: 171.33 KB - 188 views
imageInput13.jpg / V - Attached On 2020-03-22 08:45:21 UTC - Size: 185.96 KB - 236 views
imageInput14.jpg / V - Attached On 2020-03-22 08:45:28 UTC - Size: 173.73 KB - 178 views