全球FlexSim系统仿真中文论坛

搜索
查看: 3879|回复: 3
打印 上一主题 下一主题

flexsim 通过串口RS232通讯

[复制链接]
跳转到指定楼层
1#
missman 发表于 2013-8-9 10:13:37 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
各位大侠,我最近做一个项目,希望能通过串口实现flexsim与另外一套数据采集系统实现通讯,不知道有没有谁弄过这个啊?/ S# ~3 M- {# F/ u

4 Y$ k: r* G( y5 w  C/ O# T- p6 G' B/ c% _拜托各位大侠給与指导。不胜感激!
2#
shadowwind 发表于 2013-8-9 13:42:55 | 只看该作者
1# missman
8 B& x5 D9 a. z3 H
; |9 }' J6 N0 z9 [) R: I/ c3 q* c- D: Y7 |9 c/ ?( Q$ }5 r  R
昝工,我会让工程师尽快回复您啊~
3#
 楼主| missman 发表于 2013-8-10 16:53:58 | 只看该作者
1# missman ( Q9 N9 O5 b5 q# \9 {2 f5 ^) J

+ ]4 R: b# N0 J" \2 J7 Y
' F' U, T. D1 N昝工,我会让工程师尽快回复您啊~
1 x; t8 e) ]* p& n9 D1 I0 `: F8 ]shadowwind 发表于 2013-8-9 13:42
5 ^' D* z/ s" ?& E; j
不胜感激!我已经将数据采集工作完成了,就差最后的仿真动画啦。
4#
shadowwind 发表于 2013-8-12 09:45:58 | 只看该作者
3# missman
: D4 V* |4 C1 R+ w9 u% K( O
& F+ p0 T; V7 q: {% c9 s
$ D5 O% u1 r% I2 f( \' G9 x* k昝工,您好,美国那边的工程师就这个问题回复如下
5 z2 R7 j/ w/ Y  \7 K  ]; C( Q:“FlexSim has built in functions that use Windows sockets for communicating with other applications.  My suggestion for using the RS 232 protocol would be to use some other application alongside FlexSim.  This third party application (either an application that is built in-house or one that is obtained elsewhere) could interact with the signals sent through the RS 232 port.  After processing the RS 232 signals, the application could send messages via Windows sockets to FlexSim and FlexSim would interact with those messages as needed.  You can find a number of socket related commands in the Command Reference section of the FlexSim User's Manual.
" c) f' }, o4 n
1 A% B7 s; a* x& nThe other option is to use C++ to translate the RS 232 signals into flexscript.  This could be done by building a DLL or by using C++ directly in FlexSim.  Similarly, they could use C++ within FlexSim (or a DLL) to interact with both the RS 232 signals as well as with FlexSim (without necessarily using flexscript).
/ A8 K" W& p" }$ ]8 M8 {5 n
8 Q( W# l7 ]' TAs far as the issues with objects acting weird in a model, it sounds like an issue with the graphics card.  The engineer can try putting FlexSim in compatibility mode to see if that is the case.  If compatibility mode fixes the issue, then I would suggest making sure the drivers for the graphics card on the computer are up to date by going through the graphics card manufacture's website.  After updating any graphics card drivers, I would make sure FlexSim is no longer using compatibility mode.
9 K* _* X2 s2 S+ Q9 C' i 7 Y; d. o9 G; f* d  c- a: y/ m
If the graphics card drivers are already up to date, then the issue might be resolved by trying a different graphics card or by keeping FlexSim in compatibility mode.  Compatibility mode can cause slow downs in bigger models because it does not use the graphics card, but if they are not big models to begin with then there should not be a noticeable difference.
9 n  e& s) |  ?, }4 |6 h
+ _! ~6 S8 T3 g! _( NLet me know if there is anything else I can do to help.1 ^+ g9 r) B* p' u+ v/ P
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|小黑屋|手机版|Archiver|全球FlexSim系统仿真中文论坛 ( 京ICP备14043114号-2 )

GMT+8, 2024-5-14 14:08 , Processed in 0.076753 second(s), 13 queries .

Powered by Discuz! X3.3© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表