LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

LabVIEW RT, Timed loop, finished late, Call by reference

Ben wrote:

I suspect Waldemar will reply... eventually.

 

Not eventually.

 

I made some more tests today. And it is reproducible that the "skip" attribute is causing the problem when not set.

 

"Merge Errors" is used in a lot  of places in the code. It could happen that a non-real-time  VI will call it and a real-time VI will call it too. It could happen at the same time since we are on a dual core system.

I don't think we have large arrays for ME to process. I don't expect we have more than 6 clusters to merge.

 

From my second post you can see that memory allocation isn't related to the finished late problem. I traced memory allocation but a change was never in the same or one before or after that iteration as a finished late.

 

The only thing is the nearly constant time when it happens. This makes me really wonder what's going on behind the scene.

Waldemar

Using 7.1.1, 8.5.1, 8.6.1, 2009 on XP and RT
Don't forget to give Kudos to good answers and/or questions
Message 11 of 13
(1,008 Views)

How about changing the ME to re-entrant so there is a unique instance used in the code you showed us?

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 12 of 13
(1,001 Views)

Hi Ben,

 

I don't like to change ME in that way because it will be overwriten by any Service Pack or Fixpack update. I know all or most of the DAQmx VIs are set as re-entrant.

 

Today I worked on another story:

The DAQmx task which provides the clock for the timed loop stops suddenly and the timed loop won't run anymore. I don't know if this task interferes with the other tasks on the same PXI-6259 card running in normal priority in another loop.

Waldemar

Using 7.1.1, 8.5.1, 8.6.1, 2009 on XP and RT
Don't forget to give Kudos to good answers and/or questions
0 Kudos
Message 13 of 13
(979 Views)