How to connect the computer with the server

조회 수: 3 (최근 30일)
Jack_111
Jack_111 2013년 5월 6일
I would like to ask about connecting my computer with a server. If I have a computer connected to a setup to do some measurements and I want to get the data of this measurement and save it in the computer and then save it in the server how could I do that.
Many thanks in advance

채택된 답변

Jason Ross
Jason Ross 2013년 5월 6일
There are many ways to do this, and the "best" answer depends on how much data you need to move and how important the data is.
  • Copy the file from the local machine to a shared directory on the server.
  • Open a database connection to a database on the server and push the data into the database.
  • Use a protocol like rsync to move the data from the machine to the server on a periodic basis.
  • Skip the local copy altogether and just save to the directory on the server.
  • Use the "move" command provided by your OS to move the data.
  • "Move" the data by copying, then verifying the files (md5 sums), then deleting the data.
  댓글 수: 2
Jason Ross
Jason Ross 2013년 5월 7일
You could use the MATLAB "copyfile" command. http://www.mathworks.com/help/matlab/ref/copyfile.html
The source is your local file, the destination is the server's shared folder.
You can then use delete to clean up the file off the local system. http://www.mathworks.com/help/matlab/ref/delete.html
Jason Ross
Jason Ross 2013년 5월 7일
You really need to be a lot more specific. For example,
I am using software package XX to talk to MATLAB using YY. I am saving my data in a variable of type ZZ. I want to take the variables ZZ and output it to a file on my server so that it can be read by XYZ, which uses the file format ABC.
Once you can fill in XX, YY, ZZ, XYZ and ABC, you probably want to start a new series of questions.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Enterprise Deployment with MATLAB Production Server에 대해 자세히 알아보기

태그

아직 태그를 입력하지 않았습니다.

Community Treasure Hunt

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

Start Hunting!

Translated by