04-04-2014 12:57 AM - edited 04-04-2014 01:15 AM
Hello friends,
I've attached a picture of my VI , and the Vi itself (labview 2013), and vi converted to 2011.
I'm Deliberately inserting delay into my loop, so i can see that "wait for next sample clock" - is Late parameter,
returns True.
why does it allways false ?
please help !
04-04-2014 01:04 AM
Can't open your VI here so I'll ask what is probably a silly question- your delay does have a non zero value going in I assume?
By the way, the sequence structure around the case structure is unnecessary, not that it is a problem.
04-04-2014 01:05 AM
Belive me it's not zero
04-04-2014 01:43 AM
Is this a student assignment? Look at the setup of your DAQ and you should be able to answer your own question quickly!
04-04-2014 01:56 AM
04-04-2014 02:03 AM
*HINT* Your first point can't be late-it's before the delay and besides the sample clock only starts at this point. Look at the inputs to your DAQ setup. There are only 3 to consider.
04-04-2014 04:37 AM
04-04-2014 04:46 AM
04-04-2014 05:38 AM - edited 04-04-2014 05:41 AM
In other words, after you have read the single sample you setup the acquisition task to do, the task is fini, terminated, finito and there can be nothing to late anymore.
This looks suspiciously like a task a somewhat sneaky professor might give to his students to test them, which is why I didn't feel like giving the answer right away (which happened to look almost exactly as Gerd formulated it then).
04-04-2014 05:49 AM
"I dont understand why are you giving me hints instead of pointing out the solution."
If the question is amenable to it, I find people gain more from a hint than a fish on a plate- it forces them to engage brain and learn how to solve problems rather than just furnishing the answer in this specific instance.
Those who get enthused and have a crack at it- even if they don't get it straight away- are those who will advance quickly.
Those who just demand the fish are those who I see asking the same basic questions year after year.
Your choice.