LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

multiple channel AI measurement in the same module with synchronised AO

I  am using NI -9172  for measurment. I am trying to mesure two  AI voltage signals on the same module (NI9215).A sinosoidal  analog input voltage is generated using NI 9263. The AI and AO are synchronised using Ai start trigger signal from NI 9263( AO). While I can measure  an AI signal using the same module, it does not  show any measurement signal when I try to modify the VI program for multiple channel measurment. I don't see any kind of error in the program. ( At least the program does not show any kind of errors) Can anyone please tell me what my problems are? I have attached the VI below.

0 Kudos
Message 1 of 6
(4,737 Views)

Hi,

I looked at your program and ran it--it does show measurements in all the graphs in my case. Can you tell me which graphs are showing signals when you run the program and which ones are not?

 

Ipshita C.

National Instruments
Applications Engineer
Message 2 of 6
(4,717 Views)
HI  Ipshita,

Thanks for your willngness to help me.

It is only showing the  sine wave AO signal  when  I  run the test. It does not show any of the AI signals. It is working for one AI signal before modifying the program. The problem is happening , when I try to get two AI voltage signal on the same module using the VI I have attached.Any suggestions?Is the problem could be on indexing arrays?
0 Kudos
Message 3 of 6
(4,715 Views)

Thanks. Now I found out what my problem was. It is just that the file I was working with  was corrupted. I did the same thing on a different file name and  the VI is working now. I appreciate your help.

 

 

Message 4 of 6
(4,698 Views)

Hi

When you say it is working for one channel do you mean that if you enter either one of the inputs among Magenetic Flux or Strain you can see both the input and the output signals? I noticed that you have two DAQmx Create Virtual Channel VIs. They are connected to each ohter and to the same array. This essentially translates into the signal being shown in one graph. For learning more on using multichannel programming please refer to Multi Device Sunch--Shared External Convert Clock.vi. Hope this helps.

 

Ipshita C.

National Instruments
Applications Engineer
0 Kudos
Message 5 of 6
(4,693 Views)
I have fixed that problem  already. I forgot to delete one of the  daqmx create function  form the VI. Now everything is fine. Thank you.
0 Kudos
Message 6 of 6
(4,688 Views)