Hi, is there any example showing step-by-step procedure to create 3D visualization in HMI Designer? According to master's thesis I found on dspace system ("HIL simulator for analysis and demonstration of smart
control algorithms for overhead cranes"), it shoud be possible using Three.js and Solidworks. The thesis says that 3D assembly was converted from Solidworks to Rexygen HMI canvas but it does not contain more details. Would it also be possible to create 3D visualization from Autodesk Inventor? Thanks for support in advance.
Latest posts made by stepan.ozana
-
3D visualization
-
RE: I2C with REXDuino
Me and my colleague finally implemented some functional solution. We make it public if anyone is interested. Many thanks to Ing. Tomáš Dočekal!
MCP4725_REXDuino_2_50_10.zip -
I2C with REXDuino
Hi, is there any example how to use I2C with REXDuino? I followed all accessible documentation and codes both for master part and slave part of REXDuino, and spent a lot of time on a simple task, trying to set CNR value between 0-3.3 [V] , convert it to appropriate format in order to connect it to userSendV input of Arduino_UNO. The goal is to control DAC converter MCP4725 via I2C communication using REXDuino with Arduino Uno to make the converter's output OUT set to desired voltage level according the value written in CNR. Any help appreciated. Stepan
-
RE: Vector output from TRND?
Or, possibly N DEL blocks may also do the job.
-
RE: Vector output from TRND?
I realized that shift register could solve this. For lower number of samples, one or more SHIFTOCT blocks may be used. I will try storing data to buffer via REXLANG for higher number of samples.
-
Vector output from TRND?
Hi, is it possible to obtain the entire vector of values from TRND? I'd like to perform Moving horizon estimation (MHE) algorithm which uses a history of past measurements over some period of time. It is like receeding horizon - each sampling period the data consisiting of N last samples will be used for further processing by REXLANG or PYTHON blocks. First I thought of setting of ptype parameter of TRND to turn its output into vector form but it seems that none of the options match my needs.
-
RE: Python block in 2.50.10 with RPi and external library
@stepan-ozana said in Python block in 2.50.10 with RPi and external library:
Hi, I tested the block PYTHON with 2.50.10 (testing version) and RPi 3b+. Generally it works fine, however I got into troubles when using some externally installed library, particularly pysolnp (https://pypi.org/project/pysolnp/).
Here is the use case and description of what I did:
As the Buster brings both Python 2.7.16 and 3.7.3, I set the default Python3 like this:
Edit nano ~/.bashrc , add alias python='/usr/bin/python3' and alias pip=pip3, then run source ~/.bashrc.
After that, typing python --version, it shows python 3.7.3 as required by PYTHON block in Rexygen.
Then I was able to install pysolnp according official guide: pip install pysolnp.
If I run any script manually (for example the initial basic example on the web https://pypi.org/project/pysolnp/), it works fine. It uses imported pysolnp library and gives the results as expected.
However, if I run it within REXYGEN project, I got error in Rexygen diagnostics saying that 'no module named pysolnp was found'. When I run help('modules') from Python command line, I see pysolnp in the list of modules.
Is it possible that for some reason older Python 2.7.16 is called from Rexygen environment? This would maybe explain the situtation as I didn't import pysolnp here but into 3.7.3. If this is the case, how to fix this to tell Rexygen to call python3 instead of python2? On the other hand, Rexygen would probably show different error regarding version of Python itself, because it needs Python 3.7.x according documentation.
P.S. The same use case under Windows+Rexygen+pysolnp works fine.
Best regards, StepanI made it work. It was an issue with different user accounts. I had the package installed under pi user but it has to be installed under root user. Then it works perfectly.
-
Python block in 2.50.10 with RPi and external library
Hi, I tested the block PYTHON with 2.50.10 (testing version) and RPi 3b+. Generally it works fine, however I got into troubles when using some externally installed library, particularly pysolnp (https://pypi.org/project/pysolnp/).
Here is the use case and description of what I did:
As the Buster brings both Python 2.7.16 and 3.7.3, I set the default Python3 like this:
Edit nano ~/.bashrc , add alias python='/usr/bin/python3' and alias pip=pip3, then run source ~/.bashrc.
After that, typing python --version, it shows python 3.7.3 as required by PYTHON block in Rexygen.
Then I was able to install pysolnp according official guide: pip install pysolnp.
If I run any script manually (for example the initial basic example on the web https://pypi.org/project/pysolnp/), it works fine. It uses imported pysolnp library and gives the results as expected.
However, if I run it within REXYGEN project, I got error in Rexygen diagnostics saying that 'no module named pysolnp was found'. When I run help('modules') from Python command line, I see pysolnp in the list of modules.
Is it possible that for some reason older Python 2.7.16 is called from Rexygen environment? This would maybe explain the situtation as I didn't import pysolnp here but into 3.7.3. If this is the case, how to fix this to tell Rexygen to call python3 instead of python2? On the other hand, Rexygen would probably show different error regarding version of Python itself, because it needs Python 3.7.x according documentation.
P.S. The same use case under Windows+Rexygen+pysolnp works fine.
Best regards, Stepan -
RE: Simulink->FMU->REXYGEN?
You are right, I am sorry for my mistake. According documentation https://www.rexcontrols.cz/media/2.50.5/doc/PDF/CZECH/BRef_CZ.pdf
it seemed it was in basic installation. So it would be appropriate to modify my question: DO you consider embedding FMUCS to MODEL library in future? Thank you Stepan -
Simulink->FMU->REXYGEN?
Hi, it seems like starting from R2019a, Simulink is capable of exporting models into FMU. It should be then possible to import FMU to REXYGEN via FMUCS block. Have you tested this approach?