Skip to content
View in the app

A better way to browse. Learn more.

The AVSIM Community

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Help needed for write command FSUIPC and Visual Basic.

Featured Replies

Hi all,Does someone know how the write command has to be regarding writing values to FSUIPC from Visual basic ????I,am using the Visual basic SDK from PD,Eksamples would be greatAny help is highly appreciated,JSDK.

Hi JSDK,I sent you a relpy in response to your private message.Incase anyone else wants to know and so this info is in the forum i'll repeat is here...The example assumes you've already logged onto the sim. This proceedure runs from a check box on a form. The checkbox writes the value of the pitot heat (on/off).

--------------------------------------------Private Sub chkPitot_Click()	' Write Pitot On/Off up to FS2002	' Dim variables	Dim bytPitotValue As Byte	Dim dwResult As Long	Dim bolOK As Boolean	' Set the correct value of the intPitotValue variable (1 or 0)	If chkPitot.Value = vbChecked Then		bytPitotValue = 1	Else		bytPitotValue = 0	End If	' Do the write and get the return value to check write was OK	bolOK = FSUIPC_Write(&H29C, 1, VarPtr(bytPitotValue), dwResult)	' If return value was not 'true' then something went wrong	' so print the error number from dwResult	If Not bolOK Then	   MsgBox "Error writing - result is " & dwResult	End IfEnd Sub----------------------------------------------

To write to offsets with different sizes change the second parameter of the FSUIPC_Write() function AND change the type (size) of the variable holding the source data (bytPitotValue in the above example).For offsets of size 1 dim as bytefor size 2 dim as integerfor size 4 dim as longPaulEGJJ

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.