取消
显示结果 
搜索替代 
您的意思是: 

Unable to fetch Date and Time

已解决!
转到解答

In my application, I am using Get date and Time function. If I run through source code (VI), it is working correctly. If I create .exe, it is not working correctly. Sometimes it shows universal default date (year-1904). Sometimes it is showing future date (year-2040).
 
What could be the issue and How to solve this issue?

 

My PC configurations:

Windows XP 32-bit OS

LabVIEW 2015

0 项奖励
1 条消息(共 13 条)
5,505 次查看

In my application, I am using Get date and Time function. If I run through source code (VI), it is working correctly. If I create .exe, it is not working correctly. Sometimes it shows universal default date (year-1904). Sometimes it is showing future date (year-2040).

 

What could be the issue and How to solve this issue?

0 项奖励
2 条消息(共 13 条)
5,509 次查看

My PC configurations:

Windows XP 32-bit OS

LabVIEW 2015

0 项奖励
3 条消息(共 13 条)
5,507 次查看

Sounds like some sort of formatting problem that somehow is related to the target you're executing on/in.

 

Can you upload some code so we could check what might be going on?


GCentral
0 项奖励
4 条消息(共 13 条)
5,474 次查看

Let's keep this question to one thread 🙂

 

Other thread is located here: https://forums.ni.com/t5/LabVIEW/Unable-to-fetch-Date-and-Time/m-p/3932775/


GCentral
0 项奖励
5 条消息(共 13 条)
5,471 次查看

I've used various LabVIEW Date and Time functions with multiple versions of LabVIEW (all 32-bit) from LabVIEW 7.0 through LabVIEW 2018, saving dates in files (or sometimes as parts of file names) on Windows XP, 7, 8, and 10.  I've never encountered a problem when running a "built" (.exe) version of any of my programs.

 

It seems to me highly unlikely that LabVIEW is at fault here, and much more likely that something is amiss in your LabVIEW installation.  Could you please produce a LabVIEW program that demonstrates problems saving dates in an Application and post it to this Forum?  We will examine the code and try running it ourselves and help you to "fix" (or at least understand) what, if anything, is the problem.

 

Bob Schor

0 项奖励
6 条消息(共 13 条)
5,442 次查看

We need to see some code. Is your time indicator connected directly to the function output or are you shuffling it across using locals and value properties?

Windows XP is very old. Is the computer clock correct? Is the bios battery still good?

 

Also note that your windows XP needs to be SP3 to support LabVIEW 2015. Is it updated?

0 项奖励
7 条消息(共 13 条)
5,440 次查看

Code is a simple VI. It is working correctly as vi and not working correctly as exe.

I have re installed OS and LabVIEW also. 

Computer: PXI-8115

0 项奖励
8 条消息(共 13 条)
5,393 次查看

@phoenix-karthik wrote:

Code is a simple VI.


The problem must be simple then... The problem is between the upper left and the bottom right, probably.

9 条消息(共 13 条)
5,385 次查看

You've made two posts (this is called a "Cross-Post", and is frowned upon) and have been asked at least 3 times to post your code, but you still haven't done so.  You'd think we'd learn our lesson and stop trying to help you (because you refuse to help us to help you ...).

 

Bob Schor

0 项奖励
10 条消息(共 13 条)
5,367 次查看