09-18-2019 02:42 AM
I need sampling two channels of analog signal using the ADC on the PCI-6154. As we know, PCI-6154 has four channels analog input. However, I can't sample through the ai0/ai1 port in the mean time.
The time sample data from ai0/ai1 is different and the wavform separate in the time axis.
Can the PCI-6154 do synchronous sampling from two analog input channel? How can I do that? Please give me some tips.
Solved! Go to Solution.
09-18-2019 03:55 AM - edited 09-18-2019 03:57 AM
Hi,
Luckly, you can directly drag following code to block diagram to sync two AI task with 6154, you only need to select corresponding terminals of your device.
This image is from this tutorial, in which contains detailed description regarding how to synchronize via DAQmx API.
Regards
09-18-2019 04:06 AM
09-18-2019 05:16 AM
Hello Nochenon233,
I have already try the sample in your figure and blow is the screenshot
However, when runing, it occurs error -89131, which is a boring thing. Do you know why the error comes out and help me friend?
09-18-2019 10:18 AM
Create just 1 task and put both channels in it. The syntax for specifying a range of channels can look like this:
"Dev1/ai0:1".
I don't know your device well, but a quick search confirmed that it's capable of simultaneous sampling unlike many DAQ devices that multiplex. So with both channels in the same task, you should get truly simultaneous samples rather than just *nearly* simultaneous.
-Kevin P
09-18-2019 09:25 PM
Hi Kenvin_Price,
Thank you replay me so soon. I really apprieciate it.
Your tips really works for me. I read other post in Forums. If you set multichannel in one task, you must use N channels N samples mode for data acquisiton, otherwise error comes out.
08-29-2023 12:51 AM
Hi, I want to use the PCI 6154 for the same application. Can you please share the labview code finalizd for reading multiple channels simulatanously.