LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

How to change WFMdoubleBuf.C to get two different analog outputs?

I changed the example coming with NI-DAQ 7.3, WFMdoubleBuf.C (please see the attachment), to generate two analog voltage outputs for channel 0 and 1 (PCI-6110). I got the signal, but the two outputs are the same. I guess the reason is they belong to the same group.
How can I get two different outputs (different amplitudes, phases and frequencies) by changing this program? Or is there any other ways?

Thank you very much!

Yong Xia
0 Kudos
Message 1 of 3
(2,961 Views)
Hi Yong,

Check out this example:

http://sine.ni.com/apps/we/niepd_web_display.display_epd4?p_guid=B45EACE3E72F56A4E034080020E74861&p_node=DZ52337&p_source=External

It does simultaneous analog output on two channels. I think this may be just what you are looking for!!

Thanks,
Sal
0 Kudos
Message 2 of 3
(2,961 Views)
Hi, Salvador:

Thank you. Could you please see the attachment? I modified the example to 2 outputs and 1 input.

The problem is I can only see the outputs for a second if I keep the value of NORMAL_MODE as 0. Then I get some error information.
If I change the value of NORMAL_MODE from 0 to 1, the outputs can last till the ITERATIONS finished. Then I get the same error information:

NON-FATAL RUN-TIME ERROR: "AIAO_Sychronize.c", line 156, col 18, thread id 0x00000758: Function WFM_DB_HalfReady: (return value == -10608 [0xffffd690]). noTransferInProgError: No transfer is in progress for the specified resource.

1. I think the value of NORMAL_MODE should be 0.
2. It seems that the outputs can start without the starting of AI, I mean, without
any signal to my sensor, i.e. the input.

Could you please throw some light on these problems?

Yong
0 Kudos
Message 3 of 3
(2,961 Views)