08-28-2017 03:41 PM
@ShogunOrta wrote:
my Labview doesn't seem to accept the colons.
Can you explain what this means? What value are you looking at that makes you say this?
08-28-2017 03:59 PM
Here's my code. It's not all of it, but only the code that is ran once the user presses the SAVE button. So, it likely won't work if you try to run it, but you can open it up and see where I'm implementing the Date Time Format coding.
And I mean to say that when I add ":" in the string that represents the file path where the picture is to be saved, the save no longer works. It's as if it doesn't accept the colons. And I basically just wanted to replace the dashes with colons.
08-28-2017 04:15 PM
Yes, I told you in the first response that you wouldn't be able to use a colon in a filename (as have a couple others). For more info on illegal characters in Windows see here.
08-28-2017 04:50 PM
Alright, thanks. But so this doesn't work? %<%m/%d/%Y %I:%M:%S %p>T
I found it in another forum. The OP swears it works for Labview, but it didn't work for me and you pretty much confirm colons are a no-go. Why do I see so many people presenting code with colons in them and it works for them? Maybe do they have an updated version of Labview? I'm running 2015.
08-28-2017 06:10 PM
Those characters just aren't allowed in filenames (like the picture you are trying to save). They are fine to use if you just want the string in LabVIEW, or even as some data in a file, just not as the filename.
08-28-2017 06:30 PM
@ShogunOrta wrote:
Why do I see so many people presenting code with colons in them and it works for them?
Let me try rephrase this in simple terms...
colon in string = good
colon in path = bad
08-28-2017 10:07 PM
@crossrulz wrote:
@ShogunOrta wrote:
Why do I see so many people presenting code with colons in them and it works for them?
Let me try rephrase this in simple terms...
colon in string = good
colon in path = bad
I might recommend joining this meeting to help you get over your loss.
08-29-2017 02:55 AM
@ShogunOrta wrote:
Alright, thanks. But so this doesn't work? %<%m/%d/%Y %I:%M:%S %p>T
I found it in another forum. The OP swears it works for Labview, but it didn't work for me and you pretty much confirm colons are a no-go. Why do I see so many people presenting code with colons in them and it works for them? Maybe do they have an updated version of Labview? I'm running 2015.
Maybe they don't use it as Filenames? Maybe they don't run on windows? If you create a string indicator you'll see that it works perfectly, it's just not allowed in a filename. You can easily test it be trying to rename a file in the Explorer to something including ':'.
/Y