ACQUIRING TWO SIGNAL SIMULTANEOUSLY TRHOUGH GUI: TRIGGERING VIA SOFTWARE

3 次查看(过去 30 天)
Hello everyone,
I am trying to collect data from two type of sensors: GRF from a Force Plate and accelerometric data from XSENS Awinda station. The two hardware are connected to the PC using USB connections and using a BNC cable and the proprietary software from XSENS it is possible to setting a trigger in order to start and synchronize the acquisitions from the two devices. However since i have to develop a GUI for managing the entire system i had to face with the problem of using the XSENS SDK for Matlab and i can not understand how to setting the trigger by code.
In this sense, i thought about two possible work-around.
  1. setting two different data acquisition sessions in parallel (one for accelerometers, one for force plate using daq) and use a global variable as a trigger between the two callback functions for avaiable data;
  2. open a daq session without continous sampling, open the XSENS acquiring session and inside the latest use a inputsingle scan from the first one in order to register simultaneously accelerations, orientations and force signals;
My question is which is the most reliable solution ? using the first one i'm not sure about the possible conflicts between the two session in parallel, while for the second i'm not sure if putting too much acquisitions inside the same calllback could influence the sampling frequency which is setted at 50 Hz for each devices.
In the second case I was also thinking to use the timer functions tic and toc to obtain a timestamp for each acquisition in order to:
  1. register signal from XSENS;
  2. register signal from daq
  3. register timestamp;
Does someone have some advice about possible ways or examples to triggering via software ?
Thanks in advance for the help.
MJ

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Simultaneous and Synchronized Operations 的更多信息

产品


版本

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by