473,406 Members | 2,208 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,406 software developers and data experts.

Serial Communication

Hello,
I am communicating with a programmable power supply using an RS-232
interface through Visual Studio and having a slight problem. The power
supply documentation supplied very little information about communicating
this way except for the following:

Baud Rate: 1200, 2400, 4800, or 9600
Parity Bit: none
Data Bit: 8 bits
Stop Bit: 1 stop bit
Data flow control: none

I have set up a DCB (Platform SDK) structure in code and am able to actually
communicate with the power supply and it carries out the action I ask it to,
but it is painfully slow (on the order of 2-3 seconds per command). The
following is what I have set up in code (as far as serial parameters are
concerned):

DCB Parms;
Parms.BaudRate = CBR_9600;
Parms.ByteSize = 8;
Parms.Parity = NOPARITY;
Parms.StopBits = ONESTOPBIT;

and again, this works, but it is running way too slow for the current
purposes. I have carried out the same actions through MATLAB's serial
interface and also just through HyperTerminal (Start
Menu-->Accessories-->Communications) and the power supply responds
instantaneously to inputs through those interfaces.

Can anybody provide any guidance as to what I can do to achieve
instantaneous responses through Visual Studio? Thanks in advance.

-Ryan

Oct 10 '06 #1
2 1759
Ryan Neuhart wrote:
Can anybody provide any guidance as to what I can do to achieve
instantaneous responses through Visual Studio? Thanks in advance.
You will get the best answer on a newsgroup with Win32 and "programming" in
its name, at least.

This newsgroup is only qualified to discuss portable C++ concepts!

--
Phlip
http://www.greencheese.us/ZeekLand <-- NOT a blog!!!
Oct 10 '06 #2
Ryan Neuhart wrote:
I am communicating with a programmable power supply using an RS-232
interface through Visual Studio and having a slight problem. [..]
Wrong newsgroup. You probably want 'microsoft.public.vc.language'
or some such. Here we talk C++ language only, and not any of the
development systems, since they usually have their own forums.

V
--
Please remove capital 'A's when replying by e-mail
I do not respond to top-posted replies, please don't ask
Oct 10 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Andreas Horneff | last post by:
Hi @ all, I've got a problem with serial communication in Borland C++ Builder. I've already found a lot of stuff about serial communication in the internet, but it dosen't work. What I want...
11
by: sarah | last post by:
hI, I have a project. I need to realise serial communication between PC and Altera FPGA in c or c++. The function of FPGA is working well. it can send data to uart. Does anybody know how to...
3
by: carmen | last post by:
I'm working in an aplication for a Smart Device that need to "talk" with a printer continuosly through the serial port. I'm trying to use the John Hint's sample code "Use P/Invoke to develop a .NET...
4
by: Vidya Bhagwath | last post by:
Hello Experts, I am porting the C++ code into the Visual C#.NET. My C++ code is mainly based on the serial communication. So I am using the windows structure such as DCB.. etc and the windows...
6
by: Leandro Berti via DotNetMonster.com | last post by:
Hi All, I wrote a code to do serial communication with an equipament. When i use the code outside of threaded class it seens work properly, but when i put inside a class and execute a thread in...
4
by: joe bloggs | last post by:
I am writing a mobile application to interface with a legacy system and I am planning to use web services to communicate with this system. The legacy system receives data through a serial port. ...
2
by: Marco Trapanese | last post by:
Hi, every 250 ms (timer event) I must send several commands via serial port. The serial unit will answer to each command sent. I must wait the answer before send the next command. How can I...
4
by: max_mont | last post by:
Hi all, I'm a newbie in .NET technology. I've already developed Serial communication applications in C++ (WIN32). And I wanted to migrate to .NET technology. There is a serial component in...
2
by: Adrian Chen | last post by:
please help me! I come across a problem. Now I develop a finger print management system which is based on B/S.When users click a button in the web pages, a device connected to the COM1 serial port...
0
by: Dhananjay | last post by:
Hi, I am working on an VB.Net application which I want to communicate to external device using comm port (Serial Port) . So for that first I am trying to simulate the communication on serial...
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: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.