01-04-2008 05:00 PM
01-07-2008 02:34 PM
Hi jtrout,
All analog input channels are grouped together as one task with all the parameters (input range, sampling, timing, etc.) being the same. This also means that you can’t have different channels with different triggering, etc. The solution is the approach you’ve mentioned: gather the data and then discard it. You could do this in LabVIEW by the method you suggested: throwing away the unwanted data. That can be done in LabVIEW using the array functions to get subsets of the buffer data, etc., or writing to file and then trimming it afterwards.
Hope that helps you get started!
01-07-2008 03:02 PM
01-08-2008 09:16 AM
Hi jtrout,
There are no NI boards that can split one type of task into separate channels with different parameters. It’s due to the fact that all analog input is one task, analog output is one task, etc. Each task has one set of parameters for all channels/lines associated with it.
I only partially assumed you were using LabVIEW. I caught the subtle phrase about you using a read “block” inside a loop. It sounded like graphical programming and graphical programming = LabVIEW!
I would suggest looking at our shipping examples that already take data and write to file. They’re found in LabVIEW by choosing Help » Find Examples. You could start with something like “Cont Acq&Graph Voltage – Write Data to File (TDMS).vi” (from Hardware Input and Output » DAQmx » Analog Measurements » Voltage) and modify it to work with .txt files, to discard data, etc.
It sounds like you’re on your way. Best of luck with your application.