06-15-2004 05:00 PM
06-30-2004 03:37 PM
04-22-2005 04:08 AM
04-25-2005 10:43 AM
04-25-2005 11:27 AM
10-20-2006 09:29 AM
Hi
I'm not sure you still remember this problem. I'm very surprised when I found this thread.
I have an exactly same problem.
Now I'm using the PCI-6115 and have an I16 unscaled data from the 'Cont_Acq_to File(binary).vi'.
To analyze the saved data, I'm going to use the matlab, because in labview it takes lots of time.
However I can not read those data in Matlab.
So, could you tell me how can you solve this problem?
I tried the matlab code, end of this thread by C. Minnella, but it does not work for me.
Do I need to something for this code or am I miss something?
Thanks in advance.
Have a good day.
10-20-2006 10:30 AM
10-20-2006 11:23 AM
Hello
Wow, I didn't expect an answer for me so quick and from you.
Actually, I did follow every your writing. I'm a kind of new labview user (only 2 month),
so I don't know much about the labview, but I think you're great.
I also read the writing about the bug in Cont Acq&Graph Voltage-To File(Binary).vi. in other thread.
I don't know much about that, but I think you're right for that.
You're exactly right for my labview. I modified two vis from example, "Cont Acq&Graph Voltage-To
File(Binary).vi" and "Grah Acquired Binary Data.vi". Actually I only changed one part, save I16 and read I16.
I need a 5MHz sampling data and it's so big. That's why try to use Matlab.
I copied, pasted your matlab code and made LVReadBIN.m file.
When I run it with my data file, I got this error.
===============
>> LVReadBIN(1000);
??? Undefined function or variable 'then'.
Error in ==> C:\Th\LabView\NI_6115\10192006\LVReadBIN.m (GetHeader)
On line 103 ==> then
Error in ==> C:\Th\LabView\NI_6115\10192006\LVReadBIN.m
On line 23 ==> headerInfo = GetHeader(fileName,pathName,dataBytes);
>>
================
I'm not an expert for the Matlab, but I don't think the "then" is not right commend,
so I deleted and run again. And I got another error.
===============
>> clear
>> LVReadBIN(1000);
??? Error using ==> fread
Out of memory. Type HELP MEMORY for your options.
Error in ==> C:\Th\LabView\NI_6115\10192006\LVReadBIN.m (GetHeader)
On line 104 ==> userHeader=fread(fid,userHeaderLength,'uchar');
Error in ==> C:\Th\LabView\NI_6115\10192006\LVReadBIN.m
On line 23 ==> headerInfo = GetHeader(fileName,pathName,dataBytes);
>>
============
I attached 5MHz sampling data file. I have to change the name. It's not a txt file.
You just change the name (extension) from "test-5M.txt" to "test-5M.bin".
If you don't mind, could tell me what my problem is? Am I miss something or did wrong?
I really appreciate for that.
Thank you very much.
Have a great day.
Best regard.
Aggie.
10-20-2006 03:13 PM
10-24-2006 09:17 AM
Thank you very much Chris.
It's really great. If I can, I want to give you 100000000 stars.
Now I saw your code and checked my data with your program. It works perfectly.
My original data file is much bigger than the sample data, so from now, I need to think about how can I split the data and analyze it to avoid memory problem.
I want to say again that I really appreciate for spending time for this.
Have a good day.
Best regards,
Aggie.
P.S. I know this forum is for Labview, but I have a question about Matlab.
As I said before, my original data is very big (5MHz sample with over 10 seconds).
Whenever I run it, I have a memory full message. If you don't mind, could you give me any advice or tip for this matter? If you don't want to write about matlab in NI forum here, you can send e-mail to me.
Anyway, if you don't have time for this, that's fine. You already did lots of things for me !!!!
Thank you