From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
02-02-2015 04:20 PM
Hello,
I am trying to send the date and time to an excel sheet in another row. How do I do that? I have a screen shot of what I have done.
02-02-2015 04:31 PM
First off, you're writing to a delimited text file, not an Excel sheet. If you want to write to an Excel sheet, look at ActiveX and some of the other forum postings on Excel.
If you're sticking with delimited text, insertion is not an easy option. You probably do better assembling your array in LabVIEW and then performing a single Write to Spreadsheet call when your array is arranged the way you want it.
02-02-2015 05:16 PM
02-03-2015 08:39 AM
Please learn about Snippets (open LabVIEW, go to Edit Menu, notice "Create VI Snippet from Selection") which lets you create an "Executable Image of LabVIEW code" that you can paste into your post directly.
BS
02-03-2015 11:37 AM
Im having trouble writing the date and time to array. How do you convert the date string into a numeric?
02-03-2015 11:39 AM
02-03-2015 12:13 PM
I have my wireless node connected to a build array. I want to connect Get Date/Time String to the build array. The error I am getting says "You have connected two terminals of different types. They type of the source is string. The type of the sink is single [32-bit real (~ 6 bit precision)" I figure if I convert this string to a numeric, then it will be able to connecto to build array. The build array is outputting to Write to Spreadsheet File.
02-03-2015 12:26 PM - edited 02-03-2015 12:33 PM
Do it like this, do not just write the LabVIEW time string to Excel in a string array. You will be sorry sometime down the road when you find you can not format the time column in your data file.
You may have to adjust the conversion for your time zone.
Don't be confused by the results (a strange looking number) that is what an unformatted time stamp looks like.
You can use Excel to format the column into any Excel time or date format.
02-03-2015 01:12 PM
Here's the VI and another one that adds in writing to a file.
02-03-2015 01:23 PM