annulla
Visualizzazione dei risultati per 
Cerca invece 
Intendevi 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 Kudos
Messaggio 1 di 7
3.429Visualizzazioni

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

Messaggio 2 di 7
3.411Visualizzazioni
excelent! thank you very much!
0 Kudos
Messaggio 3 di 7
3.400Visualizzazioni

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."
Messaggio 4 di 7
3.392Visualizzazioni
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 Lingua

Glad its working now...

Messaggio 5 di 7
3.380Visualizzazioni
Thank you, but the previous method is simpler but still meets my needs.
0 Kudos
Messaggio 6 di 7
3.380Visualizzazioni
well, if you like my answer then some stars would make a nice early Easter present Smiley Strizza l'occhio
Messaggio 7 di 7
3.376Visualizzazioni