Rob

Members
  • Posts

    8
  • Joined

  • Last visited

Posts posted by Rob

  1. I am trying to Insert a line of data into an AZURE ODBC connection, at a specific time interval in lieu of using the Logging method because for some reason AZURE does not like the SQL that DAQFactory is using in the default.

  2. So, I updated the global to a "string" and I am still getting the NaN's

    private statemodefile = file.open("41000063_50_STATE_LIST.csv",1,0,0,1)
    global string lookup_statemode = File.ReadDelim(statemodefile,-1,",",chr(10),0,1)
    file.close(statemodefile)

    I am reading a standard .csv file

    0,Not Ready - Stopped - NONE
    1,Not Ready - Stopped - WRN - WRN
    2,Not Ready - Stopped - AL2 - AL2
    3,Not Ready - Stopped - AL2/WRN - AL2/WRN
    4,Not Ready - Stopped - AL1
    5,Not Ready - Stopped - AL1/WRN
    6,Not Ready - Stopped - AL1/AL2
    7,Not Ready - Stopped - AL1/AL2/WRN

  3. I am working on a "Lookup" table for converting a numerical value, into a string value for displaying a interpreted machine state.  For some reason, I cannot read the string using the File.ReadDelim function, with the [string] variable set to "1" 

     

    private statemodefile = file.open("XXXXXXXXX_STATE_LIST.csv",1,0,0,1)
    global lookup_statemode = File.ReadDelim(statemodefile,0,",",chr(10),-1,1)
    file.close(statemodefile)