02-10-2006 03:06 PM
02-10-2006 09:54 PM - edited 02-10-2006 09:54 PM
Hiii, Jithendra,
If you are acquiring the data of more than one channel, then it must be a two dimension data, so now what you can do is you can concatenate the time stamp in ahead of the first column with the use of format date/time string, which will give you a current date and time and if you want it with the miliseconds, then you can format the time stamp string in that control, by doing this you can take the current times satamp. if you are still in trouble, let me know how you are writing the data into the file and send me ur vi, i can do the modidfication accordingly.
Thanks,
Nishant
Message Edited by Nishant on 02-10-2006 09:55 PM
02-11-2006 11:31 AM
02-11-2006 06:45 PM
hi Nishanth,
i tried using format date time string, but it's not displaying ms. in the string control when i give %I%M%S<digit>, it's displaying hours, minutes and seconds correctly but for digit its just displaying what ever i give as input. I am using the Get Date/Time VI to get the current time and then giving it's output to Format Date/Time string. At the output of the Get Date/Time VI if i put an indicator it's showing the time in ms. But at the output of the Format Date/Time VI its not. can u please help me out.
thank you
jithendra
02-11-2006 11:45 PM
@jithendra p wrote:
... i tried using format date time string, but it's not displaying ms. in the string control when i give %I%M%S
, it's displaying hours, minutes and seconds correctly but for digit its just displaying what ever i give as input.
Hi Jithendra,
Have you tried "%I%M%S%3u" ?
02-12-2006 11:24 AM
Hi Dynamik,
thank you for your suggestion. i tried %I%M%S%3u and it's displaying the time in ms. how do i write this to a file. at the output of the Format Date/Time String, so how do i write this to a file, with each column showing Hours, Minutes, Seconds and ms? is there a way to do this?
thanks
jithendra
02-12-2006 10:44 PM
Hiii, Jithendra,
Here i am attaching the vi for you, in which i vw shown the format for writing the data with the time stamp with the data, select the appropriate file and start the program, that will show you the data with the time stamp in the file.
Thanks,
Nishant
02-13-2006 01:45 AM
02-13-2006 04:02 AM
Hiii, jithendra
Glad to help you, actually i dont have use the TDM file, but i can say one thing, yes if you write the file in the text format, then there will be a problem, but u also can overcome on that, by taking its offset, just check the offset continuosly, when ur offset crosses the mark, it will create a new file of next name, so then it wont be the problem of file size. but by writing through the file format "write to file", it wont increase the speed at all, and you can write the file as per that method, if not happen then tell me again.
Thanks,
Nishant
02-26-2006 10:22 PM