okinelin

Members
  • Content Count

    8
  • Joined

  • Last visited

Community Reputation

0 Neutral

About okinelin

  • Rank
    Newbie
  1. okinelin

    "p-Modbustcp 0010: Timeout" Error

    Thanks for the lead. I am taking a look at the two options but I need further clarification; Please confirm that strAlert[0] will containn "P-ModbusTCP 0010: Timeout" when a connection is lost? The "P-ModbusTCP 0010: Timeout" is the error message displayed when I pull out the network cable. If I plug back the cable and the connection is re-established and the there is no other alert message, what will be the content of strAlert[0]? Will it still contain "P-ModbusTCP 0010: Timeout" or something else? Regards
  2. okinelin

    "p-Modbustcp 0010: Timeout" Error

    Hi, I am using DaqFactory to communicate with HMI/Controller via Modbus TCP. The system is working fine. When the network cable is unplugged, the error message "P-ModbusTCP 0010: Timeout" is displayed in the Command/Alert window. That's fine. Please how can I capture this error and use in a sequence to alert the user that there is a break in communication especially when the program is in runtime mode and full screen? Thanks
  3. Thanks a lot for the clarification. I thought the counting starts from the right (reversed).
  4. Hello, I have been trying to use the string function "ReverseFind()" to find the location of a specific character from the right hand side of a string. In the Help section of DaqFactory I got the following example: ReverseFind("abcdef","cd",0). 1. The Help states that the above function will return 2. This is not true because of the argument ",0" added to the function. The function as stated in the example does not actually execute because the function should take only two arguments ReverseFind(String,Char to find). 2. When the ",0" is removed and the sequence ReverseFind("abcdef","cd") is executed it returns 2. At the first look, this might seem to be correct but it is not. 3.When I added extra characters before the "c" in the string and executed the sequence ReverseFind("abrqcdef","cd"), it returns 4 instead of 2 as expected. This result is similar to running the sequence Find("abrqcdef","cd",0). Am I doing something wrong here or it's actually the function that malfunctioning?
  5. okinelin

    Specifying variable's precision programatically

    Thanks Guru. It's working. I didn't realize the format() returns a string. I removed the DoublToStr() and everything is fine. I appreciate your support
  6. okinelin

    Specifying variable's precision programatically

    Below is the variable; Scaled_Pressure_1 = Pressure_1[0]*Slope_Pressure_1 + Intersect_Press_1 In order to write to a file I used the following code DoubleToStr(format("%.0f", Scaled_Pressure_1)) and that did not work. Is there anything wrong in the code?
  7. Hello there, I am using direct file access to log calculated variables. I want to control the number of decimal points for the log variables. I have tried format("%.2f", CalculatedVariable) but that doesn't seem to work. Can someone please help out? Thanks
  8. okinelin

    Graphing

    Please I want if it is possible to create a graph with multiple Y-axis against single x-axis using DAQFactory.