Altair Compose: What’s New in Compose 2023
MQTT Communication Library
The MQTT Library establishes communication between Compose and your devices over the Internet using the MQTT protocol. MQTT is a kind of lightweight IoT messaging Protocol based on the Subscribe/publish model, which enables auto messaging from a publisher to the different subscribers. Publish/Subscribe exchanges information between devices without knowing each other’s existence. A third member, called the Broker, serves as a link between the publisher and the subscriber. Publisher/Subscriber only need to know the broker which filters and distributes all incoming messages and ensures that they are delivered properly. To receive or send messages, the publisher and subscriber must first engage the MQTT broker.
The library contains the following commands:
- mqttclient: Connect to MQTT broker
- mqttpublish: Publish a topic message to the MQTT broker
- mqttsubscribe: Subscribe to a topic and receive message from MQTT broker
- mqttunsubscribe: Unsubscribe from a topic that is already subscribed from MQTT broker
- Utility functions: mqttclientinfo, mqttdestroy, mqttreconnect, mqttdisconnect
CAE READER 3D library
The caereader3d library now supports extraction of composite layers from CAE Results files. getlayername3d, getlayerindex3d, getlayerslist3d commands to extract composite layer metadata from the result file with model information. Specifying ‘layer’ argument in readcae3d to extract results from this composite layer.
CAE READER library
Compose 2023 now supports reading of data even if time channel values are not same for requests/Components. Users can use caereaderoptions and set ‘validatetime’ property to true/false.
- If set to ‘true’ it will validate that time channel values are not same. This is the default behavior.
- If set to ‘false’ it will not validate the time channel information and extract the result with NaN when there is no result.
Plot/GUI in Compose Console/Batch modes
Starting in Compose 2023, visualization is supported in console and Batch modes. Plotting and visualization can be instantiated with ‘-withgui’ argument.
Console mode:
compose_console.bat -withgui -continue -f BodeNyquistPlot.oml
Batch mode: (Note: this requires a graphics card)
compose_Batch.bat -withgui -f BodeNyquistPlot.oml
New Plot Types
An expanded 2D plots suite provides more meaningful insights from your calculations and data.
Extended support of GUI widgets and Callbacks
Compose provides numerous graphical widgets that you can use to convert any comprehensive code into a user-friendly, point-and-click application. In Compose 2023, new graphical widgets uitoolbar, uipushtool, uisearchbox, uispinbox are supported.
New interactive Mouse and/or Key stroke callbacks are now supported.
- On Mouse press event:
- windowbuttondownfcn
- windowbuttonmotionfcn
- windowbuttonupfcn
- Windowscrollwheelfcn
- On Key press event:
- keyreleasefcn
- windowkeypressfcn
- windowkeyreleasefcn
Python & OML bridge Mapping
Users now can map OML table class to pandas DataFrame using OML Python Bridge commands. Also, any python object class can now be mapped to OML object class.
Signal Processing
New functions and enhancements:
- filter2: Performs 2D FIR filtering.
- findpeaks: Now accepts sampling frequency and time as input arguments to locate the peaks.
- pwelch: Now supports ‘spectrum type’ as an argument to calculate Powe spectral density.
- Valid options are ‘PSD’ or ‘power.’
Table
New table functions are now supported:
- table2array: Converts non-numeric data table to array.
- table2cell, table2struct, struct2table, cell2table