LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how i configuring a waveform graph for that in the Time (X-axis) appear the time zone configured for the computer?

CORDIAL SALUDO,
ESTOY ADQUIRIENDO SEÑALES DE TENSION Y DE CORRIENTE DE UN SISTEMA FOTOVOLTAICO Y NECESITO GRAFICAR DICHAS SEÑALES CONTRA EL TIEMPO LOCAL DE MI COMPUTADOR EN EL EJE DE LAS "X" , PARA LA CUAL SELECCIONO EL MENU PROPERTIES DE LOS WAVEFORM GRAPHS, LUEGO SELECCIONO FORMAT AND PRECISION Y LUEGO EN EL EJE DE LAS X SELECCIONO ABSOLUTE TIME, PERO EL PROBLEMA ES QUE CUANDO HAGO LA ADQUISICION ESE TIEMPO EN EL EJE DE LAS X NO ES EL TIEMPO VERDADERO CONFIGURADO EN MI COMPUTADOR. ¿ COMO CONFIGURO LOS GRAPHS PARA QUE EL ABSOLUTE TIME EN EL EJE DE LAS X SEA EL MISMO DE LA HORA LOCAL CONFIGURADA EN MI COMPUTADOR??.

GRACIAS!
0 Kudos
Message 1 of 4
(2,925 Views)
I found two possible solutions

1 (free but probably time consuming)
you can use advapi32.dll to call the registry value at HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Time Zones. Refer to Microsoft knowledge base at http://support.microsoft.com/kb/221542#kb2

2 ($10)
I found another .dll at http://www.vcomsoft.com/infopage/UTIMEcLIB.html (not an endorsement, I just did a google search) that seems to easily provide pull in that time zone for you.

Seems to me that if there is any dollar value on your time, you should drop a couple bucks and save some time, but it is up to you. In either case, simply do a dll call (or several for the first case) and you can get your system time zone.

Hope this helps.
0 Kudos
Message 2 of 4
(2,913 Views)
One addition in case that did not completely answer your question. Once you get your current time zone, you can manipulate the titles of your axis with a property node. X Scale > Name Label > Text
0 Kudos
Message 3 of 4
(2,909 Views)
Hola Andres.
Basicamente, hay 2 maneras de hacer lo que tu quieres
La mas sencilla ( mira el doc asociado) es construirte una waveform con t0 como hora del pc y dt el adecuado a la velocidad de adquisicion de datos. No olvides desmarcar en el grafico la opcion "ignore timestamp" para que te presente la hora por defecto.

Tambien puedes usar la opcion de tiempo absoluto, en cuyo caso tienes que cablear el t0 convertido a DBL a un property node del eje x "Offset" y el dt a "increment"

Espero que te sirva. Si tienes dudas, pon tu vi aqui y le echare una ojeada.

Saludos
Alipio
---------------------------------------------------------
"Qod natura non dat, Salmantica non praestat"
---------------------------------------------------------
0 Kudos
Message 4 of 4
(2,905 Views)