07-17-2007 10:46 AM
07-17-2007 11:22 AM
07-17-2007 11:24 AM
07-17-2007 11:30 AM - edited 07-17-2007 11:30 AM
My guess would be that a couple of nested loops and the Spreadsheet String to Array primitive will help you do what you want, but I suggest you upload a sample file, so that we can give a real answer.
To learn more about LabVIEW, I suggest you try searching this site and google for LabVIEW tutorials. Here, here, here, here, here and here are a few you can start with and here are some tutorial videos. You can also contact your local NI office and join one of their courses.
In addition, I suggest you read the LabVIEW style guide and the LabVIEW user manual (Help>>Search the LabVIEW Bookshelf).
Message Edited by tst on 07-17-2007 07:30 PM
07-17-2007 09:46 PM
07-18-2007 11:32 AM
attatch is the sample data.
/* sample code simulated to generate the sample data */
#include <stdlib.h>
#include <stdio.h>
#include <time.h>
#pragma pack(4)
typedef struct _sample_data{
double timestamp;
int c1;
int c2;
int c3;
}sample_data;
#pragma pack()
int main(int argc, char* argv[])
{
int i;
sample_data s;
FILE *f = fopen("sample.data","w+b");
srand( (unsigned)time( NULL ) );
for(i=0; i<1024; i++)
{
s.timestamp = i*1.0/1024.0; //the time interval is not constant in actual envionment.
s.c1 = rand();
s.c2 = rand();
s.c3 = rand();
fwrite(&s, sizeof(sample_data), 1, f);
}
fclose(f);
return 0;
}
07-18-2007 11:58 AM
07-19-2007 09:27 AM
07-19-2007 09:42 AM
07-19-2007 10:28 AM
Thanks.
If the data came from ehernet,i want to dynamic display the data in realtime,how to accomplish it.