02-19-2010 12:30 PM - edited 02-19-2010 12:31 PM
Hi,
I have just started using NI PCI 6221, and have no experience with daqmx ,
NI PCI 6221 : 16 AI -- 2 AO
My basic problem statement is to generate a sine wave give it on ao and then i have connected physically ao with ai of the pci card, then read and analyze the signal from ai.
can anybody provide a good example to do ao & then ai in the same program,
thanks
02-19-2010 12:47 PM
You should start by looking at the examples that are installed when you install DAQmx. Help -> Find Examples -> Hardware Input and Ouput -> DAQmx.
You should also look over the material in the Developer Zone: Getting Started with NI-DAQmx: Main Page
02-19-2010 12:51 PM
hi
Is there any specific example in which both the cases are used
thanks for reply
02-19-2010 03:10 PM
You would just need to combine an analog output example with an analog input examples.
Note: I provided the incorrect link for the page. Correct link: Getting Started with NI-DAQmx: Main Page
02-19-2010 10:32 PM
02-19-2010 10:34 PM
02-20-2010 12:09 AM
02-20-2010 12:18 PM
The DAQmx Popup for DSA seems to come from the Sound and Vibration Toolkit which I don't have. I did not see anything immediately wrong. When I remove the DAQmx Popup for DSA and ran the VI using a simulated PCI 6221 the code ran without errors. Were you trying to run it in highlight mode? If you were you'd get the -200279 error which means you weren't keeping up with available data.
Tips:
02-20-2010 11:00 PM
Hi,
Thanks for replying but the sine wave which i am producing is not generated as it is.
as well as when i use the express vis the code runs perfectly what can be the possible reason,
i am attaching the express vi below,
regards
02-21-2010 11:21 AM
The VI you posted that uses Express VI doesn't have the tasks configured the same way as the code that doesn't use Express VI, so I'm not sure what you're doing anymore. Why do you have a separate Simulate Signal Express VI to create an offset as opposed to just using the "offset" input of the Simulate Signal Express VI. Did you write both VIs? Based on the coding style it seems unlikely.
I also don't understand what you mean by "but the sine wave which i am producing is not generated as it is."