Hello,
We managed to read from the multiwell as well using matlab scripts based on the examples provided. Reading works, grounding works stimulation probably works (need to check with scope). However retrieving the timestamps using the additional digital channels fails: ('McsUsbNet, Version=5.1.32.0, Culture=neutral, PublicKeyToken=null')
for the MEA2100 using the approach below:
Devices.dacq.EnableDigitalIn(Mcs.Usb.DigitalDatastreamEnableEnumNet.DigitalIn , 0);
Devices.dacq.EnableDigitalIn( Mcs.Usb.DigitalDatastreamEnableEnumNet.DigitalOut , 0);
Devices.dacq.EnableDigitalIn( Mcs.Usb.DigitalDatastreamEnableEnumNet.Hs2SidebandLow , 0);
Devices.dacq.EnableDigitalIn(Mcs.Usb.DigitalDatastreamEnableEnumNet.Hs2SidebandHigh , 0);
Devices.dacq.EnableChecksum(true, 0);
[analogchannels, digitalchannels, checksumchannels, timestampchannels, channelsinblock] = Devices.dacq.GetChannelLayout(0);
System.ChannelsAvailable=channelsinblock/2;
Devices.dacq.SetSelectedChannels(System.ChannelsAvailable, System.queuesize, System.blocksize, Mcs.Usb.SampleSizeNet.SampleSize32Signed, channelsinblock);
Devices.dacq.ChannelBlock_SetCommonThreshold(System.blocksize);
Devices.dacq.ChannelBlock_SetCheckChecksum(uint32(checksumchannels),uint32(timestampchannels));
And then load the stimulations with:
Devices.stg.PrepareAndSendData(HeadStage, NET.convertArray(amplitude, 'System.Int32'), NET.convertArray(duration, 'System.UInt64'), Mcs.Usb.STG_DestinationEnumNet.channeldata_voltage);
SidebandData = Devices.stg.Stimulus.CreateSideband(StimulusActive, sideband, duration, Bit0Time, Bit3Time, Bit4Time);
Devices.stg.PrepareAndSendData(HeadStage, SidebandData.Sideband, SidebandData.Duration, Mcs.Usb.STG_DestinationEnumNet.syncoutdata);
gives 5 digital channels. However for the multiwell, using Hs2SidebandLow/high results in digital channels to be zero. leaving these out results in 2 channels, but no timestamp trigger. It seems that Hs1/Hs2 is not available? Switching to head stage 1 does not make difference.
What am I doing wrong here?
Hello,
We managed to read from the multiwell as well using matlab scripts based on the examples provided. Reading works, grounding works stimulation probably works (need to check with scope). However retrieving the timestamps using the additional digital channels fails: ('McsUsbNet, Version=5.1.32.0, Culture=neutral, PublicKeyToken=null')
for the MEA2100 using the approach below:
And then load the stimulations with:
gives 5 digital channels. However for the multiwell, using Hs2SidebandLow/high results in digital channels to be zero. leaving these out results in 2 channels, but no timestamp trigger. It seems that Hs1/Hs2 is not available? Switching to head stage 1 does not make difference.
What am I doing wrong here?