Quantcast
Channel: All LabVIEW posts
Viewing all articles
Browse latest Browse all 202521

Re: How do I take a Fourier Transform of data acquired over a long duration?

$
0
0

" I have a U6 but am still trying to get it to do everything it should be able to do"

 

Let us know if you need help with anything.

 

 

"it looks like LabJack is much better programmed in languages like C#"

 

Our opinion on that is that the programming is not better in one language over another, but rather equal regardless of the language:  C++, C#, Matlab, LabVIEW, or whatever.  We purposefully try to keep it the same so documentation is the same regardless of language, an example in one language is useful for other languages, and it is easy to move from one language to another.  The U12 is our original device from 2001, and has its own driver, but this flexibility is even more true with the UD driver (for the U3, U6, and UE9), and now even more true with the LJM driver (for the T7).

 

I would also add the the part of a program that moves data back and forth from the LabJack is usually small compared to the overall program.  Moving data back and forth from the LabJack is pretty simple, and beyond that you are just doing programming in whatever language that is not really specific to the device at all ... just deciding how to handle a value or array of values and doing things like data processing, logging to file, and screen display.

 

That being said, LabVIEW is one of the most popular languages with our customers, so we do add a little extra to take advantage of features that are not always available in every language.  Things like clusters and 2D arrays come to mind.

 

 

In this particular example, the user would like to acquire 2 channels from a U12 at 600 scans/second for 10 minutes.  We have an example called "simple ai stream example.vi" that can do that.  On the front panel just set "Number of Channels" = 2, "Scan Rate" = 600, and "Number of Scans"= 300.  Then run and it will collect data continuously.  "Number of Scans" is how many scans you are reading each time, so the example in this case will iterate about every 500 ms as it reads 300 scans each time.  So every half-second the main while loop iterates and you get a 2D array with another 300 scans.

 

 


Viewing all articles
Browse latest Browse all 202521

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>