迪文科技论坛

 找回密码
 立即注册
搜索
查看: 462|回复: 14

[Question]Exception when I want to put the float value

[复制链接]

9

主题

65

回帖

264

积分

中级会员

Rank: 3Rank: 3

积分
264
发表于 2023-6-22 17:41:28 | 显示全部楼层 |阅读模式
Hi, sorry another issue.

I prepared a sample project again and testing the input of floating value
with Variable input control and Basic touch module(s).

What I want to input(format) is : xxx.xx

- 3 integer
- 2 decimal

But it's crashed with below error message in my Virtual screen.


************** Exception Text **************
System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: startIndex
   at System.String.Insert(Int32 startIndex, String value)
   at BizDraw.Controls.Form_Preview.panel1_MouseDown(Object sender, MouseEventArgs e)
   at System.Windows.Forms.Control.OnMouseDown(MouseEventArgs e)
   at System.Windows.Forms.Control.WmMouseDown(Message& m, MouseButtons button, Int32 clicks)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)



Is there any wrong setting in my project ?
Here is my sample project :  (fixed a litte)

Please check my project and let me know what's wrong.








本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

x
回复

使用道具 举报

0

主题

713

回帖

7663

积分

论坛元老

Rank: 8Rank: 8

积分
7663
发表于 2023-6-22 19:20:15 | 显示全部楼层
Dear,
Please use .bmp or .jpg format picture.
回复

使用道具 举报

9

主题

65

回帖

264

积分

中级会员

Rank: 3Rank: 3

积分
264
 楼主| 发表于 2023-6-23 10:17:05 | 显示全部楼层
DWIN-ARK 发表于 2023-6-22 19:20
Dear,
Please use .bmp or .jpg format picture.

Thanks for this answer too !

I changed my png picrues to bmp, but the exception is still happened.
Could you try my project with bmp and confirm whether it's OK ?
回复

使用道具 举报

0

主题

713

回帖

7663

积分

论坛元老

Rank: 8Rank: 8

积分
7663
发表于 2023-6-23 18:50:32 | 显示全部楼层
本帖最后由 DWIN-ARK 于 2023-6-23 19:54 编辑
jhpark 发表于 2023-6-23 10:17
Thanks for this answer too !

I changed my png picrues to bmp, but the exception is still happened ...

Dear,
The resolution of the green picture is different from the screen.
Now it has been modified.

The attachment is the normal use of DEMO.
Open with 7.645

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

x
回复

使用道具 举报

9

主题

65

回帖

264

积分

中级会员

Rank: 3Rank: 3

积分
264
 楼主| 发表于 2023-6-26 10:52:13 | 显示全部楼层
DWIN-ARK 发表于 2023-6-23 18:50
Dear,
The resolution of the green picture is different from the screen.
Now it has been modified.

Thanks for your project and new DGUS2(7645) !!

I tested your project and found it's not crashed with exception,
but I also fount it's <Variable type> is <int>.
As I wrote I want to use Float like -123.45,
so I changed your <Variable type> to <float> and it's crashed as like mine...

Could you change your Variable type and test again for me ?
回复

使用道具 举报

发表于 2023-6-26 11:15:57 | 显示全部楼层
The simulation function of the configuration software is not yet complete. It is recommended to download it to the screen to see the effect. At present, the latest kernel and software only support the entry of Single-precision floating-point format numbers.
回复

使用道具 举报

9

主题

65

回帖

264

积分

中级会员

Rank: 3Rank: 3

积分
264
 楼主| 发表于 2023-6-26 12:43:58 | 显示全部楼层
沃特玛贞帥斯基 发表于 2023-6-26 11:15
The simulation function of the configuration software is not yet complete. It is recommended to down ...

Thanks for your answer !

Then, do I understand it as my project should be work even it's not working in Virtual screen,
is this correct ?
Actullay many developer use Virtual screen to test and show how it work
and this link is one of them : https://youtu.be/hw6ZECVZadQ?t=1485
No problem to show float in Virtual screen...

And, what is the <latest> ? How I can sure whether my dwin screen has latest kernel ?
Is there any version information for each screen (including my DMG10600T101_A5WTR) ??


回复

使用道具 举报

发表于 2023-6-26 13:10:23 | 显示全部楼层
Yes, it must be downloaded to the screen. The simulation in the software is not accurate. The V63 version in this link is the latest kernel:http://inforum.dwin.com.cn:20080 ... amp;_dsign=1737455e
回复

使用道具 举报

9

主题

65

回帖

264

积分

中级会员

Rank: 3Rank: 3

积分
264
 楼主| 发表于 2023-6-26 14:21:35 | 显示全部楼层
沃特玛贞帥斯基 发表于 2023-6-26 13:10
Yes, it must be downloaded to the screen. The simulation in the software is not accurate. The V63 ve ...

I see but my screen is out of order and I need a new screen device..
Before getting new screen I should try to confirm my project but I think it's not possible anymore...

Ah, I should check my screen's kernnel version,
how do I check the kernel version of my screen device ?
and how to update it if it's lower ?
回复

使用道具 举报

0

主题

726

回帖

1万

积分

论坛元老

Rank: 8Rank: 8

积分
11016
发表于 2023-6-26 14:43:03 | 显示全部楼层
本帖最后由 lijiayan 于 2023-6-26 14:48 编辑

The blue screen interface of the burning project shows the kernel version number, and updating the kernel involves placing the kernel in DWIN_ SET folder, burning with SD card

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

x
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|Archiver|手机版|小黑屋|迪文科技论坛 ( 京ICP备05033781号-1 )

GMT+8, 2024-12-29 07:26 , Processed in 0.074488 second(s), 22 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表