1. Do not share user accounts! Any account that is shared by another person will be blocked and closed. This means: we will close not only the account that is shared, but also the main account of the user who uses another person's account. We have the ability to detect account sharing, so please do not try to cheat the system. This action will take place on 04/18/2023. Read all forum rules.
    Dismiss Notice
  2. For downloading SimTools plugins you need a Download Package. Get it with virtual coins that you receive for forum activity or Buy Download Package - We have a zero Spam tolerance so read our forum rules first.

    Buy Now a Download Plan!
  3. Do not try to cheat our system and do not post an unnecessary amount of useless posts only to earn credits here. We have a zero spam tolerance policy and this will cause a ban of your user account. Otherwise we wish you a pleasant stay here! Read the forum rules
  4. We have a few rules which you need to read and accept before posting anything here! Following these rules will keep the forum clean and your stay pleasant. Do not follow these rules can lead to permanent exclusion from this website: Read the forum rules.
    Are you a company? Read our company rules

USB - RS 485 - Strange

Discussion in 'SimTools compatible interfaces' started by Fahim, Jun 7, 2010.

  1. Fahim

    Fahim Member

    Joined:
    Dec 11, 2008
    Messages:
    436
    Balance:
    307Coins
    Ratings:
    +2 / 0 / -0
    I bought two standard usb rs485 adaptors from ebay for around 12 pound each.

    I had them plugged in USB slots COM3 & COM4 in my computor. My computer has 6 USB slots.

    I was getting actuator outputs of:

    40-62 outs per second, sometimes 80 outputs.

    I plugged the adaptors into COM5 & COM6 USB slots and all of the sudden:

    Out puts of 140-166 per second, sometimes showing 200 outputs.


    I dediced to use simxperience test range profile and do the test and keep the scn5 interface page open so i can see the outputs per second change as I'm moving the bars up on the test profiler.

    So as I'm moving the bars up and down and the outputs are going from 140 up to 160, then maybe down to 150, once (rarely this happens) sometimes flashing to 200 out puts per second.


    Anyway com 5 & 6 on my quad core makes the chips work better but are the outputs supposed to change always.
  2. bvillersjr

    bvillersjr Active Member

    Joined:
    Oct 11, 2008
    Messages:
    1,174
    Location:
    Ohio, USA
    Balance:
    438Coins
    Ratings:
    +23 / 1 / -0
    The updates will fluctuate when you are moving the slider. It is better (read more consistent) to gauge the performance of your adapters just after profiler startup. A well tuned adapter will provide 200-300 updates per second just after profiler startup and before pressing start or moving the sliders around.

    All of this being said, this reported number can be misleading. Just because X-Sim sees that you are sending 250 updates per second out to the virtual COM port, this does NOT mean that the virtual com port is flushing its buffer frequently enough to provide this level of performance.

    Most off the shelf adapters will buffer X-Sim's outputs into the USB buffer and flush the buffer out to the actuators when a certain buffer size is reached or when a time interval has elapsed.

    Many articles have been written in these forums on how to optimize the FTDI chip based adapters and most folks are able to achieve good update rates with them.