LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Write Time channel to diadem

Hi, I have an application that acquire numeric data from cFP. These data goes to DIAdem like an numeric array. There's a way to add the date of the acquisitions to this numeric array?
0 Kudos
Message 1 of 6
(3,029 Views)
Hello,

DIAdem has a built in "time" type. You can easily create a time channel (including information about the date) in DIAdem. Go to the "DIAdem Analysis" window by clicking on the Analysis button on the left. Click on the "Mathematical Functions" button (the first from the top) on the left side of the Analysis window. Select "Generate time channel", the last icon. You can specify a start time, time unit, time step, and end time. If you know this information, and timing is uniform (difference between each element is the same), creating the channel like this in DIAdem is probably the easiest thing to do. If the timing is not uniform, you will have to create the time channel yourself and read it into DIAdem (you could construct it piece by piece in DIAdem also, but that probably would not be as efficient). Hope this information helps. Take care!


Regards,

Aaron B.
National Instruments
0 Kudos
Message 2 of 6
(3,011 Views)
Hi Aaron,

The timing isn't uniform. Do I need to creat it in LabVIEW?
0 Kudos
Message 3 of 6
(3,003 Views)
Hi,

You do not have to construct it in LabVIEW, but that is probably going to be the best place to do it. Every time you acquire a new measurement point, also store the date/time info in a second channel such that for every measurement point, there is a corresponding date/time stamp. The other option is to do the same thing in DIAdem. But either way, you are going to have to somehow access date/time information from the application environment that takes the measurements.


Regards,

Aaron B.
National Instruments
0 Kudos
Message 4 of 6
(2,995 Views)
HI Aaron, I could acquire the time in seconds and append it to the file. But these time data appear like a number sequence in DIAdem. How can I make it appear like the date/time format?
0 Kudos
Message 5 of 6
(2,994 Views)
Hi,

There are a number of VIs in the Time & Dialog Palette that will return a time stamp. You can also format the time into a string using the string conversion VIs. A good example can be found in the Example Finder (Help >> Find Examples...). Navigate to Fundamentals >> Time and Date.


Regards,


Aaron B.
National Instruments
0 Kudos
Message 6 of 6
(2,987 Views)