Background script c...
 
Notifications
Clear all

Background script cannot get com port?

11 Posts
4 Users
0 Reactions
3,072 Views
jcizek
Posts: 160
Topic starter
(@jcizek)
Estimable Member
Joined: 19 years ago
[#9425]

I have a background sequence written and compiled successfully. I have added the firegod plugins with the Script -> Attached plugins and comfigured identically to how i have them configured in my profile. Whenever the background script tries to run, I am getting an error that "Access denied" on Com1 (which is where my first FG dimmer is). Can someone help point me in the right direction? The BG script runs fine if i choose just the adj preview plugin, and all my programs and everything else run fine too. But if i just start vixen up and do nothing else, 10 seconds in (when i have BG setup to run) it pops the Com1 error and starts playing the music (and obviously is NOT doing anything out in the yard!) Many thanks for any suggestions! -James


10 Replies
Posts: 20
(@oilcan73)
Eminent Member
Joined: 19 years ago

I had the same problem with the "access denied". Found that another program was holding the com port. After I closed anything that I thought might use the port, the error went away. I then removed all programs that I did not need for Vixen, and the error has not returned. I hope this helps-Thomas


Reply
jcizek
Posts: 160
Topic starter
(@jcizek)
Estimable Member
Joined: 19 years ago

That was my first thought too, but i built this machine specifically for Vixen and there isn't a single other piece of software on it! It seems as though it's Vixen itself that is tying up the com port. I can run a sequence manually with no problem, or I can start my program and run it. Both run fine. It's only the background script that gets the error. If I reboot the box so nothing is running and simply start vixen and open nothing (but have the background script enabled) it pops the error soon as the script starts. But, if i go disable the background script and open anything (sequence, program, anything) they all work fine and can access the comport.

Is there something you need to put INTO the script to setup serial ports? I just used the script-> attached plugins menu items to set mine up....


Reply
jcizek
Posts: 160
Topic starter
(@jcizek)
Estimable Member
Joined: 19 years ago

Interestingly enough, I took a copy of my vixen folder out of mydocs on the show computer and brought it to work. I copied it in and sure enough, the background sequence and programs all play nice together.... no com port errors (now i don't have any dimmers connected at work, but since they are one way communications, it shoudn't matter!)
Only difference is (well the hardware of course) OS at home is Windows XP SP3 and here is Win7 64bit.

I find it hard to believe it's the OS. Maybe I'll try wiping out vixen altogether at home and dropping in a new copy.


Reply
Posts: 20
(@oilcan73)
Eminent Member
Joined: 19 years ago

I'm running xp sp2. I'm not sure, but I think I read a post a good while back about Vixen and xp sp3. If you have a copy of xp with sp2, try it. -Thomas


Reply
jcizek
Posts: 160
Topic starter
(@jcizek)
Estimable Member
Joined: 19 years ago

Really?? Hmm. ok. Well I can image it back to SP2 in just a couple of minutes. I'll try that!

So last night I did make some progress... I screwed up! I don't know how I did it, but somehow I had both firegod dimmers set to com1. Once i moved the second one to COm3, it started working... mostly. Now I have yet another WEIRD problem!

My background sequence starts.. it works great, plays songs and controls the lights. Then my main program starts, the timer execute box pops up, it interrupts the background just fine and the main program plays perfectly all the way through. THEN, once it finishes and the background script executes a second time, I get the Com 1 Access denied error pop up. The interesting thing is, if i just leave it, the music plays and the dimmers just get "stuck" where they are, they do not play the background sequence, BUT once the main program executes again, it runs fine. It's only the background sequence starting AFTER a main program run that is denied the com port. Just as an FYI, i am NOT using any cross fading.

Does that shed any further light on what might be happening?


Reply
jcizek
Posts: 160
Topic starter
(@jcizek)
Estimable Member
Joined: 19 years ago

so I am getting really frustrated here...

I tried SP2, that's not it..

I have now installed a program that monitors the serial port and the requests to it.
It turns out that vixen has control of the port and is using it to run the background sequence. Then, when the main program starts, the vixen makes a second request to grab the serial port and is denied it, because it already has controll from the background process. But this doesn't happen the FIRST time around, only after background, main program, background and THEN when the main program runs a second time it throws the error. (i had that order backward in my last post, it's corrrect in this one)
So in order:

Start vixen.
10 seconds later the background script runs the lights and plays music
Main program starts sometime later, background music fades out, and main program runs all sequences.
Main program ends
10 seconds later, the background sequence runs lights and plays music.
Main program tries to start later, but instantly is errored with Comport 1 Access Denied error.
Vixen contnues to play music, but just sits "hung" on error.
I click "OK"
when 2nd sequence starts from main program, lights work fine and the cycle repeats.

This seems like a bug to me, unless I'm doing something wrong in my background script...
or i have some weird hardware error. This is a built on motherboard serial port, the other serial port is a USB to Serial adapter (which is NOT throwing any errors, although i don't know if that's because vixen opens com1 first and fails, or if it opens both at same time and only com1 is failing)

I'd be most appreciative of any ideas on what to check next... It's getting old clicking OK through the entire night just to let my show run! 😎
thanks. -James


Reply
rokkett
Posts: 441
(@rokkett)
Reputable Member
Joined: 17 years ago

I posted this yesterday on how I got around this...

...basically - put a "fake" sequence first that does not use the port the background script is using and tell the program to use the sequence plugins...


Reply
jcizek
Posts: 160
Topic starter
(@jcizek)
Estimable Member
Joined: 19 years ago

You are the man!!! Thanks Rokkett!!! That solved the problem. My show ran all night last night without a hitch! I put in a 5 second sequence with NO plugins attached as the first sequence to run and it fixed everything!

Looks like it really is some timing issue with Vixen and the ports... but that fixes it!

Thanks again! -James


Reply
Aurbo99
Posts: 2804
Moderator
(@aurbo99)
Member
Joined: 19 years ago

My Program runs from 5:30pm to 10:00pm nightly

I created a Sequence with my Profile, 5 seconds long, I named it Cleaner.vix nothing is running, its a blank sequence

I flattened my Sequence.

Remove the checkmarks beside all plugins in use, I left AP checked.

With Program in Vixen

at 5:29pm daily I run a SEQUENCE (Cleaner.vix)
at 5:30pm -10:00pm I run a PROGRAM (2009_Aurbo.vpr)

I'll test it tomorrow and see what happens.


Reply
Page 1 / 2
Share: