TELE-audiovision - Weltweit größte Digital TV Fachzeitschrift - page 82

7
8
9
82
TELE-audiovision International— TheWorld‘s Largest Digital TV TradeMagazine
—05-06/2014
nal compiled program from
withinaDOS shell. Not really
exciting.
However, the source code
isnot complexat all. Actually
it is quite amazing, how sim-
ple it is, thanks to the well
done DTAPI. I quickly took
the source code and built a
Windows Form application
around it, so that the user
can actually select the desi-
red file to be streamed by
the DekTec modulator. Here
you can download my sam-
ple code:
.
com/dtu215-control.zip
It did not take much thin-
king to change the device
from the initial DTA-2111 (for
PCI Express) to the DTU-215
Gold (USB)modulator, which
I have in the TELE-audiovisi-
on test center.
In less than one hour, I
had my own Windows appli-
cation that uses theDTU-215
Gold modulator. And I have
to confess that I amnot very
literate in Visual C#, as I
ammuch more familiar with
VB.net. So hey, why not con-
vert the source code from
C# to VB.net? It only took a
few minutes, thanks to on-
line converters that do ex-
actly that. The only struggle
was that VB.net expects the
prefix DTAPINET before cer-
tain parameter calls, as op-
posed to C#: I had tomanu-
ally change it:
Outp.SetTxCont rol (DTAPI .
TXCTRL_IDLE)
to
Outp.SetTxControl(DTAPINET.
DTAPI.TXCTRL_IDLE.
Amazingly, I could now
just use my familiar VB.net
environment to finishmy ap-
plication and guess what, it
turned out great. Instead of
having to use the StreamX-
press application to control
the DTU-215 Gold modula-
tor, I can now use my own
application, which is precon-
figured to output the DVB-T
stream (for those who don’t
know the DTU-215, this mo-
dulator can generate practi-
cally all digital TV modula-
tions). Much less buttons to
tweak and instead I candrag
and drop *.TS files in the
playlist. I think that I could
soon be programming really
great applications with the
DTAPI SDK and if I can do
it, anyonewho has program-
med a few lines of code can
do, as well.
Why settlewith a standard
product for broadcasting/
distribution or HF product
development, when you can
build your custom product
matching exactly your speci-
fic needs?
7-8. Does it work?Sure it does. Just drag the *.TSfiles tomy
application andpress theplaybutton.
9. Use theslider to change theoutput frequency.
1...,72,73,74,75,76,77,78,79,80,81 83,84,85,86,87,88,89,90,91,92,...196
Powered by FlippingBook