04-20-2015 11:48 AM
Also remember that LabVIEW routinely draws a distinction between what a value really is and the way it is displayed to the user. For example, integers can have different radixes, strings have a variety of formats, and timestamps can display 12 or 24 hour clocks -- all without changing the underlying data.
Mike.
04-20-2015 11:59 AM - edited 04-20-2015 12:00 PM
At this point it is a preferences thing, especially since the compiler will optomize away the constants, and addition, but I prefer a single constant, it takes up less space, and my brain is used to seeing times in the HH: MM: SS format.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
17 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord
03-18-2018 08:19 PM
Can you post the vi of this bro?
03-18-2018 08:37 PM
@Stem162 wrote:
Can you post the vi of this bro?
Who are you related to in this thread?
If you are asking Hooovahh, I didn't know he was your brother. His image is even enough to create from scratch. And BONUS, it is a VI snippet which means you can save the image to your hard drive, then drag and drop that into your block diagram.
If someone else in this thread is your brother, than tell us who's VI you want.
03-19-2018 12:19 PM
De he already finished the vi? I just wanna know how he did it and whats the functions are used in creating that vi wherein he use minus and plus to change the timezone
03-26-2018 10:19 AM
If you are referring to someone else let me know. All my VI does is add a value to a time stamp. This is the normal Add function on the functions palette. I dropped down a double constant and right clicked it, then went to Properties then Display Format, and selected Relative Time, then changed to the HH:MM:SS format.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
17 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord
03-26-2018 03:42 PM
Here's a general solution
03-26-2018 03:55 PM
Tried this (I put "Now", from Zone -4 in DST), and when I specified Zone 0, Standard Time, I got 4 hours later (as expected). But when I specified Zone 0, DST, I got really weird values (4:47 PM, 3/26/2018 became 5:47 AM, 10/24/2010). LabVIEW 2016, 32-bit on 64-bit Windows 10. Other Time Zones (than 0) seem to behave OK (didn't test exhaustively). [I'm supposed to be unpacking house-hold items from many boxes, so I'm not going to poke around and try to figure this out right now ...].
Bob Schor
03-27-2018 06:47 AM
@Bob_Schor wrote:
Tried this (I put "Now", from Zone -4 in DST), and when I specified Zone 0, Standard Time, I got 4 hours later (as expected). But when I specified Zone 0, DST, I got really weird values (4:47 PM, 3/26/2018 became 5:47 AM, 10/24/2010). LabVIEW 2016, 32-bit on 64-bit Windows 10. Other Time Zones (than 0) seem to behave OK (didn't test exhaustively). [I'm supposed to be unpacking house-hold items from many boxes, so I'm not going to poke around and try to figure this out right now ...].
Bob Schor
Fixed.
03-27-2018 07:30 AM
Thanks. Sneaky how those Conversions can mess us up at times ...
Bob Schor