10-21-2010 09:44 AM
Hi,
I am using the PXI-7831R board with LabView 2010. I'm trying to transmit TDMS files from the computer hard drive via the analog output of the 7831R. I've used the "Basic DMA output - R series" example and replaced the generated signal with a TDMS file. When I tried it on a synthesized pure sine file, it transmitted the positive part of the sine wave (which was a little distorted) but instead of the negative part I saw 0V DC. When I tried to use a "real" TDMS file (that I sampled earlier) the signal came out completely distorted. In both cases I used a graphic output in the host VI and checked that the data coming from the file is ok. Can anyone help me with that?
I would also appreciate some explanations on the "Update Rate" block (I suspect that he's the one causing all my trouble) - how am I supposed to use it and is it mandatory?
Thanks in advance.
10-22-2010 10:50 AM
It sounds like when you are using the sine wave, you are clipping the data. I am assuming that this is because you are sending it negative values. R-Series cards can not handle fixed point values, so try to offset the signal so that the lowest point of the signal is at 0. See how that works for you. As far as the Update Rate goes that controls the speed of your loop. If you do not set it high enough, the loop will simply run as fast as it can. I hope you find this helpful.
Brandon Treece
Applications Engineer
National Instruments
10-24-2010 01:32 AM
Hi Brandon,
While using the original example, the signal has both positive and negative values. Anyway, I need to transmit negative values for my project. How can I avoid the clipping? Maybe convert the fixed point data to any other type of data?
About the update rate: Is it mandatory? How can I set it for the highest rate available?
Thank you
10-24-2010 10:44 AM
without seeing your code, your problem is most likely a type conversion issue. post your project and let's see if we can help