07-16-2008 01:44 PM
07-17-2008 01:39 PM
07-17-2008 02:30 PM
07-18-2008 12:22 PM
Hey Vijay,
If you set the offset to 0 and relative to is set to “most recent sample” then you will always read the most recent sample. In this case the offset specifies where in relation to the most recent sample you read from the buffer. If offset is ) then you will only be able to read one sample, the most recent one. This is why to read the most recent 1000 sample offset must be set to -1000.
If timing is critical in your application you may want to use start of reference triggering with a finite acquisition to ensure you get the samples you are looking for. More information on triggering can be found in the Developer Zone article, Tips and Techniques in Data Acquisition Triggering - NI-DAQmx.
To enable Warp Mode on your 6120 you must change the values in a couple of the cards registers. The Warp Mode VI does this using NI-VISA calls. The VI is password protected but you can find the password in the context help of the VI. Make sure to not change the values in the VI because you are writing directly to hardware registers. By looking at how the VI enables and disables Warp Mode you could use NI-VISA in .net to perform the same actions. If you attempt this be very careful and make sure you write the correct values to the registers. The Warp Mode VI can be found here.
Please let me know if you have any questions and take care.
Thanks,