ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Write multiple devices data into columns

Solved!
Go to solution

Hi, I have a problem in writing data from 2 devices that i currently have (for pressure and temperature). I wanted it to be written in 2 coloums, one for temperature and one for pressure for each data produced. What i currently have is that the data written in rows. Please help me on this.

 

Also, i put the time stamp, but the time only come out on the data as hh/mm/ss. would it possible to produce the time as in the graph, which is written as hh/mm/ssssss (in microsecond)

 

I have attached my labview program, and also the current save file that i get, and also the required format that i really want.

 

Thanks

 

Download All
0 Kudos
Message 1 of 3
(2,441 Views)
Solution
Accepted by topic author Meor

Hello

 

1. Use a transpose 2D array function, before you write the array to 'Array to Spreadsheet' function.

 

2. Use the correct time format to the Format Datae/Time string function. Use the Help provided for this function, to get the date and time format you need

 

3. The wiring is not good. Your 'open file' function is placed somewhere after the write to file case structure. follow data flow.

advice: you can consize your block diagram and place your functions and blocks in an order, wire them neater.

 

 

Regards
Freelance_LV
TestAutomation Consultant
0 Kudos
Message 2 of 3
(2,435 Views)

Hi That wasa working well. However, The other problem arise which:

 

1) 1Sample100hz: it writes all the time the data taken
2) however, if i asked for 10 samples or more, only one time stamp created for the whole sample. The problem is that i need to produce each measurement with each time sample. would it possible to do this in labview?

 

 

Download All
0 Kudos
Message 3 of 3
(2,419 Views)