12-06-2007 05:57 AM
12-07-2007 03:29 PM - edited 12-07-2007 03:30 PM
Hi Balaji,
I took a quick look at the code and initially got an error because of the -1 value for the ‘No. of samples’ control. I changed this value to a positive number and the program ran without error. I also changed the counter sample mode to Finite Samples and wired the ‘No. of Ports’ to the Samples per Channel. I’ve attached an image of the VI with the changes I made.
It appears that the program will setup an Analog Input task and Digital Output task. These two tasks will use the counter output (which is internally routed) as their clock. The counter will run at the frequency specified. The Digital Output will write values from 0 to the number specified in the ‘No. of Port.’ The Analog Input will read values from an AI channel as long as the Digital Output task is running.
There are some great LabVIEW and Data Acquisition resources available online. Check out LabVIEW Introduction Course - Six Hours and Getting Started with NI-DAQmx for some initial instruction.
12-17-2007 06:56 AM