Rapid block mode problems 2408B C#

Post your .Net discussions here
Post Reply
Beth
Newbie
Posts: 0
Joined: Thu Jul 06, 2023 8:46 am

Rapid block mode problems 2408B C#

Post by Beth »

I am currently adapting some code from the git hub repository for the picoscope 2408B. I'm trying to use block mode, however I get a "System.NullReferenceException" error at line 294. I have tried to fix this error but I am not having any luck, could someone please help at all?

Line 294 is:
Console.Write("{0}\t", _scaleVoltages ?
adc_to_mv(pinned[seg, chan].Target, (int)_channelSettings[(int)(Imports.Channel.ChannelA + chan)].range)
: pinned[seg, chan].Target);

I have also added a text file copy of my code.
Thanks!

Post Reply