LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Timing column in the write to measurement file

Attached is the vi, which I have been working on for a few days. I have the data which I require and I am writing into an excel file. But I wish to have the timing column in the same file.
In the 'Write to measurement' option, the timing options when checked gives me the sample with respect to the datapoint. Is there a way to get the time from 0.00 in the first data point increasing with dt in each data point till the last sample? Please see attached labview code.

 

Also ^Does Timestamp mean adding a time column in the file?

& In the code I have two sections of my attempts to introduced the time.. 

Thanks,

0 Kudos
Message 1 of 17
(3,474 Views)

Can you post this VI in version 2011..!!


I am not allergic to Kudos, in fact I love Kudos.

 Make your LabVIEW experience more CONVENIENT.


0 Kudos
Message 2 of 17
(3,456 Views)

Hello,

Please see attached.

Thanks,

0 Kudos
Message 3 of 17
(3,454 Views)

Can somebody help me here with this?

0 Kudos
Message 4 of 17
(3,424 Views)

@Jango wrote:

I have the data which I require and I am writing into an excel file (its LVM file, can be opened and viewed in Excel). But I wish to have the timing column in the same file.


Timing column is there in the output file!!

 


@Jango wrote:

In the 'Write to measurement' option, the timing options when checked gives me the sample with respect to the datapoint.


What do you mean by "gives me the sample with respect to the datapoint"???

 


@Jango wrote:

Also ^Does Timestamp mean adding a time column in the file?

& In the code I have two sections of my attempts to introduced the time..


I tried running the second loop (section) with a simulated DAQ device, and attached is the output file... it has the Timestamp column.. and yes Timestamp means to have time column (not necessarily column, just starting time and sample rate will also do)...!!

 

Sub-section.png

 

Output Data (LVM) File

 

 

PS: This forum doesn't allow attaching .LVM file... strange...!!

Error with the attachment.PNG


I am not allergic to Kudos, in fact I love Kudos.

 Make your LabVIEW experience more CONVENIENT.


0 Kudos
Message 5 of 17
(3,407 Views)

I am sorry, I dint mention the Write to measurement file in the above loop. 
That is, the loop which reads the encoder pulse and triggers the Pressure sensor.
(the second 'Write to measurement file' in the code)

 

Thanks,

 

0 Kudos
Message 6 of 17
(3,403 Views)

Hello,

 

Is it that difficult? Can someone help?
I supposed this was simple.. O.o

0 Kudos
Message 7 of 17
(3,377 Views)

Yeah its very difficult, unless query is clear to forum members....!!

 

In your fisrt post:


@Jango wrote:

In the code I have two sections of my attempts to introduced the time.. !!


and I tested and found timestamps is getting recorded in the file...!!

So whats the exact issue are you facing...!!

 

I thought its answered and you dont have time to mark it as a solution....!!Smiley Surprised


I am not allergic to Kudos, in fact I love Kudos.

 Make your LabVIEW experience more CONVENIENT.


0 Kudos
Message 8 of 17
(3,370 Views)

I think I made it clear that I meant the second "write to spreadsheet file" and not the Temperature acquisition loop? I have also attached a screenshot (In the previous post I attached a different snapshot by mistake)
Please look at the screenshot.
The attempts meant the two 'Get Date and time' functions in the while loop. 
I hope It is clear now?

 

 

The second file attached is the output LVM file from the "Write to measurement" which I am getting. I wish to have a time column from 0.000 till the end. (Just like the Temperature loop)

I hope this makes sense now. 😕

Thanks,

Download All
0 Kudos
Message 9 of 17
(3,364 Views)

Chnage the DAQmx Read.vi to acquire "Waveform" instead of "1-D Array"..!!

Waveform preserves the timestamp info with each sample it acquires, which you're missing when set DAQmx Read.vi to acquire "1D DBL".

 

Set to acquire Waveform.PNG


I am not allergic to Kudos, in fact I love Kudos.

 Make your LabVIEW experience more CONVENIENT.


0 Kudos
Message 10 of 17
(3,347 Views)