Jump to content

millisys

Active Members
  • Posts

    121
  • Joined

  • Last visited

Everything posted by millisys

  1. Thanky you pseakins and Musashi for you help with this.
  2. Hello everyone. thank you for reading this post. I m trying to use _FileListToArrayRec to search "c:\files" for PDF files only residing within subdirectories beginning with the word "batch". I have tried the following syntaxes and am not having success. Would someone be kind enough to point me in the right direction? Thank you. $aFiles = _FileListToArrayRec("c:\files\batch*", "*.pdf||", 1, 1, 1, 2) $aFiles = _FileListToArrayRec("c:\files", "batch*;*.pdf||", 1, 1, 1, 2) $aFiles = _FileListToArrayRec("c:\files", "batch*.*pdf||", 1, 1, 1, 2)
  3. I feel more comfortable with data staying in ram rather than being written to hard disk. It's ok with settings info, but constant hammering of the hard drive to transfer array data makes me concerned about data integrity
  4. Hi BrewManNH, it is output voltages from each of the panels combined with positioning data (C=voltages!positions!) generated throughout the day to evaluate and optimize efficiency
  5. Is there a way to get a script2 generated array back to script1 without writing to disk?
  6. Hi Melba23, the script generates millions of arrays overnight. I have tried writing to the ini file but it slows down considerably. My goal is to keep the data in the arrays so that it stays in ram and is quicker.
  7. Hi Melba23, the data is not time-sensitive. It is run at night when the panels aren't active.
  8. Hi jdelaney, I agree that this method will work, but I have hundreds of array values that would have to be written
  9. Hi JohnOne, I have tried the AutoIt3ExecuteScript but unfortunately the variable values generated when executed are not available to be used in script1
  10. Hi Melba23, script1 reads solar panels and builds arrays based upon this data. Using the data in the arrays, it generates new lines of code to be processed by script1 in a later loop. As it executes the newly written code, it compares the data from the existing arrays with the newly created arrays. It works perfectly when I manually input the lines into script1, but when I attempt to automate the inclusion of the code into script1 using #include, the lines of code are not updating. What you said in your first post is exactly what I am trying to achieve, I want the lines of code to run exactly as though they had been pasted into the script. Thank you.
  11. Hi Melba23 and javiwhite. Basically, script#1 dynamically writes script#2 and I need the data from script#2 in #script#1 for the next writing of script#2. I am trying to execute script#2 inside of a script#1 loop instead of running script#2 with shellexecutewait because I will then have to write a lot of information that will need to written to and from an ini file as script#1 and script#2 communicate.
  12. Hi, Is there a way to renew a script's #Include? I know this is a strange request, but I am asking because the contents of a file that are included in a script I am working on change throughout the execution of the script. If it is not possible to renew the #Include, is it possible to change the contents of the #Include. I have noticed that if I delete the included file after the script is running, it continues to runs so it seems as though the #include data is stored somewhere either in the computer's ram or on the hard drive. Thank you for your help.
  13. Awesome Paulie and Cubehead, this is just the solution I was looking for. Thanks!
  14. Hi MLSx Fanboy, I am looking for a permutation factorial solution and saw your post. I noticed as well that using a number larger than 20 is returning decimal points. I was wondering if perhaps you had found a solution and wouldn't mind posting it. Thank you.
  15. Thank you so much mikell and Zedna, both of those techniques work great. Have a great weekend!
  16. Hi all, I am trying to create an array from the contents of an Edit control. Using the code below, it creates the array just fine, but each of the items returned from the array contains an LF line feed after the value (except for the last one). I have tried using _GUICtrlEdit_GetText as well as different delimiters such as @CRLF and @CR but they add additional line returns either before or after as well. Thank you for your help In the code below, the MsgBox will display "word is found" instead of the desired "word is found" Local $aFindReplace $aFindReplace = StringSplit(GUICtrlRead($findreplacelist), @LF) _ArrayDisplay($aFindReplace) For $x = 1 To UBound($aFindReplace) - 1 MsgBox($MB_SYSTEMMODAL, "", $aFindReplace[$x] & " is found") Next
  17. Thank you Zedna, I think Koda is really helpful and I wanted to check in to see if it could manage dynamic values before I began editing the AutoIt code.
  18. Hi JLogan, There is not any code yet, this is just the initial setting up of a form in Koda. It has not yet been saved to Autoit. I'm just trying to find out if there is something like a %num% syntax for numbers in the same manner that %var% works for strings. Thank you
  19. Hi JLogan, %var% works great for specifying string values for control properties such as a Text property. If I use %var% with a property that is expecting a numerical value, such as the Left property of a control, it will error that it is not a valid integer value. Is there another syntax other than %var% for representing numerical values as a variable within Koda? Thank you
  20. I'm a big fan of Koda. I like using the %var% for the Text properties of ComboBox and Input controls. I tried using a %leftpos% variable to specify the Left property of a control so that it could be dynamically located but received an error message. Is there a way to use a variable with the Left, Top, Width or Height properties to specify the position? Thank you
  21. Hi jchd, I use a simple linear regression where R2 = 1. The weighting is associated with the records, and your question is a good one; when combining devices, the shared device is only considered once.
  22. Hi jchd, Some answer to your quesions: 1] I would say yes, they are best regarded as records that are not free to combine 2] We calculate the weighted average to account for outliers 3] yes 4] JSDA is a manufacturer's name. I don't know why that one uses the MFR name instead of Device ID. Other people also use this data some maybe it means something to someone else. Thank you
  23. You are correct, once measured the value stays the same - perhaps a variable could be used to represent that device. You are also correct that the order is irrelevant. Since there is a duplication of the combinations, I was using _ArrayUnique to remove those to decrease the array size. The values are negative and positive gain. For the computation, we are trying to find the combinations that result in the devices functioning as closely as possible to zero.
  24. Hi jchd, I will definitely look into SQLite. I have enjoyed the few times I have worked SQL and am interested in increasing my knowledge. As an explanation as to what we are trying to do: It's a theory at this point, be we are noticing in individual instances that in addition to the evaluating the efficiency of possible arrangements of solar panels within a group, if we evaluate the possible arrangements of the groups within the whole field, the efficiency appears to improves even further. This is why the combinations include so many numbers and also why the numbers repeat themselves sometimes. We figure we should turn the problem over to computers to confirm or deny our theory. We have over 1000 groups, so a small combination set size of just 3 puts the number of combinations over the 16M limit. Is there a way to break it into smaller groups of 100 x 3 and still create the same combinations that would have been created if the 16M limit didn't exist? Thank you for your help
  25. Hi jchd, This might sound funny, but I don't even know what a MMP game is. I barely have any free time at all these days for anything resembling fun. I am intrigued by the benefit of doing as you said and just storing the indices, and then processing the combinations one after the other. Do you think that by using indices rather than creating one big array of combinations, that the 16 million combination limitation could be exceeded? Can SQLite help in this regard?
×
×
  • Create New...