From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
11-03-2005 04:16 PM
11-04-2005 12:18 AM
Hi daniel,
It looks like your application is giving least priority to the "get date/time in seconds" function
Probably, it is reporting time only after finishing all other tasks which have a higher priority/criticality.
do others agree?
dev
11-04-2005 05:40 AM
Hi, dev. Thank you for your answer.
About that, should I mention that if I stop my application on the RT and then load and run another small VI, which consists of a single "while" loop with only the "get date/time in seconds" function, even though the time difference does not increase, it remains reading the "late" system time. Apparent synchronization is back only after rebooting.
Curious, isn't?
About priority you are right, the "get date/time in seconds" function is on the low-priority timed loop of my application, but the CPU time usage always keeps around 30% and there are no "late" or discarded frames.
All comments appreciated.
Daniel R.
11-04-2005 05:38 PM
Greetings!
Thanks for the inquiry. This is expected behavior in LabVIEW Real-Time
7.1.1 and earlier. We have taken care of the issue in LabVIEW RT 8.0 which will
release in the near future. LabVIEW 8.0 is out and you could download that to
your computer to get hands on.
http://zone.ni.com/devzone/conceptd.nsf/webmain/a312b731d7ce143d8625708b0070c71b
Thanks much and hope this helps
Best regards
Avi Harjani
11-07-2005 05:30 AM
11-07-2005 11:27 AM
11-07-2005 11:37 AM
11-07-2005 01:29 PM
11-08-2005 03:37 PM
11-09-2005 06:16 AM
Hi, everybody. From your comments and a similar thread I found ( http://forums.ni.com/ni/board/message?board.id=280&message.id=804&requireLogin=False ), I've come to a workaround that works fine for me on a PXI controller. It just needs to be run at the start of the application, when the "Get date/time in seconds" is still supposed to read a decent timestamp and then it gives a "correct" timestamp from the reading of the processor counter.
Note that it will work fine even if the application is stopped and then run again. As it works as a buffer, it cannot be reentrant.
In my application I don't make an intensive use of it and it works fine, but I really don't know if it could cause priority inversion when used intensively on a low-priority thread, since I don't really know how this DLL calls work.
Well folks, thank you all.
Daniel