473,378 Members | 1,699 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

RS232 Simple Program Visual Basic Office 365

1
Hello,

I used to be able to write small programs in Basica long time ago !!
I never catchup with VBA.
Maybe it is still time!

I just would like to interrogate a dosimeter on regular base every 10 seconds, or every so many minute, for testing it for current leak.

My PC run Windows 10 Pro and I use Office 365, and Excel for VBA.

The command I should send for getting the dose is MV for every request I send

The answer is as follow:

MV; 0.5E-09;2; 0.0E-09;2;54.00;00004;00000;49125

The data are separated by ;

In this exemple the dose I am interested is the second groupe of letter 0.5E-09 and the time is 54.00

The information I like to record in an Excel format or text to make a graph or a table is the dose and the time


After having send the command MV, I would be interested to know the unit of the dose and for that I should send the command:

URE

and the system will answer:

URE;11

11 means Gray, 12 means Roentgen and 1 means Ampere which is Current generated by the x-ray diod

Below are some commands and answers collected with Tera Term

MV

MV; 0.0E-09;2; 0.0E-09;2; 2.00;00004;00000;37826

MV

MV; 0.0E-09;2; 0.0E-09;2;14.50;00004;00000;50702

MV

MV; 0.5E-09;2; 0.0E-09;2;54.00;00004;00000;49125

URE

MV

MV; 0.5E-09;2; 0.0E-09;2;112.5;00004;00000;38677

URE;11


Later, I could try to send more complicated commands to setup the dosimeter like:

API;8;CT ;T30009;000948;Mo 28kV ;30Mo ;30Mo+2Al ;0;2008;09;05; 5.952E4; 5.487E4


Hoping that someone would be able to give me a jump start for this new beginning ......

Thanks and Best Regards

Patrick
Mar 11 '18 #1
0 1239

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: AK | last post by:
I don't want any part of the previous discussion on Visual Basic versus Visual Basic.Net. My query is about using Visual Basic for Applications; and whether it is better to use Visual Basic 6 or...
0
by: deploying visual basic .net application | last post by:
Hi There, I'm trying to create a setup for a Windows application to install my application I developed using Visual basic .net. I'm using Visual Studio .net Professional. When I use the Set up...
4
by: Corepaul | last post by:
I am a beginner, using Access 2000. I am having difficulty with the Visual Basic Help. Specifically, using the Index tab, when I enter "OpenRecordset" in the keyword field and click the Search...
4
by: Harris | last post by:
Can anyone please help? I have read the postings on the error "The Visual Basic for Applications Project in the database is corrupt" but none report the particular problem I am experiencing, i.e.,...
1
by: nicole bissell | last post by:
Hello, I am working in a new form and still making changes to the visual basic code of the form. Not always, but very often when I try to save my changes in the visual basic window and press the...
2
by: Ryan McBride | last post by:
Once again at my wonderful job i've been given the task of "come teach your fellow idiot coworkers the skills you have" I write software for a company in chicago. I use visual basic on asp.net...
1
by: Akinyemi | last post by:
Please, which Windows Operating System and Windows Office Program is best for Visual Basic 6?. I want to get the best and stick to it. Currently I use Windows 2000 Professional and Office 2000....
2
by: Javier1958 | last post by:
Hi all I have a problem running Visual Basic 2005 (.NET) programs in other computers different of that where I have Visual Studio installed. I know I have to install the .NET framework in the...
0
by: Speilman_54 | last post by:
Hi, I'm converting an excel Macro into visual basic 2005 express, as I don't have a copy of VB 6 and trying to make and executable from it, I know this version doesn't have the save file as .exe,...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.