How to confirm the connection when using MATLAB Online and PC client cooperation?

7 visualizaciones (últimos 30 días)
I try to use MATLAB Driver in the cloud to share data files. It synced with the local computer after installing the MATLAB Drive Connector.
Is there a command that can confirm the connection is connected?
for example:
matlab_drive_connector = connector.isMathWorksDriveConnected;
if ~matlab_drive_connector
matlab_drive_connector = connector.connectToMathWorksDrive;
end
Execute the command, connector, under Command Window, it shows out as below:
>> connector
message with properties:
Identifier: 'MATLAB:connector:connector:NotSupported'
Arguments: {}
It seems, there was a command before. Have any new command or instead method to control or confirm the connection?
Execute the command, matlabdrive, under Command Window, it shows the MATLAB Drive existed.
But I want to use MATLAB program to confirm the connection, even more, to start or stop MATLAB Driver Connector syncing?
If there are more than two MATLAB programs executed, one on my laptop locally, the other one on the MATLAB online in the cloud.
While MATLAB online starts to run the code as below, then the MATLAB on the client PC sends tens images to MATLAB Drive even after completed synced, the program checks the MATLAB Drive is always as empty. Only manual stop or pause then continues running, the program has got updated correct information.
while isempty(dir('/MATLAB Drive/tmp/*.png'))
dir('/MATLAB Drive/tmp/*.png')
pause(3);
end
Is there a way to let them communicate and share the data for cooperation in recognization?
When saving data in local matlabdrive, how fast to sync to the cloud for recognization, and how fast to answer back the result of recognization?
Is there any ideas for me? thanks.

Respuestas (1)

Walter Roberson
Walter Roberson el 29 de Mzo. de 2023
"Is there a command that can confirm the connection is connected?"
NO.
MATLAB Online executes in the cloud, and the user interface to it is only through a browser. The only connection between the user computer and the cloud is what can be provided by the browser. For security reasons, there are a lot of restrictions on what can be executed by the server on the user's computer. There is no interface available that can check whether a particular program is running on the user's computer.
Note: the only advanced interface beyond upload and download, is through the Chrome browser. Firefox and Safari do not have the interface layer. I do not know if the Chromium engine in Microsoft Edge supports the interface.

Categorías

Más información sobre Manage Products en Help Center y File Exchange.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by