All Questions
12 questions
0
votes
1
answer
516
views
MATLAB SIMULINK to Processing Programming ( Serial Communication)?
How can I send some data from MATLAB Simulink (serial send block) and receive that value in processing programming? Totally I need a float or an integer.
I am using virtual serial port, for example ...
0
votes
0
answers
39
views
Modeling error while booting jar-package with matlab model
I have a matlab model, which I recompiled to the java package (jar). On my computer's host system it works fine, but ... When I am trying to run it in docker container under ubuntu, I am getting an ...
1
vote
0
answers
90
views
Java method not being run correctly in Matlab?
I am using a Level 2 S Function written in Matlab 2018 to handle input from a Simulink model. Depending on that input, an image(made with Swing) moves across the screen.
For example, "10" makes it ...
0
votes
1
answer
661
views
How to run a Java program by using an S function in Simulink?
I am making a program where I need to take values collected from a Simulink model and pass them into a Java program. I set up a Level 2 S function in Matlab, where I instantiate an instance of the ...
1
vote
1
answer
182
views
How to receive a Simulink constant value in Java code?
I've a constant value in my Simulink model sent using "UDP Send" block. There is a Java Socket program that listens on a particular port for any input values. Now, the value I receive in the Java code ...
6
votes
2
answers
1k
views
transfer doubles between java and simulink using udp
I need to transfer decimal values between Java program and a Simulink model, to do so i use UDP sockets, they are no problem in the java side.
In Simulink i am able to send the values using 'Stream ...
3
votes
1
answer
534
views
Sending double from matlab to java via UDP-packets
I'm trying to send doubles from Matlab(Simulink) to java.
This is my code:
public static void main(String[] args) throws SocketException, UnknownHostException, IOException {
DatagramSocket socket = ...
1
vote
0
answers
401
views
How to solve OutOfMemoryError when building a PDF System Design Description for a "big" Simulink Model?
Introduction
I get an OutOfMemoryError when building a System Design Description in PDF and Word format.
Steps resulting in Exception
I have already increased the heap space to the maximum of the ...
0
votes
0
answers
471
views
MatLab/Simulink TCP/Receive getting bad data
I have Java code sending TCP/IP data to Matlab that works using the following code:
four=tcpip('localhost', 4444, 'NetworkRole', 'client');
set(four,'Timeout', 30);
set(four, 'InputBufferSize', 7688);...
-2
votes
1
answer
484
views
Making MATLAB Code Platform Independent [closed]
I have a MATLAB code (including Simulink models) which I would like to make platform-independent, i.e., allowing them to run on web browsers and smartphone apps. Would coding it in Java be the best ...
2
votes
0
answers
184
views
How to import mdl file into java through matlabcontrol?
I should use matlabcontrol to interact between matlab and java since I'm going to parse the data in java. Also I know that I should use get_param command to extract stored data in mdl files.
So, the ...
1
vote
1
answer
494
views
Storing custom java object inside Matlab Simulink block for a custom Toolbox
I'm working on building a custom Simulink block as a Matlab Toolbox. In order to avoid matlab's language to program the system, I'd like to make the system in Java as much as possible. I've ...