02-21-2006 10:03 AM
02-21-2006 10:03 AM
Hi fellows!!!!!
I found the solution, I divided the vi into two sub vis. First Vi created a text file to input patient information in it and save it, on pressing saving the data an applet for acquiring data pops up. This data acquisition is in binary raw data and continuously saved on the first created text file. I used pos mode, together with pos offset, it specifies where the read or write operation begins on a file. At the end before final just did swapping of the bytes from big-endian to little-endian for non labview applications.
Thank you, all of u guyz for help and leading me to the solution (i hope it works :))…
nabeel
02-21-2006 10:18 AM
Sure Chris
Little more information, The complete application is one program. With different parts, it gets data from the operator about the patient and after saving the data the physical recording of EEG starts. At the end, both information are present on a single file. the top of the file contains the patient information (which can be of 4k byte) and then regular patterns of DAQ channels as binary raw information store. (the regular patterns means e.g first, get 10 samples from one channel then contnue with 10 samples from second channel until complete 16. then rotaion starts. ). i am sending u my basic data acq. vi, it starts getting data after the onset of hardware trigger (for syncronysation of event related applications).
regards
nabeel
02-21-2006 07:51 PM
Hi Nabeel,
I made some minor changes to the code you attached. Instead of incorporating the read within the loop, it is better to build an array using the shift register and write only once at the end of the acquisition, this will improve speed, writing to disk sometimes takes a long time.
I also set the endian to little endian at the Write function, this is easier than the byte swap that you had incorporated within the loop.
I am interested to see how you are building the header.
Chris
02-22-2006 04:19 AM
02-22-2006 05:38 AM
02-22-2006 07:03 AM
02-22-2006 08:52 AM
Hi Nadeel,
Sorry, I forgot to attach my VI, again. I have attached a picture of the code for you to see.
Chris
03-08-2007 06:54 AM
03-09-2007 05:06 AM