06-22-2006 11:11 AM
06-22-2006 01:38 PM
Hi Lee Jay,
You wrote "In some places I've found that shift registers call the OS memory manager and therefore make time-critical VIs non-deterministic."
Could you please point me to where you found that?
The presense of a SR in code does not make the code deterministic or non. They are simply buffers.
There are both deterministic and non-deterministic operations that can be performed on these buffers.
An example of an operation that CAN be non-determinisitic is "build Array" which will increase the amount of memory required to store the data. If the amount of memory allocated for the buffer is not sufficient to store the data, then the memory manager will be called to increase the buffer size before the updated array is stored away. The call to the memory manager is what is non-deterministic.
An example of an operation that is determinisitic is "Replace array subset". Since the the size of the array does not change, there is no need to allocate more memory so the memory manager is never called.
If you want to determine in the memory manager will be involved in an operation, then you should determine where buffers are being allocated. This can be done using
Tools >>> Advanced >>> Show Buffer Allocation
(In LV 7.1, I have no idea where they hid that for LV8)
I hope that helps,
Ben
06-22-2006 01:55 PM
I think I may have misread the message that led me to think that. Now that I read it again, it doesn't say what I thought it said. However, that message is below:
http://forums.ni.com/ni/board/message?board.id=280&message.id=1690&query.id=58696#M1690
06-22-2006 02:18 PM
I have been developing Rt apps in LV for years.
SR's are a critical part of my TC loops.
There too many issues htat affect determinism to list here and now.
Post your code and we can take a look and may be able to advise. If I have time I'll try to follow-up.
Please post in the earliest version of LV you can. That will maximize the number of people that can help you!
Ben
06-22-2006 02:59 PM
You've answered the question I really asked so, for now, I think I'll go away until I talk to NI and fell like I have my arms around the actual problem.
Thank you again.
Lee Jay
06-23-2006 12:58 AM