|
@@ -28,7 +28,7 @@ namespace Jdas_Mbic
|
28
|
28
|
public partial class JdasMbic : Form
|
29
|
29
|
{
|
30
|
30
|
const double Table_Dbm_DefaultValue = 0;//31.5;
|
31
|
|
- const int Table_DL_DefaultValue = 5;
|
|
31
|
+ const int Table_DL_DefaultValue = 7;
|
32
|
32
|
const int Table_UL_DefaultValue = -15;
|
33
|
33
|
const int Table_Temp_DefaultValue = -10;
|
34
|
34
|
Serial serial = new Serial(); // Uart Open
|
|
@@ -113,7 +113,7 @@ namespace Jdas_Mbic
|
113
|
113
|
switch (tempenum) {
|
114
|
114
|
case DLUL_Category.DL_DET:
|
115
|
115
|
double Temp_DL_Data = Table_DL_DefaultValue;
|
116
|
|
- for (int i = 0; i < 31; i++)
|
|
116
|
+ for (int i = 0; i < 33; i++)
|
117
|
117
|
{
|
118
|
118
|
dataGridView_TableSetting.Rows.Add();
|
119
|
119
|
tempstr = string.Format("{0:0}", Temp_DL_Data);
|
|
@@ -2416,26 +2416,43 @@ namespace Jdas_Mbic
|
2416
|
2416
|
private void TableChart_Create()
|
2417
|
2417
|
{
|
2418
|
2418
|
DataTable dt = new DataTable();
|
2419
|
|
-// dt.Columns.Add("Column1");
|
|
2419
|
+ /*string targetStr = dataGridView_TableSetting.Rows[0].Cells[0].Value.ToString();
|
|
2420
|
+ string text = targetStr;
|
|
2421
|
+ var match = Regex.Match(text, "-?\\d+");
|
|
2422
|
+ */
|
|
2423
|
+ ///정수형 변환
|
|
2424
|
+ // int rstInt = int.Parse(tempStr);
|
|
2425
|
+
|
|
2426
|
+ //_body = Regex.Replace(dataGridView_TableSetting.Rows[0].Cells[0].Value.ToString(), @"[^0-9]", "");
|
|
2427
|
+
|
|
2428
|
+ //numericUpDown_TableRef.Value = Convert.ToDecimal(match.Value);
|
|
2429
|
+ // dt.Columns.Add("Column1");
|
2420
|
2430
|
//dt.Columns.Add("Column2");
|
|
2431
|
+ chart_Table.Series[0].Points.Clear();
|
2421
|
2432
|
for (int i = 0; i < dataGridView_TableSetting.RowCount; i++)
|
2422
|
2433
|
{
|
2423
|
2434
|
try
|
2424
|
2435
|
{
|
2425
|
|
- dt.Rows.Add(Convert.ToDouble(dataGridView_TableSetting[1, i].Value));
|
|
2436
|
+ /* targetStr = dataGridView_TableSetting.Rows[0].Cells[i].Value.ToString();
|
|
2437
|
+ match = Regex.Match(text, "-?\\d+");*/
|
|
2438
|
+ chart_Table.Series[0].Points.AddXY(i,dataGridView_TableSetting[1, i].Value/*match.Value*/);
|
|
2439
|
+ Thread.Sleep(1);
|
|
2440
|
+ //dt.Rows.Add(Convert.ToDouble(dataGridView_TableSetting[1, i].Value));
|
|
2441
|
+ //chart_Table.Series[0].Val
|
2426
|
2442
|
// Tmplist.Add(Convert.ToDouble(dataGridView_TableSetting[1, i].Value));
|
2427
|
|
- // chart_Table.Series[0].Points.Add();
|
|
2443
|
+ // chart_Table.Series[0].Points.Add();
|
2428
|
2444
|
//chart_Table.Invalidate();
|
2429
|
2445
|
//chart_Table.Rows[i][1]
|
2430
|
2446
|
//table.Rows[i][1] = Convert.ToDouble(dataGridView_TableSetting[1, i].Value);
|
2431
|
2447
|
}
|
2432
|
2448
|
catch { }
|
2433
|
2449
|
}
|
2434
|
|
- chart_Table.DataSource = dt;
|
|
2450
|
+ // chart_Table.DataSource = dt;
|
|
2451
|
+ chart_Table.Update();
|
2435
|
2452
|
//chart_Table.Series[0].XValueMembers = "Column1";
|
2436
|
2453
|
//chart_Table.Series[0].YValueMembers = "Column2";
|
2437
|
2454
|
|
2438
|
|
- chart_Table.DataBind();
|
|
2455
|
+ //chart_Table.DataBind();
|
2439
|
2456
|
//chart_Table.Dispose(false);
|
2440
|
2457
|
|
2441
|
2458
|
|
|
@@ -2511,7 +2528,7 @@ namespace Jdas_Mbic
|
2511
|
2528
|
}
|
2512
|
2529
|
|
2513
|
2530
|
|
2514
|
|
- //TableChart_Create();
|
|
2531
|
+ TableChart_Create();
|
2515
|
2532
|
/*dataGridView_TableSetting[1, i].Value
|
2516
|
2533
|
this.Invoke(new StringSend(Table_Text_Set), dataGridView_TableSetting, adcdata.ToString("N2"));*/
|
2517
|
2534
|
|
|
@@ -2947,9 +2964,9 @@ namespace Jdas_Mbic
|
2947
|
2964
|
{
|
2948
|
2965
|
label_CompileDate.Text = "";
|
2949
|
2966
|
byte[] temp_buf = new byte[TableGetMaxLength];
|
2950
|
|
- byte[] Temp_MBICResetCmd = { 0x16, 0x16, 0x16, 0x16, 0x00, 0xf0, 0x00, 0x00, 0x00, 0x48, 0x00, 0x14, 0x06, 0x09, 0x00, 0x14, 0x33, 0x00, 0x01, 0x00, 0x04, 0xa7, 0xe0, 0x0e, 0x01, 0x00, 0xac, 0xda, 0x03 };
|
2951
|
|
- serial.Serial_DataSend(Temp_MBICResetCmd, Temp_MBICResetCmd.Length);
|
2952
|
|
- return;
|
|
2967
|
+ // byte[] Temp_MBICResetCmd = { 0x16, 0x16, 0x16, 0x16, 0x00, 0xf0, 0x00, 0x00, 0x00, 0x48, 0x00, 0x14, 0x06, 0x09, 0x00, 0x14, 0x33, 0x00, 0x01, 0x00, 0x04, 0xa7, 0xe0, 0x0e, 0x01, 0x00, 0xac, 0xda, 0x03 };
|
|
2968
|
+ // serial.Serial_DataSend(Temp_MBICResetCmd, Temp_MBICResetCmd.Length);
|
|
2969
|
+ //return;
|
2953
|
2970
|
temp_buf[(int)Bluecell_ProtIndex_p.Bluecell_Header] = BLUECELL_HEADER;
|
2954
|
2971
|
temp_buf[(int)Bluecell_ProtIndex_p.Bluecell_Type] = (byte)Bluecell_BootProtocol.DATATYPE.BLUECELL_SOFTWARERESET;
|
2955
|
2972
|
temp_buf[(int)Bluecell_ProtIndex_p.Bluecell_Length_H] = Convert.ToByte((TableGetMaxLength - 2 & 0xFF00 )>> 8);
|