You're awesome! That's exactly what I needed.
I didn't have my device connected, so it said "No device connected". When I plugged it in & started the application, it read SN, PN & constant sampling of the 4 AI channels.
Thank you so much!
I'll reach out to you if I need anything else.
Hello JRys,
I was going through the sample code you provided & had a few questions. Why do we have to ping pong between lower & upper half to capture the buffer data?
I changed the channel count to 8 & highchan to 4 since I have 8 channel AI board. When I did that & connected an external analog source to AI1, I saw all the other channels were also getting updated. My source was a sine wave of 5Vpp. I'd thought only AI1 would get updated. Does it scan all the channels & then outputs only the one that's changing?
In my ABS application, I'd have 2 AI channels- one for left channel & 1 for right. So, I'd need the data buffer to hold them separately as e.g. AI0 & AI1 & not mix them up.
Attached is a screenshot of the fault that I got when I incorporated into my VB solution file. Also attached is the NI Analog class I'm trying to replace with MCC Analog