ni.com is currently experiencing unexpected issues.
Some services may be unavailable at this time.
03-14-2007 07:37 PM
Hi,
When outputting our bin files from the NI-5431, we are seeing flashes of flickering colour underneath the lines we are updating from the NI-5431.
We are viewing the composite video off the 'Video Out' BNC terminal. The system is 75 ohm balanced.
We are currently outputting either M-NTSC or Standard PAL footage from the NI-5431, using bin files we compiled from BMPs, at the required format resolution.
The bin files contain a constant background, with icons which fade in and out, along with a time-code which changes every frame.
We update the NI-5431 with a background image on the first frame, then update only the icons which fade in and out, along with the time-code for about 72 frames.
Our ultimate goal was to produce a scrolling time code of the greatest length possible. We were only able to fit 73 Frames of footage into the NI-5431, before it reached its memory limit.
From my personal viewing of the footage, I have seen that on the first frame of the recorded footage, the effect of the flicker underneath the footage seems reduced on the first frame, but every frame after that, it seems constant.
We have tried downloading slightly different lines to the card, and this caused the flickering section to move on the screen.
It seems to move to random spots, like to the top of the screen if you just shift one field lines up by 1.
We have tried different interleaving between odd and even fields, but the combination we have provided is the best solution we could produce.
An example of the VIs are attached..
Thanks!
Solved! Go to Solution.
03-14-2007 10:36 PM
03-19-2007 06:55 PM
03-29-2007 07:17 PM
Hi Jerry,
We managed to implement your suggestion in the end, with success! Here is the fallout:
It made sense why the NTSC files are 2,671,200 bytes ( 2 Frames per File x 525 Lines x 1272 Samples per Line x 2 Bytes per sample = 2671200 bytes), and why the PAL bin files are 6,400,000 bytes. ( 4 Frames per File x 625 Lines x 1280 Samples per Line x 2 Bytes per sample = 6,400,000 bytes)
We have created a few new VIs to make the code more readable from the point of frames and lines in the binary files. Now, all we do is feed in the
and the VI will provide us the Samples and Offset required to read from the Bin files to create a segment. This VI also allows us to keep track of the number of Bytes used in memory so we can tell how much memory we have used.
Basically now we have created 9 Segments to complete the first 2 frames:
= 2 Complete Frames (Odd and Even Fields)
We then use the Waveform Handles created by the NI-FGEN VIs to reuse Segments 1, 3, 5, 7, 9 (to save on memory in the NI-5431), while creating new segments for odd and even fields for the updated Time Code Lines from BMP Files 3-64.
We have reduced our number of frames slighly, due to the added number of segments we have to replay (Max. ~294)
Memory in the NI-5431 was not an issue with NTSC.
We have also modified our PAL code to use the 2nd, 3rd and 4th frames in the PAL footage to remove the flicker. We used the same process as the NTSC, except we had frame 3 and frame 4 to handles as well.
Because we had to store and repeat more frames, we ran out of memory (16Mb) on the NI-5431 before reaching the max segments in a loop.
It was an interesting exercise to get into the inner workings of the .Bin files. It would be great if there was a one stop shop .pdf file, which explains the working of the .bin files.
I would like to thank you again Jerry for your insight, it really did help resolve this issue.
Thanks
Chris Farmer.
03-29-2007 07:37 PM