Signal Conditioning

cancel
Showing results for 
Search instead for 
Did you mean: 

center of pressure graph

Lynn,

 

Thank you for the help! I actually have another question, right know I wonder if I can insert a time stamp in the code some where, I heard I can put a time stamp into a array or somthing. I'm assuming I have to put that into the GET DATA VI, but I'm not really sure, or I might just be wrong.

 

Thank you,

 

CKH

0 Kudos
Message 11 of 16
(3,003 Views)

CKH,

 

You could put it inside the GET DATA VI, but if you ever get an update from the vendor, then it will be broken.  Grabbing a timestamp immediately after GET DATA returns will result in a slight delay between the acquisition and the timestamp, but not much more than actually putting it in the subVI. I would probably do it in your VI.  If you need tighter timing than that, you would need to get the vendor to include timestamping in the .dll.

 

Lynn

0 Kudos
Message 12 of 16
(2,996 Views)

Lynn,

 

I don't think I will get any update from the vendor anytime soon, so I should be ok at this point. I'm trying to find what icon(vi) I should use for the timestamp, but when I put that inside GET DATA vi, I always broke the code. I believe I might use the wrong item.

 

Thank you,

 

CKH

0 Kudos
Message 13 of 16
(2,990 Views)

CKH,

 

I do recommend that once you change the VI from the vendor, that you save it with a new name (GET DATA_2) so that if you ever do get an update, you will not have it overwritten by default.

 

There are two functions which are used for timestamps.  The Get Date/Time in Seconds returns a timestamp datatype (containing two 64-bit integers representing the number of seconds since 1/1/1904).  The other is Tick Count, which returns the number of milliseconds since the computer was last rebooted.  Get Date/Time is un-ambiguous but can have issues related to daylight savings time and adjustments of the computer clock by network time servers.  Tick count is a U32 integer which will rollover after about 49 days if the computer runs that long without rebooting.  Its accuracy is not particularly good.  So the choice of time stamp method depends on what you will be doing with the information.

 

Lynn

0 Kudos
Message 14 of 16
(2,985 Views)

Lynn,

 

I've decided to use Get Date/Time in seconds vi. I put that vi with current time indicator, then I ran the program, the timestap did not show in my saved file. I wonder if I miss placed the vi or since the default channels are 8 channels, I might have to insert one more channel for time? So, I tried to add one channel by replace that 8 by 9, nothing change, timestamp still not show up. I guess I must miss placed the vi somehow.

 

Thank you,

 

CKH

0 Kudos
Message 15 of 16
(2,976 Views)

CKH,

 

None of the code you have shown has any save to file functions.  I do not know how the data gets from GET DATA VI to the file.

 

Just adding a time function and Timestamp indicator to the VI does not save the data to the file. You need to do at least two more things: 1) Connect the timestamp indicator to the connector pane of the subVI. 2) Wire the timestamp output of the subVI to the file save.  The details of how to do this depend on which file functions you are using and how the data is formatted in the file.

 

Lynn

0 Kudos
Message 16 of 16
(2,965 Views)