11-14-2006 03:04 PM
11-16-2006 07:03 AM
11-16-2006 08:27 AM
Sorry, I can't look at the LV code from my network PC so I can only offer some generic comments / guesses.
Assumption 1: Simulink graph is based purely on a theoretical simulation model allowing an arbitrarily small timeslice for integration, not on an actual hardware implementation. LabVIEW graph is based on an actual hardware implementation, generating and monitoring real-world electrons.
General comment: you can't rely on a real-world control algorithm with a fairly coarse timeslice running non-deterministically under Windows to perfectly match a theoretical model. Sometimes you can get a really good match almost all the time, but ultimately there are limits.
Offhand, I would guess there are some ways to increase your typical LabVIEW loop rate *and* keep it pretty consistent without sending everything into "slow motion." I wouldn't normally consider a 10 msec loop time to be very fast for bang-bang (ON/OFF) control. I'll try to look at the code when I get a chance. A first wild guess is that you might be reconfiguring your DAQ tasks on every loop iteration? If so, that isn't necessary and is definitely a bad idea for a control loop.
Of course, this is just guessing until I see the code so I'll shut up now...
-Kevin P.
11-16-2006 09:46 AM
11-16-2006 10:22 AM - edited 11-16-2006 10:22 AM
Message Edited by CedricVH on 11-16-2006 10:22 AM