Forum Replies Created
-
AuthorPosts
-
zzz
ParticipantSure, 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.
zzz
ParticipantOh, I guess, you meant user can choose to write to []current []hour []minute archives.
He just need to untick []hour and []minute?December 25, 2020 at 2:36 am in reply to: Launch external code editor and/or store project code in cs file #7840zzz
ParticipantHi 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 🙂
zzz
ParticipantGot it, thank you.
zzz
ParticipantSo, 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!
zzz
ParticipantSorry wrong question.
So is Val() or ChlVal or both get reloaded on restart ?zzz
ParticipantYou 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()?
December 6, 2020 at 5:24 am in reply to: Website Artical section is down, can’t access dev guides #7671zzz
ParticipantHi 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
zzz
ParticipantWeird, I can’t post them as one reply.
It always tell me the you look like spam 🙁zzz
Participant2. 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.
zzz
ParticipantI 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.zzz
ParticipantHi 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.
zzz
ParticipantOops, 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 🙂
zzz
ParticipantHi,
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.
zzz
ParticipantHi 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.
-
This reply was modified 4 years, 10 months ago by
-
AuthorPosts