Board index FlightGear Support Interfacing

Multiple output destinations using the generic protocol

Connecting two computers, using generic protocol, connecting with Matlab?

Multiple output destinations using the generic protocol

Postby alexklibisz » Mon Aug 08, 2016 8:39 pm

Is there a way to define two or more output destinations using the generic protocol?

I want to do something like this:

Code: Select all
fgfs
--generic=socket,in,200,localhost,5501,udp,fgfs-custom-input \
--generic=socket,out,200,localhost,5502,udp,fgfs-custom-output \
--generic=file,out,25,flight.out,playback \


But by doing this, it seems that only the flight.out file gets created and no output is written over a socket.

Any suggestions for writing to multiple destinations? Thanks!
alexklibisz
 
Posts: 14
Joined: Sat Jul 16, 2016 4:47 am

Re: Multiple output destinations using the generic protocol

Postby alexklibisz » Mon Aug 08, 2016 10:18 pm

Nevermind, this was actually a bug elsewhere that caused the protocol files to be copied to the wrong directory! The code above actually does work.
alexklibisz
 
Posts: 14
Joined: Sat Jul 16, 2016 4:47 am

Re: Multiple output destinations using the generic protocol

Postby Hooray » Mon Aug 08, 2016 10:28 pm

yes, it should work like this - it will put those files in the current working directory normally (CWD)
Please don't send support requests by PM, instead post your questions on the forum so that all users can contribute and benefit
Thanks & all the best,
Hooray
Help write next month's newsletter !
pui2canvas | MapStructure | Canvas Development | Programming resources
Hooray
 
Posts: 12707
Joined: Tue Mar 25, 2008 9:40 am
Pronouns: THOU


Return to Interfacing

Who is online

Users browsing this forum: No registered users and 1 guest