LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Two data types transferred via DMA FIFO: Hexadecimal and FXP - incorrect decoding at Host side.

Solved!
Go to solution

Thank You Raphael,

Now test phase ...

Best regards

Tomasz

0 Kudos
Message 11 of 12
(430 Views)

Hello Raphschru, 

I'm conducting some test with this code - and I reached soem open questions:

  • In main Loop is timer wait - setuped for 20 ms - why that delay?
  • I setuped Timeout of both Invoke Methods for -1. I don't find good explanation how to calculate this timeout but I wanted to not have delay/ I'm not sure if this is correct approach.
  • I think that a good practice ( in code optimisation point of view)  should be creating producer - consumer pattern with QUEUE and separate decoding, saving and visualizing tasks in consumer loop.  My firsts attempts with QUEUE gave me worse results than reached with actual code - I see some gaps in data - probably because incorrect QUEUE configuration
  • How to configure the queue in this case?
  • Attached are Copy_4 - without QUEUE and Copy_5 - with QUEUE.

With QUEUE I see some gaps in Time records - they should be perfectly straight , linear increasing. There is missing periodically about ~300 ms.

Tom_wolf_0-1708376006022.png

How to prevent this "breach"?

 

Best regards

Tom

Download All
0 Kudos
Message 12 of 12
(399 Views)