Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - brodie123

Pages: [1]
1
QB64 Discussion / Re: Multi Thread?
« on: July 09, 2018, 09:59:52 pm »
Awesome.  Thank you!!!


2
QB64 Discussion / Re: Multi Thread?
« on: July 09, 2018, 06:52:25 pm »
Thanks.

It's actually for an auto-helm for my boat that I wrote in QB64.  I have a separate 3rd party app that is the actual NAV sw where I plot my course and through the server port, sends the required compass direction for each next waypoint.  It uses the GPS to identify the current course heading however this has terrible lag - it calculates by measuring the current location, wait and then measure the location again giving you a 'fairly' accurate heading.  The lag causes the boat to sway.

I purchased a digital compass that reads the actual heading 20x a second, so no more lag.

I have a friend writing (in VB) an app to put the heading info into a data stream - so I need to know if QB64 can have 2 'clients' open at the same time. (I believe this is called multi threading)

The alternative is to write the data to an open file as I know QB64 can read open files - but is not a great way of doing it.

So can I have 2 client ports open at the same time as long as they are on different ports??

Thanks!!!!!!

3
QB64 Discussion / Multi Thread?
« on: July 08, 2018, 09:54:23 pm »
Hi all.

I'm wondering if QB64 supports what I believe is multi-threading. 

i.e.

client&=_OPENCLIENT ("TCP/IP:23:#.#.#.#")
client2&=_OPENCLIENT ("TCP/IP:24:#.#.#.#")

If not, I guess I would open a 2nd client in another QB64 instance but is it possible to share variable values between 2 instances of QB64?

Either will work for me - any suggestions are appreciated.  I only need to share a single value but need to read 2 clients.

thx!



Pages: [1]