LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

2 analog outputs and 1 analog inputs simultaneously

I use PCI-6110 and LabWindows/CVI 7.0.

I need to outputs two sine waves of different frequencies, phases and amplitudes to analog outputs 0 and 1. It simultaneously synchronously reads from analog input 0 and when the acquisition stops it graphs analog input 0.

The clock signal of the analog input is routed to one of the analog outputs so every time an analog input occurs, an analog out is triggered to occur, thus synchronizing the input and output.

I want to modify the this program (2 analog outputs and 2 analog inputs): http://sine.ni.com/apps/we/niepd_web_display.display_epd4?p_guid=B45EACE3E72F56A4E034080020E74861&p_node=DZ52337&p_source=External .
However, I just keep receiving error information.

Could y
ou please tell me how to do it?

Thank you very much!

Marlon
0 Kudos
Message 1 of 7
(3,957 Views)
Marlon,

I see that this question is a repeat of what is being discussed in another thread. We will continue to answer your questions and provide help but I would like to keep everything in the same post. Please see my reply in the other thread.

Thanks,
Sal
0 Kudos
Message 2 of 7
(3,957 Views)
Sorry, Salvador. I thought this should be a LabWindows/CVI question. Can I run it in MS Visual C++ 6.0?

I changed that example to 2 AO and 1 AI.
When I run that example in LabWindows/CVI, I get " NON-FATAL RUN-TIME ERROR: "AIAO_Sychronize.c", line 149, col 18, thread id 0x000006AC: Function DAQ_DB_HalfReady: (return value == -10608 [0xffffd690]). noTransferInProgError: No transfer is in progress for the specified resource."

After that, nothing can be run, even MAX gives me "10609 transferInProgError " or sometimes "-10845 overFlowError " errors.

Could you please throw some light on this problem?

Marlon
0 Kudos
Message 3 of 7
(3,957 Views)
Actually, first I got this information:

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


Thanks.
0 Kudos
Message 4 of 7
(3,957 Views)
Hi, Salvador:

Here are there questions about this example ( please see the attachment):


The program can run for several seconds. Then I get this error:
NON-FATAL RUN-TIME ERROR:
"AIAO_Sychronize.c", line 142, col 18, thread id 0x0000090C: Function WFM_DB_HalfReady: (return value == -10608 [0xffffd690]). noTransferInProgError: No transfer is in progress for the specified resource.


The program should outputs two sine waves of different frequencies to analog outputs 0 and 1. It should simultaneously synchronously reads from channels 0 and when the acquisition stops it graphs channel 0.


However, I can only see the outputs for several seconds, and then I got the error information. How does this happen? (If I change the value of NORMAL_
MODE from 0 to 1, the outputs can last a few seconds more)
Moreover, it is expected that the AOs won't actually output any points until the AI starts doing D/A conversions and so they will both start at the same time, but when I run the program the AOs output without any AI starting.
Finally, it is said that when the acquisition
stops the program should graph channel 0. How can I do this? Does that mean when I stop my snesor's working?


Thank you very much!


Marlon
0 Kudos
Message 5 of 7
(3,957 Views)
Hi, Salvador:

Actually, 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.
1. I think the value of NORMAL_MODE should be 0.
2. I still can't get the AI pop-up graph.
3. The outputs still start without the starting of AI, which should not be.

Marlon
0 Kudos
Message 6 of 7
(3,957 Views)
Here is the modified example (attachment) and error information:
NON-FATAL RUN-TIME ERROR: "AIAO_Sychronize.c", line 157, col 18, thread id 0x0000036C: Function WFM_DB_HalfReady: (return value == -10608 [0xffffd690]). noTransferInProgError: No transfer is in progress for the specified resource.

Thanks
0 Kudos
Message 7 of 7
(3,957 Views)