176
Chapter 15
Script SDK
apndflt.cpp
This example shows how to add a floating point numeric value to a command string using
the Append function and also demonstrates writing to the 882 front panel display.
#include <stdio.h>
#include <QDScriptContext.h>
bool Script_apndflt( QDScriptContext& sc )
{
// For RGB: step the analog video signal swing from 0.1 volts
// to 1.0 volts in steps of 0.10 volts, pausing at each level
double aswing;
// select a safe format, VGA
sc.Exec("FMTL /tffs0/Library/Formats/DMT0660.xml");
// use this selected format
sc.Exec ("FMTU");
// select a colorful image for this example
sc.Exec("IMGL /Cache0/Images/colorbar.img");
// select RGB video out
sc.Exec("XVSI 9");
// enable RGB video
sc.Exec("AVST 2");
// apply the above image and interface selections
sc.Exec("ALLU");
// step the analog video signal swing from 0.1 volts to 1.0
// volts in steps of 0.10 volts, pausing at each level
for(aswing=0.10; aswing<1.01; =0.10)
{
// build the command to set analog video swing
sc.SetCmdName("AVSS");
sc.Append(aswing);
// write the command to the bottom of the front-panel display
sc.Write( 0,3,(char *)sc.GetCmdName() );
// issue the command to set analog video swing
sc.Exec();
// use the selected format parameters
sc.Exec("FMTU");
// pause for 10 seconds at each level
sc.Pause(10000);
// this will cause script to immediately exit if STOP is pressed
if (sc.Canceled())
return true;
}
return true;
}
Содержание 881
Страница 1: ...881 882 Video Test Instrument User Guide 882E for HDMI ...
Страница 12: ...10 Contents ...
Страница 50: ...38 Chapter 1 Getting Started ...
Страница 84: ...72 Chapter 2 Testing Video Displays ...
Страница 99: ...882 Video Test Instrument User Guide Rev A 35 87 ...
Страница 102: ...90 Chapter 3 Administrative Tasks ...
Страница 107: ...882 Video Test Instrument User Guide Rev A 35 95 ...
Страница 108: ...96 Chapter 3 Administrative Tasks 13 Power cycle the generator and it will boot the upgraded firmware ...
Страница 216: ...204 Chapter 5 Working with Formats ...
Страница 248: ...236 Chapter 7 Working with Images ...
Страница 264: ...252 Chapter 8 Working with Test Sequences ...
Страница 342: ...330 Chapter 10 Testing Lipsync 9 Navigate to your PC and double click on the report A sample is shown below ...
Страница 382: ...40 Chapter 11 Testing EDID for HDMI 2 Expand the EDID Block in the navigation view ...
Страница 388: ...46 Chapter 11 Testing EDID for HDMI d Click the OK button to save the data block that you added ...
Страница 446: ...104 Chapter 12 CEC Interactive Troubleshooting Environment ITE ...
Страница 493: ...882 Video Test Instrument User Guide Rev A 35 151 ...
Страница 494: ...152 Chapter 13 Testing HDCP on HDMI The following is an example of a report for the HDCP compliance test for a repeater ...
Страница 591: ...882 Video Test Instrument User Guide Rev A 35 213 Commands by name ...
Страница 649: ...882 Video Test Instrument User Guide Rev A 35 271 Related commands DCPX OUT1 DCPX OUT2 DCPX AV DCPX VGA DCPX ...
Страница 678: ...300 Appendix A Command Reference Example 7 Turn audio off DPTG 3 DPGU Example 8 Turn audio on DPTG 7 DPGU ...
Страница 687: ...882 Video Test Instrument User Guide Rev A 35 309 Example DVIC 23 FMTU ...
Страница 989: ...882 Video Test Instrument User Guide Rev A 35 551 B Image Reference Topics in this appendix Standard image descriptions ...
Страница 990: ...552 Appendix B Image Reference Standard image descriptions 3DCRTK Description Test image for testing 3D crosstalk ...
Страница 991: ...882 Video Test Instrument User Guide Rev A 35 553 3DCUBES Description Test image for testing 3D motion ...
Страница 1018: ...580 Appendix B Image Reference The EMITest5 image is shown below ...
Страница 1042: ...604 Appendix B Image Reference Imex1 Description InFocus1 Description Special test image developed per customer specifications ...
Страница 1094: ...656 Appendix B Image Reference ...
Страница 1095: ...882 Video Test Instrument User Guide Rev A 35 657 C Error Messages Topics in this appendix Error code descriptions ...
Страница 1124: ...686 Appendix C Error Messages ...
Страница 1140: ...702 Appendix D Format Reference ...