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.
Hi, if you search in the forum i had already put the code for FLT and LNG altitude display for sioc and PM Sys.
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.
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
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.
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!!.
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.
Post Thanks / Like - 1 Thanks, 0 Likes, 0 Dislikes
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.
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...
2000+ Poster - Never Leaves the Sim
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..