01-22-2007 10:57 AM
01-23-2007 11:15 AM
01-24-2007 03:33 AM
I use two while loop since writing file takes long time. So ı prefer to write firstly to RAM, then ın another loop ı read to file.Is this apporch wrong?
Another point, can you give a comment for real time part? (Network Interrupt time measure file.vi )
01-25-2007 02:09 PM
01-29-2007 03:47 AM
The file[1] vi that you send does not work poperly either.Basically what i need is that i need time information. If you run file[1] vi with different loop rate yot see that time information is affected which should not. Get time vi does not work properly.
I need a way to get absolute time info in RT target.
(I am using labview 8.2)
01-30-2007 11:50 AM - edited 01-30-2007 11:50 AM
Message Edited by NIJanell on 01-30-2007 11:51 AM
01-31-2007 06:30 AM
Just forget about interrupts:)
Main point is that I need to record time information in my computer (OS=Wİndows XP) and in my real time target. Get time vi seems to not work properly.
Say that now time is:31.01.2007 12:13:45:,413 (year,month,day,hour,minute,second,milisecond)
And say that my loop is a timed loop and its period is 1msec. Then ı think that ı should record something as follow:
31.01.2007 12:13:45:,414
31.01.2007 12:13:45:,415
31.01.2007 12:13:45:,416
31.01.2007 12:13:45:,417
31.01.2007 12:13:45:,418
31.01.2007 12:13:45:,419
Am i wrong? But ı record
31.01.2007 12:13:45:,413
31.01.2007 12:13:45:,413
31.01.2007 12:13:45:,413
31.01.2007 12:13:45:,413
31.01.2007 12:13:45:,413
31.01.2007 12:13:45:,413
31.01.2007 12:13:45:,413
31.01.2007 12:13:45:,413
31.01.2007 12:13:45:,429
31.01.2007 12:13:45:,429
31.01.2007 12:13:45:,429
31.01.2007 12:13:45:,429
31.01.2007 12:13:45:,429
31.01.2007 12:13:45:,429
31.01.2007 12:13:45:,429
31.01.2007 12:13:45:,429
31.01.2007 12:13:45:,429
31.01.2007 12:13:45:,429
31.01.2007 12:13:45:,429
31.01.2007 12:13:45:,429
31.01.2007 12:13:45:,429
31.01.2007 12:13:45:,429
31.01.2007 12:13:45:,445
31.01.2007 12:13:45:,445
31.01.2007 12:13:45:,445
31.01.2007 12:13:45:,445
31.01.2007 12:13:45:,445
31.01.2007 12:13:45:,445
I trie first solution mentioned above but it does not work. I can not find the template vi which is stated in second solution. (Perhapse because of the ver of LabView) Can you support another solution for me?
I write many time about my problem but still i can not get an answer:(
01-31-2007 06:51 AM
01-31-2007 08:16 AM
Thank you for your explanation about Windows. I did not now about 16msec resolution .What about RT?
I read messages about this subject. I can not find a satisfactory answer:(
01-31-2007 09:04 AM
Eesen, I had similar issues, but assumed it was because my loop time was faster than 1msec. (ie I thought I was gettting something like 12 loops per msec). If you don't need the speed, you could drop in a "wait for next msec multiple" vi, feed it a 1 as a constant, and that will slow your loop down to around one per five msec. But I digress, My work around is currently the attached PNG file. Do you have a card with a counter? if so you can use the 20Mhz system clock as a source for edge counting and use your counter to keep track of time (note that in my case the counter is only 24 bit, so the output of the DAQmx read was overflowing and thus the need for the case structure in the middle to handle the overflows). This code did not slow down my while loop appreciably. I store the cumulative time (in µs) to my data array (its the blue wire going up out of the PNG).
Issues with this method: 1)20MHz clock has a quality of 100ppm there for the actual clock speed could typically vary between 19998000 and 20002000. 2) I could be accumulating round off error from the use of a real data type after the divide by 20
Anybody spot more issues with my method?