Plant SCADA 2023 R2 export variables current value to CSV file

Dear Experts,

We are using Plant SCADA 2023 R2. We need to take a snapshot of 100 variables and store these values into a CSV/Excel file. We will store the current data only, no need for logging and multiple entries.

What is the most efficient way to achieve that?

Thanks

  •   
    -If I am calling the requests sequentially in the same file without any sleep or signal indicating the previous set is completed before the next one is sent. In this manner as far as I understand each line will only be executed if the previous line is done so in this case it is impossible two TagRead() requests to be executed in parallel. Is that true?

    -To make sure I understand the blocking function is not called in by a task the main thread of the plant SCADA will be blocked and if there is an infinite loop the plant SCADA will be stuck and nothing will be executed until the end of the blocking function. Am I right here?

  •  If the function is called multiple times from another function (without using TaskNew()), they would run sequentially and would not conflict. The problem would be if multiple tasks were calling the function, such as a button on a page that could be clicked multiple times before the task finishes.

    Plant SCADA has multitasking built in so an infinite loop is OK. The Cicode task will not block the main thread unless you specifically call an external DLL function or try to access an unavailable file across the network.