-
-
Notifications
You must be signed in to change notification settings - Fork 663
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ability to Process (Combine, Bit Manipulation, Arithmatic) Received Data #88
Comments
I was also using fields in title generation in 1.0.20 like |
Hi, I just made some commits today to add again support for embedding JavaScript expressions in the Previously, I removed support for evaluating the The high CPU/GPU usage was caused by inefficient management of the render engine. And the RAM usage has been reduced after catching some memory leaks with valgrind and enabling the address sanitizer for debug builds (these fixes where made after the release Serial Studio 1.1.4). I'll take a look at implementing the virtual fields concept after creating a new release (to avoid pushing to many commits/features/fixes at once without testing & feedback from the community). I think that the JS engine included with Qt should support bitwise operations, I'll make some tests during the course of the week and provide updates/notes in this thread. |
I just drafted a new release that brings back the JS-expression evaluator for the |
Thank you for your interest and the new release! I will check it with my current setup ASAP and give feedback. I am also happy you considering virtual fields concept. |
I downloaded v1.1.7 today. I noticed that CPU usage is significantly lower than my previous version (1.1.4 ?) and GUI is smoother. Regarding this issue, previously I set Thank you. |
Is your feature request related to a problem? Please describe.
For very low end platforms, it may be difficult to generate ready-to-display data to Serial Studio. For example, it may be hard to do floating arithmatic on the platform. Instead, the platform could send raw data. For example, suppose that we are reading a temperature sensor and the real temperature value is calculated by Temp=1.5*x + 6 where x is the raw value read from the sensor.
The platform may send only value of x without doing the arithmatic and conversion could be done by Serial Studio, on PC, without any computation problem.
I was using version 1.0.20. Although it wasn't documented I was using a
.json
file (manual mode) like that:to combine two fields to create a single one
or
to convert raw value to a meaningful value (in this case voltage).
I was happy with 1.0.20 but I noticed that it crashes when number of fileds send by the platform exceeds 100. Then I decided to give a try the latest version. It looks like the latest version doesn't have a problem with number of fileds but previously working conversions stopped working (I converted to the new JSON format).
Describe the solution you'd like
A concept like virtual fields may be introduced. Instead of directly mapping between dashboard
value
field with received data a layer which processes fields can be solution. Outputs of this layer are called virtual fields. For example, multiple fields can be combined to generate a virtual value, or can be preprocessed. Being able to do bit manipulation on received values (bit masking or logical operations) will be also good.Describe alternatives you've considered
An alternative could be bringing (unintended ?) feature in 1.0.20 back or adding new JSON key to dataset element like
operation
but I prefer defining a concept like virtual field.Additional context
Virtual fields may be prefixed by
v
and with additional JSON compatible definitions, they can be defined. For example,The text was updated successfully, but these errors were encountered: