zzz

Forum Replies Created

Viewing 15 posts - 151 through 165 (of 165 total)
  • Author
    Posts
  • in reply to: RSAdmin: Browsing Archive is only locally. #7867
    zzz
    Participant

    Sure, I checked them already.

    No error. Only “Browsing Archive is only locally” with an warning icon displayed on Archive panes’ top area.

    I need to access the event log – probably the only advantage of running a local RSAdmin.

    in reply to: Channels in memory only #7841
    zzz
    Participant

    Oh, I guess, you meant user can choose to write to []current []hour []minute archives.
    He just need to untick []hour and []minute?

    zzz
    Participant

    Hi Mikhail, I think that’ll work. It’s just unclear how the details will be implemented. e.g. for this simple class https://github.com/RapidScada/scada-community/blob/master/Formulas/BasicFormulas/Avg.cs
    Will it be inserted as one single big entry
    Avg.cs
    or multiple ones e.g.
    Avg._SHARED_ / ._INIT_ (anything starts with _ to pin it in sorting.)
    Avg.GetOrAddTimeAvgItem
    Avg.MovAvg
    Avg.TimeAvg
    Avg.AvgStat
    Avg.AvgSum
    Avg.AvgCount
    Maybe in the next product iteration, there could be a group/source column to indicate certain group of functions use the same global variables.

    I dont think the first one has too much issuse, probably I would ignore the formula table completely.
    The reason I tought about the latter, is b/c the purpose of the formula table seem to serve a central point where users can get a overview of all the functions available. Hiding all the functions inside a few big entries seems to defeat the purpose. Also the global variable/object delare make it not possible to show function signature in that table. But this could be a improvement in the next iteration of such module.

    Just another thought, since you are showing the way to manage the formulas as a project. Maybe this module could provide an exe that can be lauched externally to trigger a import on post build event in VS or called in git commit hook script. Kind of basic IDE integration support 🙂

    in reply to: Continuing a calcuation after restart ? #7808
    zzz
    Participant

    Got it, thank you.

    in reply to: Channels in memory only #7803
    zzz
    Participant

    So, sounds like if I set the channel to a special null archive,
    like /dev/null in linux, that channel’s logging is disabled.

    Thanks for the explaination, looking forward to the new version!

    in reply to: Continuing a calcuation after restart ? #7802
    zzz
    Participant

    Sorry wrong question.
    So is Val() or ChlVal or both get reloaded on restart ?

    in reply to: Continuing a calcuation after restart ? #7796
    zzz
    Participant

    You mean things can be easily fixed if I do sth like this in the calculated-real channel “AccumulatedSum” ?

    
    Func AccCalculate()
    {
    ....
    if(AccCaclulatorObj.last_sum = float.NaN) AccCaclulatorObj.last_sum=CnlVal();
    ....
    }
    

    Should I use ChlVal() or Val()?

    in reply to: Website Artical section is down, can’t access dev guides #7671
    zzz
    Participant

    Hi Mikhail.

    The artical secion stopped working. I can’t open it in any browser.

    All the same error:
    There has been a critical error on your website.

    zzz

    in reply to: Questions regarding formular #7650
    zzz
    Participant

    Weird, I can’t post them as one reply.
    It always tell me the you look like spam 🙁

    in reply to: Questions regarding formular #7649
    zzz
    Participant

    2. Let user select a codepage for the text they entered in AC.

    The current implementation doesn’t work for me. Since the string either can’t be encoded and cause Cmd Canceled or U DF receives garbage bytes that can’t be re-encoded into the correct bytes.

    in reply to: Questions regarding formular #7648
    zzz
    Participant

    I am guessing AC is not using Unicode code page to encode the string, this make double-byte characters (e.g. C J K characters) cause error (unable to encode using that code-page -> Command Canceled) or encoded into garbage bytes that can’t be decoded using the correct codepage.

    The solution I can think of is either

    1. Use unicode e.g. UTF8 to encode all string, which can handle most doublebyte characters.
    UDF can re-encode them by GetStr then GetBytes using the code-page of their choice.
    Or provide a option to encode by UTF8, if Unicode as default code page is inconvenient.

    in reply to: Questions regarding formular #7646
    zzz
    Participant

    Hi Mikhail,

    Regarding the Auto Control encoding issue. I guess I didn’t make the problem clear. After string is entered into textbox in AutoControl. AC send the encoded byte array to UDF in output channel.

    • This reply was modified 4 years, 10 months ago by zzz.
    in reply to: ChartPro on IE11 Win10 #7645
    zzz
    Participant

    Oops, I made a mistake, actually I mean the default Edge (not chrome-based Edge Beta).

    The default Chart works out of the box on Edge.
    When Chart Pro is enabled, the charts stopped working on default Edge on Win10 Enterprise. The it works again after this polyfill is injected into the header.

    Unfortunately, I don’t think Edge (not chrome-based) will die out anytime soon 🙂

    in reply to: Obtain data from different devices cyclically #7612
    zzz
    Participant

    Hi,

    Apply for the trial keys for Automatic Control.

    At first I thought the key lasts only 24hr.
    But it seems the key will expire by the end of next day, regardless of when you applied for it today.
    And you can apply for the the same PC Code everyday :-p.

    At least it works OK for me for development purpose.

    in reply to: Questions regarding formular #7610
    zzz
    Participant

    Hi MikHal,

    > Yes. You can see the result file C:\SCADA\ScadaServer\Log\CalcEngine.cs

    Thank you, that’s very clear.

    Some more questions:

    – Is it possible to return an empty value (–) ?
    Since “–” and NaN are displayed differently on data table.

    – Is it possible to make a channel [Now Only] ?
    Making the channel data only appear in formula and Now table (for debug). But not shown in minute/hour archive.

    – Can you add code page option for “binary” type in Automatic Control plugin ?
    CJK strings got messed up with the current default setup. Or maybe provide a way to pass the specified string to output channel UDF for decoding?

    – Can you not grey out the “Copy value or data” in event trigger to make passing event data possible ? though Am not quite sure what is event data,
    e.g. for a event {Name:”Changed”, NewValue:1, CnlName:”State”}, is the event data “1”, or “Cahnged: 1” ?

    Thanks.

Viewing 15 posts - 151 through 165 (of 165 total)