04-04-2025 02:27 PM
I would like to add a program to the attached program to retrieve binary data.
The number of data being read from the FIFO is 198 x 256 x 256 = 12976128. I want to get this data as an array as binary data.
Thank you in advance for your help.
04-04-2025 02:31 PM
添付したプログラムに、バイナリデータを取得するプログラムを追加したいです。
FIFOから読み取っているデータ数は198×256×256=12976128です。
このデータを配列としてバイナリデータとして取得したいです。
よろしくお願いいたします。
04-04-2025 09:17 PM
I'm still very confused about what hardware you are using. Do you really have an FPGA that can save all those images? Why/how are you using the FPGA?
I'm assuming that you are saving the 3D data (the first dimension being X, the second Y, and the third Image # (or Z), with indexing on alternate X and Y possibly alternating (increasing/decreasing), the first thing to do is to transform the linear scan to a 3D (XY images x Image # = video) representation that you should be able to view in an IMAQdx Window display. You'll read the data in 256 pixels-at-a-time, reversing every other scan (assuming you are using a "back-and-forth" scanning motion (and possibly also "flipping" every other 256 x 256 images, if you not only scanned left-rignt but also down-up Y scannng). Juat read the image data 256 elements at a time and with the same logic that you used to run the scan, use it to reassemble the video images.
Bob Schor
04-05-2025 12:22 PM
I computers, everything is "binary" one way or another, so you need to be much more specific.
Most of your code is highly disorganized and flawed. For example connecting a local variable to its own terminal is completely senseless. Then you have plenty of interactive greedy loops. Who wrote this? Does it work well?
04-08-2025 02:05 AM
This program was written by a senior who was in the lab four years ago. I have taken it over, but I do not understand it in some parts.
I will post a more specific explanation later.
Thank you in advance for your help.
04-08-2025 02:11 AM
I am using NI PXIe-8840 for FPGA processing.
I will explain the details of how I use FPGAs later.
Thank you in advance.
04-08-2025 03:36 AM
Hi Ikeda,
@ikeda_kaoru wrote:
I am using NI PXIe-8840 for FPGA processing.
The PXIe-8840 is an older CPU/controller, no longer available from NI!
It has NOTHING to do with "FPGA processing" at all…
@ikeda_kaoru wrote:
I will explain the details of how I use FPGAs later.
Please do so…