Results 1 to 10 of 16
Thread: SIOCards and pmSystems
-
05-08-2008, 02:33 PM #1
- Join Date
- Oct 2007
- Location
- Miami, FLorida. USA
- Posts
- 37
SIOCards and pmSystems
Hi to all:
I have purchased the I/O cards from Opencockpits and
I need to interface them to pmSystems. Has anybody tried this?
My goal is to have the electrical Panel, the CRZ ALT and LDG ALT
displays working. I do have experience in programming. I just need
to know if anybody has been successful in doing this.
pmSystems has native interface to SYS cards from FDS and Phidgets
but not with Opencockpits.
Thanks.
-
05-08-2008, 04:14 PM #2
- Join Date
- Jan 2007
- Location
- Italy
- Posts
- 204
Hi, if you search in the forum i had already put the code for FLT and LNG altitude display for sioc and PM Sys.
-
05-08-2008, 05:12 PM #3
- Join Date
- Oct 2007
- Location
- Miami, FLorida. USA
- Posts
- 37
I'll certainly look. I just did not want to duplicate efforts.
I will start working on the code for the AFDS if none is been written.
Thanks.
-
05-09-2008, 03:42 PM #4
- Join Date
- Oct 2007
- Location
- Miami, FLorida. USA
- Posts
- 37
Thank you. I located the post but I am not able to see the code when I click
on the attachment. I get a blank page. Also If I save it, it saves it as a .php file.
Thanks once again
-
05-09-2008, 05:21 PM #5
- Join Date
- Jan 2007
- Location
- Italy
- Posts
- 204
I edited the post so you can see the code! at http://www.mycockpit.org/forums/show...6660#post46660
Don't know why the attach doesn't work, it seems a problem with the forum board, Admin check please.
-
05-09-2008, 06:16 PM #6
- Join Date
- Oct 2007
- Location
- Miami, FLorida. USA
- Posts
- 37
Thank you. Have you had the time to fiddle with the AFDS logic?
pmSystems does not have it. I am willing to tackle the problem if none has done it.
I pretty much have evreything working with a mixture of phidgets , SYM cards
and now SIOC cards. I understand the possibilities of the language allow for some very nice things.
I will look at your code and try to learn the language.
Once again, many thanks!!.
-
05-09-2008, 06:33 PM #7
- Join Date
- Jan 2007
- Location
- Italy
- Posts
- 204
I didn't the code for the AFDS 'cause i haven't MIP full, but when i get there i will look.
I'm currently working on the overhead part, when i finish that i will do other things.
I did also the SIXPACK code in SIOC for PMsystems if you need that.
Bye!
-
Post Thanks / Like - 1 Thanks, 0 Likes, 0 Dislikes
jfuenmay thanked for this post
-
05-27-2008, 10:11 PM #8
- Join Date
- Oct 2007
- Location
- Miami, FLorida. USA
- Posts
- 37
Well , here I am again. Downloaded the code for LDG ALT. Great job.
It works well, however, I have a little problem which is quite unusual and
it is not your code.
When writing to the DISPLAY CARD , the digits
appear from right to left. I tested it with a very simple SIOC program
that writes a number to the display. Here it is
+++++++++++++++++++++++++++++++++++++
// TEST SIOC program. diplays digits on 7seg LED
var 1 Value 300
{
v3 = v1
}
var 3 Link IOCARD_DISPLAY Digit 0 Numbers 3
++++++++++++++++++++++++++++++++++++++
The display should read 300, instead it reads 003.
If I change the value of v1 to 003 then it displays it correctly, 300
which is what the original program should do.
When running the code for FLT LDG on pmSystems
the altitudes are displayed in reverse. For example FLT ALT
36000 in pmSystems is displayed as 00063 and
LDG ALT 240 in pmSystems is displayed as 042. Quite annoying.
I tested digit by digit with the Controller program, the positions
and the numbers are displayed correctly.
Has anybody experienced something like this.
I am usisng 7seg displays supplied by FDS, white digits
in a mounting card with a group of 5.
Regards to all.
-
05-28-2008, 07:32 AM #9
- Join Date
- Jan 2007
- Location
- Italy
- Posts
- 204
As you can see from your simple code the problem is hardware related, so i think you must connect the wire in reverse order, maybe the FDS PCB are different than OC in layout...
-
05-28-2008, 08:30 AM #10
Yup! I would agree You have your MSB and your LSB reversed. Take the common wire from your 7 segments and reverse the order that they are wired..
Trev________________________
Trevor Hale
Similar Threads
-
PMSystems?!
By coolmanak in forum General Builder Questions All Aircraft TypesReplies: 17Last Post: 10-24-2009, 10:06 AM -
MIP in PMSystems??
By Fuglsang in forum PMSystemsReplies: 4Last Post: 02-11-2009, 03:31 PM -
Do I have to have PMsystems?
By Xanderol in forum FS2Phidget UsersReplies: 5Last Post: 02-22-2008, 06:17 AM -
PMSystems
By Andras in forum FS2Phidget UsersReplies: 7Last Post: 10-22-2004, 04:42 PM