NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Date Custom Data Type

Hi,

 

I am trying to read in a date (mm/dd/yyyy) in string form from a file and then pass that into a LabView VI that uses that date to delete files by. However I cannot find a way to read that date in and store it in TestStand. Is there an easy way to read in the date, store it in a local variable and then pass that variable into my VI which uses it as a Timestamp?

 

Thanks

Chris 

0 Kudos
Message 1 of 4
(3,067 Views)

Hi,

 

you can store the date in a string local variable, or a numeric local variable. (TestStand and LabVIEW do not use the same timing convention (since 1907 vs 1904) as far as I'm aware)

 

regards

Rodéric L
Certified LabVIEW Architect
0 Kudos
Message 2 of 4
(3,066 Views)

I read it in from the file as a string and that is fine it is stored in my local variable correctly but when i try to pass that into teststand in the formal mm/dd/yyyy format it returns a random date usually around 1903

0 Kudos
Message 3 of 4
(3,059 Views)

I think Roderic is trying to get you to do it like this:

 

Read date data in VI

Convert date data to string in VI

Pass string to TestStand

TestStand passes string to another VI

VI converts string to date

CTA, CLA, MTFBWY
0 Kudos
Message 4 of 4
(3,057 Views)