04-29-2008 02:43 AM
04-29-2008 03:16 AM
04-29-2008 09:16 AM
This sounds more like you need to implement a kind of oversampling for your incomming message? Your message comes every 16 ms but you would like to have a message every 5 ms? Is that because you need to execute the loop every 5 ms and you allways get a zero if you read to fast?
As mentioned by JB you could use the wait but that would block your loop from executing and it would run every 16 ms instead of 5 ms.
Instead you could run your loop in 5 ms cycle and use the get property "entries pending" to check every 5 ms for a message. If the message is there then receive it and update your UI, if not use the last value again.
see the attached VI .
DirkW