Jump to content
The simFlight Network Forums

KIKUTARO

Members
  • Posts

    3
  • Joined

  • Last visited

About KIKUTARO

  • Birthday 01/01/1970

Contact Methods

  • Website URL
    http://

Profile Information

  • Location
    JAPAN

KIKUTARO's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. Thank you very much , Pete. It is good to have company in trouble. I believe this finally ends the matter. Many thanks for your advice! :D
  2. Thank you for reply, Pete. Let me explain you a reason why I want to FSUIPC_Write and Read continuously.I made a small 777-MCP hardware with a rotary encoder sws, 7-segleds and microcomputer. It sends and receives a data to and from VB program via RS232C port. I want a two-way conversation between a hardware MCP and FS MCP (i.e. if I operate a hardware MCP ,it changes value of FS MCP. And otherwise) In the VB program , SubProcedure is running 500ms cycle. It works... Step1. Check whether a value of hardware MCP changes or not. If it has changed , sends it to FS. (at this time a value of FS MCP on screen changes) Step2. Check a value of FS MCP. If it has changed , sends it to hardware MCP via RS232C. A problem is there are differences between FS MCP value on screen and read value from FS MCP in Step2. So I tried some of test using simple VB program, and noticed FSUIPC_READ() can't read a correct value after in just a sec FSUIPC_WRITE(). But I might be unintelligene about FSUIPC. What should I see to learn how to use of FSUIPC_Read, Write, Process_?? Best Regards.
  3. Hello , everybody. I've been sufferig from a problem using FSUIPC_READ() during the past one month. I use FSUIPC 3.48 , VB5 and FS2004. What I like to do is , 1. Write a value (f.e. altitude) to FS's MCP via FSUIPC_WRITE(). 2. Shortly thereafter , read altitude of FS's MCP via FSUIPC_READ(). I can't get a correct value first, but while trying in severaltimes I can get correct value. But I'd like to get it as quickly as possible. My VB code is below. Please somebody teach me what my mistake. Best regards ' ---------------------------- Dim FsAlt(4) As Byte Dim alt As Long Dim AltFnl as Long alt = 5000 * 0.3048 * 65536 ' --- alt=5000 ft Call FSUIPC_Write(&H7D4, 4, VarPtr(alt), dwResult) '---Write alt to FS Call FSUIPC_Read(&H7D4, 4, VarPtr(FsAlt(1)), dwResult) '--- Read alt from FS Call FSUIPC_Process(dwResult) AltFnl = (FsAlt(1) + FsAlt(2) * 256& + FsAlt(3) * 65536 + FsAlt(4) * 16777216) / 19975.3728 '-----------------------------
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use. Guidelines Privacy Policy We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.