使用串行通信控制轨迹栏 [英] Control trackbar using serial communication

查看:78
本文介绍了使用串行通信控制轨迹栏的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建了一个应用程序,我需要在VB.Net中使用水平轨迹栏控制来控制数模转换器(DAC)。

我使用了复选框(外观:按钮)来控制继电器打开和关闭它们,我从程序发送Ascii值来做它。

轨道栏是否可以做同样的事情?我很困惑,因为不像复选框控件可以给出两个离散值我需要连续值的轨迹栏。

我是VB.Net的新手所以任何帮助将不胜感激。



我尝试了什么:



我尝试将ascii值发送到轨道栏控件但是它不起作用。

I have created an application where I need to control a Digital to Analogue Converter (DAC) using horizontal trackbar control in VB.Net.
I have used checkbox (appearance: button) to control relays to switch them on and off and I'm sending Ascii values from program to do it.
Is it possible to do the same for trackbar? I am confused because unlike checkbox control which can be given two discrete values I'll need continuous values for trackbar.
I am new to VB.Net so any help will be appreciated.

What I have tried:

I have tried sending ascii values to the trackbar control but it doesn't work.

推荐答案

你是什么意思'将ascii值发送到轨迹栏控件'...?您可以设置跟踪栏的值,最小值和最大值 - 这可能有助于 Windows Control:跟踪栏 [ ^ ]通知您通常使用轨迹栏设置/获取范围[min,max]
How do you mean 'send ascii values to the trackbar control' ... ? you can set the Value, Minimum and Maximum for a trackbar - this may help Windows Control: The Track Bar[^] notice you're usually using a trackbar to set/get an 'integer' value between a range [min, max]


这篇关于使用串行通信控制轨迹栏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆