Hi, having a slight issue trying to get a simple data acquisition VI do what I want (attached here). For reference, the DAQ is a usb-6009 (48kHz max) and I'm sampling the analog signal at 24kHz , to allow the digital channel to effectively sample at 24khz (though it is 'on demand').
What I want is for an analog input to be recorded when the digital input is high. If the code worked I would aim to implement this by taking the waveform data and appending it on a waveform through a shift register.
Unfortunately when I set the sample number to 1-10 (I would like to keep this low so that the data acquisition stops precisely when the digital input is 0) I get the error - why is this happening?
Using samples = 25 means it works flawlessly , but this would be taking data points when I don't want them to be taken (i.e when the digital signal is off).