08-02-2010 11:18 AM
I tried to use for loop to control the numbers of iteration (vi in the attachment). The same problem still exists. It didn't sample at 100Hz but 20Hz. Should I used some other functions instead of wait until next ms function? Or there is some other problems cause this problem?
Thank you very much!
08-02-2010 11:46 AM
@masterwho wrote:
Thanks for the reply. When I tried to move the obtain queue function out of the loops, the element data type cannot be matched. The type inside the loop is 1-D array, while the type outside the loop is 2-D array. How can I make them be the same type?
Thanks a lot!
When you move the obtain queue outside the loop, you need to wire in a 1D array constant to the element data type input of hte obtain queue. Then wire the queue out to the lossy enqueue queue input. Then wire that queue out to the right edge of the loops, being sure to disable indexing (right click on the tunnel and select disable indexing). Wire that to a release queue function.
I see an enqueue function but I don't see a dequeue function. Am I blind?
08-02-2010 11:49 AM
@masterwho wrote:
I tried to use for loop to control the numbers of iteration (vi in the attachment). The same problem still exists. It didn't sample at 100Hz but 20Hz. Should I used some other functions instead of wait until next ms function? Or there is some other problems cause this problem?
Thank you very much!
You are using the Wait Until Next Ms Multiple function. Try the plain ole Wait (ms) function instead. If you read the help on the multiple function, you will see the difference between it and the regular wait function.