03-30-2023 02:18 AM
la carte c'est plutôt une daqcard6024e.
03-30-2023 02:20 AM
03-30-2023 02:53 AM
attached the zipped file with all the sub-screws including the old ones used for the configuration
03-30-2023 03:52 AM - edited 03-30-2023 04:00 AM
Hi Diallo,
thanks for posting the full code…
@Diallo_td wrote:
When I remove the vi generation from the outputs, I speed up the display but the program does not show me the real signal. I need to speed up the program to make a real time display. There it is really a problem of buffer, I made all that is prescribed in this forum in particular the size of the buffer, the sampling frequency, the number of points, for the moment nothing.
Some observations:
03-30-2023 04:12 AM
In fact, the old program.
there are the old screws in the subroutines for configuration and writing. We changed them to use the ni-daq.
I didn't make the original program, I'm new to labview
03-30-2023 04:15 AM
This VI converts a time so that it can be displayed in hours:minutes:seconds format. Indeed, when converting a time in seconds to the “date/time” format, LABVIEW considers this time as the number of seconds elapsed since January 1, 1970, 0:00 a.m., universal time. However, this time is displayed taking legal time into account (configured in WINDOWS). In other words, in Paris, 0 s will be converted into 1 h 00 min in winter and 2 h 00 min in summer (the date here is not important).
To avoid this, this “excess” number of hours (obtained precisely by converting 0 to the “date/time” format) will be subtracted from our time in order to find 0 h 00 min for a time of 0 s. However this new time will be negative and to be able to be converted, it must be positive. So rather than subtracting 1 h or 2 h, we will add 23 h or 46 h (i.e. 23 h, i.e. 82800 s, multiplied by the number of hours to be subtracted).
This new value should only be used for display purposes as it no longer corresponds to real time in seconds.
03-30-2023 04:25 AM
Hi Diallo,
@Diallo_td wrote:
This VI converts a time so that it can be displayed in hours:minutes:seconds format. Indeed, when converting a time in seconds to the “date/time” format, LABVIEW considers this time as the number of seconds elapsed since January 1, 1970, 0:00 a.m., universal time. However, this time is displayed taking legal time into account (configured in WINDOWS). In other words, in Paris, 0 s will be converted into 1 h 00 min in winter and 2 h 00 min in summer (the date here is not important). To avoid this, this “excess” number of hours (obtained precisely by converting 0 to the “date/time” format) will be subtracted from our time in order to find 0 h 00 min for a time of 0 s. However this new time will be negative and to be able to be converted, it must be positive. So rather than subtracting 1 h or 2 h, we will add 23 h or 46 h (i.e. 23 h, i.e. 82800 s, multiplied by the number of hours to be subtracted). This new value should only be used for display purposes as it no longer corresponds to real time in seconds.
The LabVIEW epoch is 01.01.1904 (12:00 a.m.)!
The whole problem originates from using that old code: by implementing new routines using the LV2009 features you can rather easily correct relative times or handle DST (DaylightSavingsTime)!
That's one reason why I suggested to restart the whole project…
03-30-2023 04:29 AM
restart all project will be very difficult for me, i don't have a lot of time, we must arrange that soon.
I think there are way to arrange that without restarting all the project.
03-30-2023 06:26 AM
Hi Diallo,
@Diallo_td wrote:
I think there are way to arrange that without restarting all the project.
The hard part is to understand
Once you solved both items (with creating good documentation) you may start with changing the VI(s)…
@Diallo_td wrote:
i don't have a lot of time, we must arrange that soon.
Then you better get some co-workers with a lot of experience regarding this measurement setup!
And involving someone with more LabVIEW experience might help, too…
03-30-2023 06:39 AM
In fact this program is a modification of the old one which used the old measurement screws (AI config, Ao config, AO write and read), I think there is a possibility of managing the problem by reworking the output Vis config and output generation. The program is far away, if it's all over again it's going to be something else.