annuler
Affichage des résultats de 
Rechercher plutôt 
Vouliez-vous dire : 

computer time

I would like the ability to set the current date and time programatically, without having to restart or anything strange like that. I've serached the forum, and found several copies of a vi call "Set_Time.vi", but unfortunately it is saved in 7.0, and i'm using 6.1.
 
any thoughts?
0 Compliments
Message 1 sur 7
3 419 Visites

If you are feeling brave you can try the using the Win32 function SetSystemTime in the kernel32.dll

However, an easier way would be to use the System Exec VI with time parameter





Message Edited by nrp on 04-05-2007 04:03 PM

Message 2 sur 7
3 401 Visites
excelent! thank you very much!
0 Compliments
Message 3 sur 7
3 390 Visites

BobChuck wrote:
I would like the ability to set the current date and time programatically, ... but unfortunately it is saved in 7.0, and i'm using 6.1.
 
any thoughts?

Alternatively, there is a v6.0 VI by Jim Kring here .
=====================================================
Fading out. " ... J. Arthur Rank on gong."
Message 4 sur 7
3 382 Visites
Ah, I tried to do something similar to Jims, but it kept on crashing my LV.

Now I know why, I had the calling convention set to C instead of stdcall! Smiley tirant la langue

Glad its working now...

Message 5 sur 7
3 370 Visites
Thank you, but the previous method is simpler but still meets my needs.
0 Compliments
Message 6 sur 7
3 370 Visites
well, if you like my answer then some stars would make a nice early Easter present Smiley clignant de l'œil
Message 7 sur 7
3 366 Visites