![]() ![]() Looking at the 2D array at this point, it became obvious that each row represented a single channel (1-8), with the first 4 U16 elements in each row being some kind of header, followed by 500 samples. I was able to get the headers to line up by setting the number of colums in the 2D array to 504. I put everything in a while loop so that I could play around with the 2D array dimension size and start index and see the updated results. I joined each consecutive pair of bytes into a U16, then reshaped into a 2D array to make the repeating pattern easier to see. Scrolling through the data after this point, it looked like a slowly changing (noisy) signal which abrubtly switched states every now and then, so I knew it was the AI data for the square wave. I hope I saved the correct default values in the 2nd VI that I posted.īasically I read all of the binary data as U8, then truncate the first 3228 elements (this is where I saw the start of repeating patterns). You can ignore the graph and VI in my first post since it was derived incorrectly. I zoomed in to show the square wave, but there's actually somewhere around 120,000 data points per channel. Hi Bob, both of the graphs show the data from the first drc file that JD posted. (it may cost you a beer at some future meeting. If not, zip those data files up, along with a description of their acquisition settings, and we can take a crack at it. With these data, you can probably figure out the encoding (if, as I'm guessing, it is binary). It would help to know precisely how many samples you took - one way to do this might be to save a single "sweep" of the scope. ![]() If you have multiple channels, start with one channel at a time, then do both (or all) together. An example would be a square wave of known amplitude and known frequency, acquired with 2-4 channel Gain settings and 2-4 time bases. ![]() To do this, it would help to create several (small) files with known composition. If it is a binary file, you may be able to "break the code". Looking at the data file you attached, it looks like it might be a Binary file - if I had a clue to the file format, or to what you expect the contents to be, I might be able to decode it. ![]() ĭo they provide you with details on their DRC data format? Do they provide low-level calls to enable you to use it as a "smart A/D converter" and get the data streamed back to your PC over the USB line? Well, I tried to go to Hantek to see if they had useful information, but they want me to log in. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
December 2022
Categories |