Analog 1ms sampling problem
Posted: Fri Sep 13, 2019 8:58 am
Dear all,
I'm using the 8/8/8 interfacekit for sound localization using three sound sensors (voltage input). Since the application is time sensitive, I'm trying to collect the data at 1ms data interval. However, the sensors readings show a repeated voltage value or zeros. what could be the problem?
Thank you in advance.
this is the constructor
I'm using the 8/8/8 interfacekit for sound localization using three sound sensors (voltage input). Since the application is time sensitive, I'm trying to collect the data at 1ms data interval. However, the sensors readings show a repeated voltage value or zeros. what could be the problem?
Thank you in advance.
this is the constructor
Code: Select all
public Localization(int length)
{
this.length = length;
mic = new VoltageInput[3];
try
{
for(int i = 0; i < 3; i++)
{
//Create the channels
mic[i] = new VoltageInput();
mic[i].setDeviceSerialNumber(443183);
mic[i].setChannel(i);
mic[i].open(5000);
mic[i].setVoltageChangeTrigger(0);
mic[i].setDataInterval(1);
}
}catch (PhidgetException e)
{
e.printStackTrace();
}
}