nguyenbaotrung555 Posted November 8, 2013 Share Posted November 8, 2013 I live in Viet Nam, so i use day and time dd/mm/yyyy, hh:mm:ss. DAQ is mm/dd/yyyy, tell me how to change it? Link to comment Share on other sites More sharing options...
AzeoTech Posted November 8, 2013 Share Posted November 8, 2013 Where does it show mm/dd/yy? The channel table shows YMD, and graphs show D DoW Month YYYY. If you use formatDate() it should use your system locale, or use formatdatetime("%c",systime()). You can always format the way you want using formatdatetime(). Link to comment Share on other sites More sharing options...
nguyenbaotrung555 Posted November 10, 2013 Author Share Posted November 10, 2013 I show it at "Alarms" . When i create one alarm set. I want to show time and day error. FormatDateTime("%c",Alarm.GreaterThen.TimeFired) My computer was format dd/mm/yyyy. but Alarm of DAQ is mm/dd/yyyy ? I can't fix it ! Link to comment Share on other sites More sharing options...
AzeoTech Posted November 12, 2013 Share Posted November 12, 2013 %c uses the system locale settings. So, go to Windows Control Panel and change the Region and Language settings to display it properly. Alternatively, use the other specifiers, for example: formatDateTime("%d/%m/%Y", Alarm.GreaterThen.TimeFired) BTW: I think you want "GreaterThan". "Then" is used after "if", such as "if x then y" and is followed by an action. "Than" refers to something, x is greater than y, and is followed by an object (or number). Link to comment Share on other sites More sharing options...
EOlsen Posted April 10, 2014 Share Posted April 10, 2014 FormatDateTime() function is crashing DAQFactory. At the command prompt if I type: ? FormatDateTime("%Y-%m-%d %H:%M:%S", SysTime()) is crashing DAQFactory. Is this a bug or is my syntax wrong? Link to comment Share on other sites More sharing options...
AzeoTech Posted April 10, 2014 Share Posted April 10, 2014 Works perfectly for me. Maybe a fluke? Try from a blank document. I tried both 5.90 and 5.87a Link to comment Share on other sites More sharing options...
EOlsen Posted April 10, 2014 Share Posted April 10, 2014 Ok, strange. Restarted my PC and DAQFactory. Opened new document and works ok. Opened my old document and it is working there as well now. Yesterday I had restarted DAQFactory several times and each time this command crashed DAQFactory. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.