mawright89

Members
  • Content Count

    17
  • Joined

  • Last visited

Community Reputation

0 Neutral

About mawright89

  • Rank
    Member

Profile Information

  • Gender
    Male
  1. I have a number of individual scripts which have result arrays ascociated with them. They have string "Pass" or "Fail" values. I want to search through the arrays quickly and return lets say a 0, or 1 depndant on weather any of the strings are of value "Fail". Is there a quick way to search through arrays for a value without hanging if one of the array parts is empty? Cheers
  2. I am having a problem with the combo box in my user interface. Attached is a picture showing the problem... I cant reduce the size of the text to align it with the combo box size. Anyone have any ideas? Cheers
  3. mawright89

    Number Of Columns In An Array?

    One last thing, Im logging values to an array for writing to a .CSV file, how do i change the number of significant figures shown after the decimal point. currently at 6 and dont need that many.
  4. mawright89

    Number Of Columns In An Array?

    lets put this another way i think im confusing myself; testorder[testnumber] returns the name of the script to be run. can I use that to start the script of the same name or does it not work like that?
  5. mawright89

    Number Of Columns In An Array?

    thats fine, whats the script for running as a function? function.leaktest(leakspools[a]) is that close?
  6. mawright89

    Number Of Columns In An Array?

    Thanks, can I pass a string from one position lets say; leakspools[0][3] into the; beginseq() function to start a sequence if the text in the array is named the same as the sequence? I cant seem to get it to work. I am using another variable to set the position of the array data to be extracted; beginseq(leakspools[a]) Should this be working?
  7. Is there a script which retuns the number of columns in an array... am using a 2D array with one row, but need to determine the number of columns with values and set a variable to that value. Any ideas on how to do this? Cheers
  8. mawright89

    Multiple Arrays In .csv File

    issue solved, I was changing the last 0 to a 1, instead i needed to add ", 1" to the end.
  9. mawright89

    Multiple Arrays In .csv File

    Have tried changing the 0 to a 1 but im still getting only the numerical value
  10. mawright89

    Multiple Arrays In .csv File

    Im also having trouble fetching string back from an array: try private handle = file.open("M:\ME Projects\Valve Database\" + ValveIDtype + ValveIDrevision + "\Leakspools.csv", 1, 0, 0, 1) leakspools = file.readDelim(handle, -1, ",", chr(10), 0) file.close(handle) catch() ? strLastError endcatch the array in the .csv file has text {A1, A2, A3,...} ect... but when I use the code above the array variable leakspools becomes {1,2,3,....}. where has the string gone. The variable is declared as a string in the startup sequence.
  11. mawright89

    Multiple Arrays In .csv File

    thankyou for the response, should the code above be out[][0], i dont see why private[][0] would work? Is this essentially trying to put an array inside another array?
  12. mawright89

    Questions about file I/O

    What is the best way to start up a project with DAQFactory in your opinion?
  13. mawright89

    Multiple Arrays In .csv File

    Am looking to save multiple big arrays in a single .csv file, is it possible to use: try private handle = file.open("N:\NewRig\Calibration Files_DO NOT DELETE\Rig1Cal.csv", 0,1, 0, 1) file.WriteDelim(handle,CalValues, ",", chr(10)) file.close(handle) catch() ? strLastError endcatch for each array and just change the red part for the relevant array name? Then use: try private handle = file.open("N:\NewRig\Calibration Files_DO NOT DELETE\Rig1Cal.csv", 1, 0, 0, 1) CalValues = file.readDelim(handle, -1, ",", chr(10), 0) file.close(handle) catch() ? strLastError endcatch and just change the red value for the array I want to extract....?
  14. I am planning to use a proportional electro-hydraulic pressure regulator to adjust the pressure within a leak test system to a point set in a DAQFactory based user interface. The PID loop will control the system but we require the maximum response time to be down to less than a second. The regulator its-self is capable of doing this but will i be able to do this within the software or are the DAQFactory PID contrrollers meant for much larger timescales. Cheers
  15. mawright89

    Logging And Retrieving Callibration Variables

    Got it working with the WriteDelim... superb thankyou so much for the help.