Skip to search.
CMRI_Users · Chubb's Computer/Model RR Interface

Group Information

? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Real people. Real stories. See how Yahoo! Groups impacts members worldwide.

Messages

  Messages Help
Advanced
SPSVBM.Bas Questions   Message List  
Reply Message #16366 of 16924 |
Re: SPSVBM.Bas Questions

Doug, I forgot to mention, yes, place both programs into the same VB project.
Be sure to tell VB which one is being loaded first, such as the realtime loop
program, or the modDB form.

If it is the realtime loop program, then before the real time loop starts, be
sure to issue the Show command in reverse sequence so that the last screen
"shown" is the first one on top such as:

frmCTCprog.Show
frmmodDB.Show

This will cause the form associated with the modDB to be displayed last, and
therefore, on top of the CTC program screen.

If your modDB is the first screen loaded, then be sure to place these two SHOW
commands into the top of the coding section of your modDB before any other
coding starts.

But you arrange them the way you want.

Bill Carr



--- In CMRI_Users@yahoogroups.com, "Doug Ellis" <dabear1@...> wrote:
>
> Hey Guys,
> I am needing to throw a couple of questions out there and see what answers
I get.
> I have written a CTC program which the graphics are done and am getting
ready to add the SPSVBM.Bas to my coding. As I understand this coding runs in a
loop all the time, constantly checking the I/O to & from the railroad. Now, I
have a modDB.Bas that I am already using for coding that controls the switches
and reverse or Normal, signals and their colors, database coding, and an on
screen fast clock.
> My questions are:
>
> 1. Will adding the SPSVBM.Bas as another .Bas file affect the operation of my
current .Bas file???
> 2. Should I combine the SPSVBM.Bas into my modDB.Bas file??
> 3. If I combine them, will it affect any of what is going on in my modDB.Bas
file???
> I know this might be a little confusing, but I can not explain it any
better.
>
> Doug
>





Tue Feb 14, 2012 3:55 pm

crselkirk
Offline Offline
Send Email Send Email

Message #16366 of 16924 |
Expand Messages Author Sort by Date

Hey Guys, I am needing to throw a couple of questions out there and see what answers I get. I have written a CTC program which the graphics are done and am...
Doug Ellis
csxhogger Offline Send Email
Feb 13, 2012
10:55 pm

Hi Doug, Here is my understanding of how C/MRI works. There is only one loop. This loop gets bigger as you add more code, but there is only one loop. Now, if...
kevin_chain Offline Send Email Feb 14, 2012
3:44 pm

Doug, If I make some basic assumpions about your current modDB bas program in how it uses the controls on the screen and sends commands via the serial...
crselkirk Offline Send Email Feb 14, 2012
3:48 pm

Doug, Very good advice is in this email. Alan Anderson Salt Lake City, Utah NMRA Member...
Alan Anderson
alankristi99 Offline Send Email
Feb 15, 2012
7:49 pm

Doug, I forgot to mention, yes, place both programs into the same VB project. Be sure to tell VB which one is being loaded first, such as the realtime loop...
crselkirk Offline Send Email Feb 14, 2012
3:55 pm

Doug: If you are writing code in VB there is no "real time loop". VB is an event based compiler and not a linear execution like QB. Your main procedure that...
nkpberk Offline Send Email Feb 14, 2012
4:43 pm

<SNIP> ... <SNIP> Doug, This is true, VB is an event-based program; meaning the computer is waiting for an "event" and then runs the code for that event. QB...
Alan Anderson
alankristi99 Offline Send Email
Feb 15, 2012
8:04 pm

Anyone know the part number for the USB to serial cable needed for CMRI? Lee Nicholas [Non-text portions of this message have been removed]...
Lee Nicholas
nicholas84307 Offline Send Email
Feb 15, 2012
11:11 pm

Keyspan USA-19HS ... [Non-text portions of this message have been removed]...
James LeFevre
macintoshtra... Offline Send Email
Feb 15, 2012
11:18 pm

James, thank you. Lee ... From: James LeFevre<mailto:jlefevre1@...> To: CMRI_Users@yahoogroups.com<mailto:CMRI_Users@yahoogroups.com> Sent: Wednesday,...
Lee Nicholas
nicholas84307 Offline Send Email
Feb 15, 2012
11:19 pm

Guys, Thanks a whole bunch for this valuable info, it helps me wrap my head around this. Let me run a few more things by you: 1. I already have a real time...
Doug Ellis
csxhogger Offline Send Email
Feb 16, 2012
9:59 pm

... A standard real time loop for C/MRI hardware is to: a) Start of real time loop: Execute DoEvents command b) read inputs by calling the INPTUS...
crselkirk Offline Send Email Feb 17, 2012
12:21 am

Hey guys, Here is something a little different. A buddy of mine sent this to me, so I thought I would share this link with you all: Largest Train Set Now has...
Doug Ellis
csxhogger Offline Send Email
Feb 18, 2012
5:07 am

Doug, I feel that my last answer may have been inadequate in given you the best advice. It would help immensely if you could share with us some more details...
crselkirk Offline Send Email Feb 17, 2012
11:49 am

Bill and all, I guess I sort of got the cart ahead of the horse on this one. I have been working on the graphics part of a dispatchers program for the CMRI....
Doug Ellis
csxhogger Offline Send Email
Feb 18, 2012
9:00 pm

Bill, ... From: "crselkirk" <conrailbill@...> To: CMRI_Users@yahoogroups.com Sent: 2/17/2012 6:49:26 AM Subject: [CMRI_Users] Re: SPSVBM.Bas Questions ... ...
Doug Ellis
csxhogger Offline Send Email
Feb 18, 2012
9:48 pm

Doug, I see in our response that you are studying Vol 3.1 of the manual. I assume from that response that you are studying the User's Manual 3.1 version....
crselkirk Offline Send Email Feb 19, 2012
3:00 pm

Doug, As one of the contributors to the SPSVBM module, let me answer your questions as best I can. ... <SNIP> ... A: Not at all. You can add multiple .BAS...
Alan Anderson
alankristi99 Offline Send Email
Feb 15, 2012
7:46 pm
Advanced

Copyright © 2010 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines NEW - Help