Showing results 1 to 4 of 4

Thread: Function WriteCelStringEx()

  1. #1

    Default Function WriteCelStringEx()

    What happens with function WriteCelStringEx()?
    This function have 5 parameters:
    void ICel.WriteCelStringEx(string strCelString, string szPvName, int iGroup, int iClass, object Value, int Status)
    After performance of this function in a window Cel Screen parameters szPvName, Value isn't displayed.
    I tried this function in VBA and VSTA. The result was identical.
    Iím using version 6.50 build 5 and 6.51 build 3 now.
    This function worked well in earlier versions.

    Public Sub Test_Event_String()
      Call thisProject.Cel.WriteCelStringEx("Command", "My variable", 0, 4, 1, 0)
    End Sub
    Attached Thumbnails Attached Thumbnails 2011-04-12_105503.jpg  

  2. #2
    Join Date

    Default Re: Function WriteCelStringEx()


    I tried it now with 6.51 Build 3 and it works:

    Public Sub writecel()
    Call thisProject.Cel.WriteCelStringEx("Test", "ivar", 0, 4, 1, 0)
    End Sub

    CEL Output:
    Click image for larger version

Name:	writecel.PNG
Views:	25
Size:	6.0 KB
ID:	567

  3. #3
    Join Date

    Default Re: Function WriteCelStringEx()

    You need to take care that the variable is ready for reading its value (variable needs to be advised at the driver and must have a valid value)

    You can check this with the variable method .IsOnline
    thisProject.Variables.Item("My variable").IsOnline

    Also this link will be informativ for you:


  4. #4

    Default Re: Function WriteCelStringEx()

    herberto, thank you. It's realy help me.

Similar Threads

  1. WriteCELStringEx
    By tauhien in forum VBA
    Replies: 3
    Last Post: 14th June 2008, 17:21

Posting Rules

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts