Menu

Topic-icon Visual Basic 6 vs. Visual Studio

  • pindiespace
  • pindiespace's Avatar Topic Author
14 years 5 months ago #4189031 by pindiespace
Visual Basic 6 vs. Visual Studio was created by pindiespace
<P style="MARGIN: 0px">I've been working with my Roboteq and Visual Studio and found the following:
<P style="MARGIN: 0px">
<P style="MARGIN: 0px">1. When the controller is already in RS-232 mode, no watchdog, visual studio works ok - no problem sending commands to the controller.
<P style="MARGIN: 0px">
<P style="MARGIN: 0px">2. However, the same commands over the COM port that work in Visual Basic 6 to get the attention of the controller (a dozen or so returns) when in R/C do not work.
<P style="MARGIN: 0px">
<P style="MARGIN: 0px">3. When the controller is is watchdog mode, it ignores attempts to switch out of watchdog mode via a ^00 01 &lt;cr&gt; ^FF command &lt;cr&gt; from visual studio.
<P style="MARGIN: 0px">
<P style="MARGIN: 0px">4. All these commands work fine in hypterminal.
<P style="MARGIN: 0px">
<P style="MARGIN: 0px">Any ideas on what might need to be changed? I'm using the serial port library from Scientific Components.
<P style="MARGIN: 0px">
<P style="MARGIN: 0px">

Please Log in or Create an account to join the conversation.

  • cosma
  • cosma's Avatar
14 years 5 months ago #4189089 by cosma
Replied by cosma on topic Visual Basic 6 vs. Visual Studio
<P style="MARGIN: 0px">Beware that the pin 3 input is shared between the RC ch1 and RS232 RxData. It can be connected either to a PC or a RC radio but not to both at the same time.
<P style="MARGIN: 0px">
<P style="MARGIN: 0px">You need to reset the controller with the %rrrrrr command for the watchdog configuration parameter to take effect

Please Log in or Create an account to join the conversation.

More
14 years 5 months ago #4208361 by tonysantoni
<P style="MARGIN: 0px">Have you tried using the OCX from Microsoft MSComm 6.0 ?
<P style="MARGIN: 0px">I never tried it with Visual Studio, only VB6.0, but coming from Microsoft it should work with both.
<P style="MARGIN: 0px">What is the web site where to find the Scieentific module ?
<P style="MARGIN: 0px">Tks
<P style="MARGIN: 0px">Tony

Robotony

Please Log in or Create an account to join the conversation.

  • pindiespace
  • pindiespace's Avatar Topic Author
14 years 5 months ago #4209034 by pindiespace
Replied by pindiespace on topic Visual Basic 6 vs. Visual Studio

The address of the Scientific Component website is:
<P style="MARGIN: 0px"><A href=" www.scientificcomponent.com " target=_blank> www.scientificcomponent.com </A>
<P style="MARGIN: 0px">
<P style="MARGIN: 0px">They make a GPS system that couples very nicely with the serial port, so you can use GPS data to drive motor control.
<P style="MARGIN: 0px">
<P style="MARGIN: 0px">After some more experimentation I found the following effects:
<P style="MARGIN: 0px">
<P style="MARGIN: 0px">1. I could move the motor by program commands, if I put things into a method. I suspect what's actually happening is a delay.
<P style="MARGIN: 0px">
<P style="MARGIN: 0px">2. Support for this comes from the fact that if you try to write to the serial port to stop the motors, and then close the serial port in your next line of code, it doesn't work.
<P style="MARGIN: 0px">
<P style="MARGIN: 0px">3. Reboots via the program using %rrrrrr work, but only if you have opened the COM port and not sent it any prior commands. If I had the program drive the motors for a while, then I couldn't get the roboteq to accept the reboot. However, if I closed the port and re-opened it, I could cause the reboot (!)
<P style="MARGIN: 0px">
<P style="MARGIN: 0px">
<P style="MARGIN: 0px">What is the address of the Microsoft website for their system?
<P style="MARGIN: 0px">
<P style="MARGIN: 0px">I tried using the generic serial port opens in .NET, but had major problems getting GPS - not easy way to detect a "trigger" character on the serial ports, which is supported by scientific component.
<P style="MARGIN: 0px">
<P style="MARGIN: 0px">The Scientific Component PortController website has a fully operational version available for download on their website, with some really nice coding examples - a shame not to use it!

Please Log in or Create an account to join the conversation.

More
14 years 5 months ago #4225131 by tonysantoni
<P style="MARGIN: 0px">I will look at the Scientific Components module.
<P style="MARGIN: 0px">For info on how to use MC Comm 6.0 please see
<P style="MARGIN: 0px"><A href=" www.tsatechnologies " target=_blank> www.tsatechnologies </A> page Roboteq.
<P style="MARGIN: 0px">There is source code and reference URL for Microsoft.
<P style="MARGIN: 0px">I have worked with Visual Basic.NET and found it to be very slow. My suspicion is that since it does not work in native mode but goes through the intermediate it slows down significantly. Timing is also an issue; with multithreading some operations do not necessarily happen in the same order as they have been written in the program.

Robotony

Please Log in or Create an account to join the conversation.

More
14 years 5 months ago #4225211 by tonysantoni
<P style="MARGIN: 0px">I saw the price for the Scientific Components module. It is not cheap. My impression is that MSComm is free once you have purchased Visual Studio.NET
<P style="MARGIN: 0px">

Robotony

Please Log in or Create an account to join the conversation.

  • pindiespace
  • pindiespace's Avatar Topic Author
14 years 5 months ago #4236646 by pindiespace
Replied by pindiespace on topic Visual Basic 6 vs. Visual Studio
<p style="MARGIN: 0px">Looks like TSA Technologies just posted a Visual Studio example - I'll have to check it out.</p><p style="MARGIN: 0px"> </p><p style="MARGIN: 0px">Yup, visual studio is slow, except in certain areas like its trig functions, several of which aren't available in VB 6 - makes it extremely easy to do 'great circle' calculations for gps waypoint following. Our idea (since we're up against a major deadline) is to use VB in visual studio to enforce a structured programming technique, get something working, then later on convert the modules one at a time to C++.</p><p style="MARGIN: 0px"> </p><p style="MARGIN: 0px">The scicomm controller generally give good response when you have a lot of ports (5) connected at once - they have sent me a beta of their new version to test specifically with the roboteq.</p>

Please Log in or Create an account to join the conversation.

Moderators: tonysantoni
Time to create page: 0.159 seconds
Go to top