I am using matlab to extract data from an instrument, now I would like to use another instrument to collect simultaneous data, and write them (both instrument’s data) off in excel with time stamp. Now I want Matlab to perform the acquisition of data
2 views (last 30 days)
Show older comments
I am using matlab to extract data from an instrument, now I would like to use another instrument to collect simultaneous data, and write them (both instrument’s data) off in excel with time stamp. Now I want Matlab to perform the acquisition of data from two instruments to occur simultaneously, and not consecutively; i.e. to use individual cores dedicated to read the data from individual instruments at the same time, while using another core to write them off in excel, so that I don’t spend time not measuring. Any help or suggestions would be much appreciated.
Thanks in advance.
I am using two Fluke multimeters via DHCP communication protocol to acquire data.
1 Comment
Gaurav Ahuja
on 15 May 2017
Reading the following links would give an idea about the parallelism provided by MATLAB.
https://www.mathworks.com/discovery/matlab-multicore.html (read "Parallelism Using MATLAB Workers")
https://www.mathworks.com/products/distriben.html ("MATLAB Distributed Computing Server" lets you take advantages of the parallelism offered by cluster computing)
https://www.mathworks.com/help/simulink/examples/assigning-tasks-to-cores-for-multicore-programming.html#zmw57dd0e16538 (helps you generate code from Simulink models that can be assigned to specific processors).
I feel "Parallelism Using MATLAB Workers" is most practical for your use case. However, I am not sure if it allows you to bind a "worker" to a particular core.
You can parallelise (software parallelism) the process of data gathering and storing in excel by using functions like:-
parfor (https://www.mathworks.com/help/distcomp/parfor.html)
spmd (https://www.mathworks.com/help/distcomp/spmd.html)
I hope this helps. It should help you achieve some parallelism for your use-case.
Answers (0)
See Also
Categories
Find more on Instrument Control Toolbox Supported Hardware in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!