I had this problem again with the customer where the reports are not created properly almost every second time
The top bitmap(graph1.bmp) is a part of the correct report and below is the bitmap (graph1.bmp) when the apparatus did the next run.
New folders are created for every machine run and report html files are copied to that folder.
There is no rule when is going to shrink graphics.The bitmap in report folder is the same physical size XY as the good one
but with shrinked visible graph area as you can see on the picture.
NIHyperTrend1.properties.CaptionColor= 0x000000;
NIHyperTrend1.properties.IsPlotting= Excel_row>12 or Sequencer_1s;
NIHyperTrend1.properties.Refresh= Sequencer_report.State=2;
NIHyperTrend1.properties.ExtendedProperties= true;
NIHyperTrend1.pollRate= 0:01;
NIHyperTrend1.properties.ActiveGroup.TrendWidth= nif(ETM3=00:00,00:05:00.000,nif
(Sequencer_1s=true,ETM3,00:45:00.000));
NIHyperTrend1.properties.ActiveGroup.GraphBackgroundColor= nif((Sequencer_report
.State>=1 and Sequencer_report.State<11),0xFFFFFF,0x000000);
NIHyperTrend1.properties.ActiveGroup.GridMajorColor= nif((Sequencer_report.State
>=1 and Sequencer_report.State<11),0xE0E0E0,0x003200);
NIHyperTrend1.properties.ActiveGroup.GridMinorColor= nif((Sequencer_report.State
>=1 and Sequencer_report.State<11),0xE0E0E0,0x002000);
Sequencer_report= new Sequencer (11, "Preparing", 00:00:02, 0x1,
"Create Output Directory", 00:00:05, 0x2,
"Copy Synthesis File", 00:00:01, 0x4, "Copy Synthesis File",
00:00:01, 0x8, "Create Pressure Graph", 00:00:01.5, 0x10,
"Create Temperature Graph", 00:00:01.5, 0x20,
"Create Detector Graph", 00:00:01.5, 0x40,
"Create Report HTM File", 00:00:02, 0x80, "Report Saved",
00:00:02, 0x100, , 00:00:02, 0x200);
Sequencer_report.Goto1= (Create_Report_1s or e_302_dlaON);
Sequencer_report.Goto11= (Excel_0_1s);
(1s=one shot, dlaON = delay on timer).
The process is running on Excel spreadsheet data and Hypertrends are stopped. Just before the report creation point Hypertrend time base are kicked to process start time and started to plot. After the HTML report is created graphs are stopped.
Problem persist on random basis which is unacceptable for the customer and I cannot see what is wrong as it happens randomly but very often.
------------------------------------------------------------------
That was question answer while ago:
In which way do you add the hypertrend to report?
I connect hypertrend.graphic to report.display. When the report is created, there will be an html file and a bmp file. The bmp file is the hypertrend. So, in the html report, there are no more hypertrend objects, but only some pics. If the pic shrinks to a small one in report, you can check the bmp file if it is still of the right size.
And also you can check if the bmp is black. If it is, the hypertrend in report should be black.
Message Edited by Ryan.S on 09-21-2006 09:45 PM
Ryan Shi
Applications Engineer
National Instruments