06-19-2008 10:08 AM
06-20-2008
02:35 PM
- last edited on
04-23-2025
01:51 PM
by
Content Cleaner
Hi Noam,
It seems that a good option for you will be to use the PCI-6154 for both the output and the input since it has analog outputs and is simultaneous sampling. This will make synchronization a bit easier since you will only have one board and will not need a RTSI cable to transfer signals between two PCI boards. There are good same device multi-function (analog input and output) synchronization examples in the Example Finder. The Example Finder can be accessed through the Help menu in LabVIEW. These DAQmx examples can be found browsing by task under Hardware Input and Output » DAQmx » Synchronization » Multi-Function. A good one to start with may be Multi-Function-Synch AI-AO.vi. More information about synchronization can be found in this article or in the DAQmx Help. You can find the optimum input and output rates by just experimenting with a few values until you achieve something acceptable for your application. Just remember that a higher sampling rate is useful when trying to accurately reproduce your signal and that the minimum input sampling rate for the toolkit is 50kHz.
Regards,
Kent
Applications Engineer
06-22-2008 03:15 AM
06-22-2008 08:19 AM
06-23-2008
03:38 PM
- last edited on
04-23-2025
01:51 PM
by
Content Cleaner
Hi Noam,
Without the PCI-6154, the best way to proceed will be to use a RTSI to synchronize the simultaneous sampling card with a card providing the analog output. The simultaneous sampling is essential for the lock-in amplifier. There are examples in the Example Finder which show how to share the sample clock and a start trigger between the two cards. Instead of looking under Hardware Input and Output » DAQmx » Synchronization » Multi-Function, check under Hardware Input and Output » DAQmx » Synchronization » Multi-Device. There is also good information about synchronization and related topics such as signal routing across RTSI in this article.
The rates of both the analog output and input will be the same since you are sharing the sample clock. One thing to check is to make sure that the rate is at least twice as high as the highest frequency that you will be testing. It is not a bad idea of start off with a high rate to ensure that the sine wave that you are generating is smooth.
The error that you are seeing is a common overflow error. While you do not have to increase your buffer size to solve this error, you may have to read faster. The buffer size is different than the number of samples you acquire each time you call the DAQmx Read function. The number of samples to read each time can be changed by wiring a different value to the DAQmx Read function. If both of these values are set, then the way to make sure the buffer does not overflow is to call the DAQmx Read function more often. This will require making sure that there is nothing in the loop that is slowing it down. This may require moving all processing functions to a separate loop.
Regards,
Kent
Applications Engineer
06-25-2008 11:15 AM
06-26-2008
01:39 PM
- last edited on
04-23-2025
01:53 PM
by
Content Cleaner
Hi Noam,
Your E-Series card will not be simultaneous sampling. In addition, the overall sampling rate will drop since it must be aggregate among all of the channels. A more detailed explanation can be found in the E Series Manual on page 2-30 under the Analog Input Timing Signals section. As for the buffering, I was mainly trying to say that the buffer size will be larger than the number of samples being read each time the read function is called. All of the data will be stored in the buffer and pulled out in the order it came in to ensure that you are receiving all of your samples.
Regards,
Kent
Applications Engineer
06-29-2008 02:57 AM
06-30-2008
04:11 PM
- last edited on
04-23-2025
01:53 PM
by
Content Cleaner
07-01-2008 07:10 AM