LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

adding time stamp with every element of an 2D array

Solved!
Go to solution

HI

 

   I want to add a real time stamp with every element of a 2d array before writing to a spread sheet. My 2d array consists of amplitude and frequency.

 

kindly guide me how to do this.

 

Best Regards

RASHID

0 Kudos
Message 1 of 7
(4,480 Views)

hi rashid931,

  If your interest is adding the timestamp to every element in a 2d array,then you have to think a 2-d array of clusters,where the cluster contains element and time stamp data...

 

 

 

Thanks and regards,

srikrishnaNF

Regards,
Srikrishna


Message 2 of 7
(4,468 Views)

Hi srikrishnaNF,

 

        Thanks for your both the replies. Can you reply in more details with some example like your other reply.

 

 

Thanks and Regards,

 

Rashid

0 Kudos
Message 3 of 7
(4,460 Views)

Hi Rashid,

 

Did you manage to find a solution to your problem or are you still looking for examples?

 

We did the same thing very recently; reading multiple sensor values and writing the data to different columns in an excel spreadsheet. We created a timestamp and wrote this into it's own column, so that for each sampling interval a new row of data with timestamp would be inserted.

 

If you look at the picture i've attached it should give you a good idea as to what to do. Where I have used string constants in this basic example, you can replace these with whichever data type you wish to log.

 

Regards,

 

Kevin

Message 4 of 7
(4,412 Views)

Hi Kevin,

 

            Thanks a lot for your reply. Can you send me Write File.vi because it will be easy for me to see the things there.

 

Regards,

 

Rashid

 

0 Kudos
Message 5 of 7
(4,391 Views)

Hi Kevin,

 

            Thanks a lot for your reply. Can you send me Write File.vi because it will be easy for me to see the things there.

 

Regards,

 

Rashid

 

0 Kudos
Message 6 of 7
(4,391 Views)
Solution
Accepted by topic author Rashid931

That should be it now.

 

Regards,

 

Kevin

Message 7 of 7
(4,389 Views)