Visual Devide Driver

Forum Home Forums Development and Integration Visual Devide Driver

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #13877
    Zeus
    Participant

    Hi Mik,
    I am trying to develop a virtual device driver.
    Its functionality feels like Flash or Rom in PLC.
    Now I have encountered a problem.

    When I use the send command function to write a large amount of data to a virtual device, the session will be suspended.

    When I use writing curdata to a virtual device, if the frequency is low, the data will become 0.

    How can I develop virtual devices correctly and persist data correctly within them.

    #13880
    Mikhail
    Moderator

    Hi Zeus,

    When I use the send command function to write a large amount of data to a virtual device, the session will be suspended.

    What amount of data you try to send using a command?

    When I use writing curdata to a virtual device, if the frequency is low, the data will become 0.

    Could you explain?

    #13881
    Zeus
    Participant

    Hi,
    The first situation
    I use sendcommand sending about 30 commands to virtual device per second and the base session will be suspended. The session will wait until the cmd is handeld.

    The second situation
    I use the writcurdata method to send data to the server and persist the data to a dat file. When the line starts, read and assign the dat file to curdata.

    #13882
    Zeus
    Participant

    I just want to persist the data to Scadaserver, treat it as a long-term valid data, and use it as a current value when reading it

    #13887
    Mikhail
    Moderator

    Hi,

    I use sendcommand sending about 30 commands to virtual device per second and the base session will be suspended. The session will wait until the cmd is handeld.

    If commands require heavy processing, implement a queue to process them in background.

    I use the writcurdata method to send data to the server and persist the data to a dat file.

    To analyze the issue, you should use a debugger or log files.

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.