キャンセル
次の結果を表示 
次の代わりに検索 
もしかして: 

LAbView timestamp format conversion

解決済み
解決策を見る

Hi

Got your contact from your post in community.

I need your help in converting the time stamp format of LABVIEW. I am right now getting the data in seconds elapsed w.r.t 1904 (e.g. 3576256122.245), but I need to convert this time stamp format to YYYY/MM/DD Hr:Min:Sec.milisec.

Would like to request, if you can suggest me something on this.

Regards

Hardeep

University of Michigan 

0 件の賞賛
メッセージ1/6
8,984件の閲覧回数
解決策
トピック作成者Hardeepが受理

In the "Timing" folder under the "Functions" pull down on the diagram page there is a function called Format Date/Time String that will convert the timestamp to a string defined by a configuration number

Putnam
Certified LabVIEW Developer

Senior Test Engineer North Shore Technology, Inc.
Currently using LV 2012-LabVIEW 2018, RT8.5


LabVIEW Champion



メッセージ2/6
8,973件の閲覧回数

Hi

Thanks for your reply.

0 件の賞賛
メッセージ3/6
8,968件の閲覧回数

@LV_Pro Do you have any example code for this ? As I am new to LAbView, this will help me.

0 件の賞賛
メッセージ4/6
8,961件の閲覧回数

Hi Hardeep,

 

you could go with FormatIntoString like this:

check.png

(In my experience people most often need more string formatting than just a timestamp so you could easily add more inputs to this function!)

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
メッセージ5/6
8,911件の閲覧回数

Thanks GerdW

0 件の賞賛
メッセージ6/6
8,902件の閲覧回数