01-10-2007 11:49 AM - edited 01-10-2007 11:49 AM
Message Edited by CHKDSK on 01-10-2007 11:50 AM
Message Edited by CHKDSK on 01-10-2007 11:51 AM
01-10-2007 11:57 AM - edited 01-10-2007 11:57 AM
Message Edited by altenbach on 01-10-2007 09:59 AM
01-10-2007 12:02 PM
To add to Altenbach's questions:
Can you explain what you are trying to achieve?
01-10-2007 12:46 PM
01-11-2007 07:16 AM
Hi CHKDSK,
What Altenbach is referring to with a R.T. Box is a computing device (often single board computer) that supports Real-Time Operating Systems (RTOS). I think the confusion may have come from the title of this thread "real time: timed loop vs while loop". Unfortunately, Windoze is not the best OS to guarantee precise timing of events, as it prefers sending messages to home base telling it what you are doing and with what SW, rather than doing it's tasks. I did see recent postings (on some other forum) on how to set the priority of Windoze-specific tasks within the Registry.
Can you show or post the loop section of your code?
On a side note.. Your PC should be more than adequate for the job. May I ask what Motherboard you are using, if it is a Clone. I also have a 2.8GHZ PC with an ASUS P4P88Del board which has given me performance issues since day-one. It runs Win-2k. My other PC's (2.4G, 1.8G & 3.4G) all run as expected.
Are you using "Wait Until Next ms Multiple" to adjust to deltas in time to process the loops?
01-12-2007 05:01 AM
01-12-2007 08:06 AM
01-12-2007 12:21 PM - edited 01-12-2007 12:21 PM
I agree with everything Lynn said.
You are building two arrays of clusters and the only way to reset the size is a manual control. This means that an unattended program will grow without bounds and will consume all memory at one point in the future. Even stopping and restarting the program will not clear the shift registers, since they are not initialized.
I don't see anything that determines the speed of the loop.
Here's a simple wiring suggestion. If you replace only one single element in a cluster, you don't need to rewire all elements as you always do. The picture shows three different ways.

A: Your method
B: Your method simplified...
C: Using "bundle by name". This is preferred because it is self-documenting and compact.
Imagine your cluster has 50 elements. Only C would be reasonable.
Message Edited by altenbach on 01-12-2007 10:23 AM