Technical manual for math functions and syntax
Hello. I am wondering if you have a technical manual or any instructions on the usage of math functions. I have spent too much time trying to figure out the syntax and how to use the functions. For example, I am trying to calculate energy based on load and displacement. Energy is the area under the curve of the load vs displacement graph. The xy display can show the curve well, but I am having trouble figuring out how to integrate that curve. I also don't know the data types I am dealing with on my measured signals. Are they matrix with values on one axis and time on the other axis? Long story short, I have many questions on using the math functions and would like to have reference rather than just trial and error. Is this available? Thank you.
Technical support
Hi,
Dewesoft has an embedded X1 manual, which you can access by pressing the F1 key, which will open up the reference help window. The visuals are a bit outdated, but the general underlying logic is exactly the same. We do however have a new manual in the works, which is closing in on the final stages before the official release.
You can also find the current version of the manual online, and the chapter that you want to check out is 2.10.2.1.
For general integration, I would suggest that you simply use the integral/derivative math module, but that would integrate a channel against the time. For what you're looking to do,I believe we don't have an embedded module that would accomplish that specific task. I do however remember that a colleague of mine had added this functionality via the new C++ script feature. If you're interested in that, I can try to find that example and share it with you. Just let me know.
Thank you. I am interested in viewing your colleague's work. Please share that with me. I have attached a picture of the formula I am attempting to calculate using Dewesoft. Like a true engineer I spilt coffee on it first. I am recording the displacement (x-axis) and the force (y-axis). Integrating this curve will give energy. My goal is to calculate the energy in real time as this value determines pass/fail according to the standard we are testing to. Thank you again for your help.
Attached files:
Hi, I am interested in this topic as well, can I have a look at the C++ script?
Customer Support Engineer
Hi,
The C++ scripts examples are free to be downloaded from our Download center. Here is a direct link to them: https://download.dewesoft.com/download-file/cppscripts-usefulzip
I hope those will help you out solving your challenge.
P.S. If you're new in C++ scripts in Dewesoft than you may also be interested in the general Cpp script manual: https://download.dewesoft.com/download-file/dewesoft-c-script-manual-enpdf