Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Author
Message
briglass2
16
Years of Service
User Offline
Joined: 30th Jan 2008
Location:
Posted: 9th Feb 2008 16:34
I'm trying to use Multisync to read a string outputted to localhost with a Matlab tcp/ip function. Basically, I've set it up so that at http://localhost:3999 there is a string of a number.

Now, I'm trying to use Multisync in DBPro to read that number. I seem to have some success connecting to localhost because I do not get an error. However this is what the following commands return for me:

NET GET STRING() returns nothing
NET GET FLOAT() returns 3.5288...e-038
NET GET INT() returns 20980024
NET GET BYTE() returns 1 (always 1, and not the number I wanted)
NET GET WORD() returns 8054 (again, not the number I wanted)

How can I get it to give me the string that is there?

Here is my code:

Jerok
19
Years of Service
User Offline
Joined: 7th May 2005
Location: Mars. Wait a sec I\'m on MARS. OMG
Posted: 9th Feb 2008 23:45
I doubt you will be able to recieve the correct string as it was not sent by multisync. The system they use probably uses a different method of sending strings then multisync does.
Benjamin
22
Years of Service
User Offline
Joined: 24th Nov 2002
Location: France
Posted: 9th Feb 2008 23:52 Edited at: 9th Feb 2008 23:53
The manual explains what you need to do in order to allow other systems communicate with Multisync, have a look at the Using outside of DBP section. Strings sent/received are regular C-style strings.

Login to post a reply

Server time is: 2024-11-25 07:57:21
Your offset time is: 2024-11-25 07:57:21