LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Data logging time stamp incorrect

Solved!
Go to solution

I am having an issue changing the time stamp when data logging to excel. It seems every time I try to set time to "now" labview freezes up. I can add the time stamp later but I would like to know if anyone is having this issue.

0 Kudos
Message 1 of 8
(1,219 Views)

Difficult to tell the cause without seeing the code. 

Attach your VI and people can debug for you.

0 Kudos
Message 2 of 8
(1,218 Views)

Here is the pic of the code. If I try to change the date settings of the set Dynamic Attributes, that's when it freezes up. I can still move thing around in LabView but I cannot close down the window that sets the attribute settings at all. I let run for about 15 minutes figuring it was just slow but that wasnt the case.

0 Kudos
Message 3 of 8
(1,184 Views)
0 Kudos
Message 4 of 8
(1,180 Views)

Here is the image of the date stamp that I cannot change for some reason. It starts with the correct date then goes back to a default.

0 Kudos
Message 5 of 8
(1,160 Views)

Here is the window that causes it freeze, "Only if I try to do anything with the date settings" .

0 Kudos
Message 6 of 8
(1,159 Views)
Solution
Accepted by topic author BrianVod

When you select the "Timestamp" checkbox in the "Configure Set Dynamic Data Attributes" window then it will add a timestamp input to the "Set Dynamic Data Attributes" function. You can use the "Get Date/Time in Seconds" primitive to get the timestamp.

 

Right now you are including the timestamp in the data but because you aren't giving the function a timestamp each iteration it's just using the default value.

Matt J | National Instruments | CLA
0 Kudos
Message 7 of 8
(1,134 Views)

Yes sir that did the the trick.

Thank you very much!

0 Kudos
Message 8 of 8
(1,126 Views)