question

立洲 avatar image
0 Likes"
立洲 asked Ben Wilson commented

Webserver

為什麼我不能選擇任何東西

1683691086551.png

FlexSim 20.0.10
webserver
· 1
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Jeanette F avatar image Jeanette F ♦♦ commented ·

Hi @立洲 , was Ben Wilson's answer helpful? If so, please click the "Accept" button at the bottom of their answer. Or if you still have questions, add a comment and we'll continue the conversation.

If we haven't heard back from you within 3 business days we'll auto-accept an answer, but you can always unaccept and comment back to reopen your question.

0 Likes 0 ·

1 Answer

·
Ben Wilson avatar image
0 Likes"
Ben Wilson answered Ben Wilson commented

Hi @立洲 ,

It looks like you need to provide a valid path to your FlexSim model directory in order to choose a model file to open.

See the Webserver documentation about Configuration:

https://docs.flexsim.com/en/Reference/DeveloperAdvancedUser/Webserver/Webserver.html#configuration

Make sure that your paths are appropriate. Sometimes you need to change from using a shortcut like %DOCUMENTS% to using your model directory's full and complete path, for example like this:

C:\Users\joe.user\Documents\FlexSim 2023 Projects

· 7
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

立洲 avatar image 立洲 commented ·

能不能給個視頻或者執行方法的步驟,我電腦上執行不了

via Google Translate:

Can you give a video or the steps to execute the method? I can’t execute it on my computer.

0 Likes 0 ·
Ben Wilson avatar image Ben Wilson ♦♦ 立洲 commented ·

@立洲

FlexSim's Webserver has a configuration file which by default can be found in its installation directory, here:

C:\Program Files (x86)\FlexSim Web Server\flexsim webserver configuration.txt

You need to modify that file to change paths so that they will be accurate for the location of folders on your computer. In particular, the final error message in your video indicates that the following paths need to be configured properly:

  • Flexsim Program Directory
  • Model Directory

These are highlighted in this screenshot of the configuration file:

1684418059145.png

In the screenshot I've entered the default program directory for FlexSim 2020 (the version you've indicated on your question above), and the directory to my personal FlexSim 2020 Projects folder. You'll need to enter similar paths that are specific to your computer.

Once you've modified the configuration.txt and saved the file, try starting the FlexSim Webserver again.

0 Likes 0 ·
1684418059145.png (64.9 KiB)
立洲 avatar image 立洲 commented ·

What do these errors mean when I install

0 Likes 0 ·
媒體1.mp4 (4.3 MiB)
Jacob Gillespie avatar image Jacob Gillespie ♦ 立洲 commented ·

@立洲

npm is trying to install node-sspi. It has an optional dependancy named dtrace-provider which has a dependancy called node-gyp. Aparently node-gyp needs python in order to build. However since dtrace-provider is an optional dependancy it just skips it. So this error is harmless.

1684430957406.png

1 Like 1 ·
1684430957406.png (166.7 KiB)
Ben Wilson avatar image Ben Wilson ♦♦ 立洲 commented ·

@立洲

My guess is that you already have a different version of node.js installed, and FlexSim Webserver's node.js installation is not compatible with that version.

You can find similar errors on this community by checking some of the results found by searching "node.js" on this community.

In particular, @Jacob Gillespie gives some good advice in his answer here about manually installing the node modules. We give some other advice in other answers, including removing all versions of node.js before installing FlexSim Webserver. Try the suggestions you find in those other answers. Hopefully one will lead you to a solution.

By way of example, a normal install of the FlexSim Webserver looks like this:

animation.gif

"Unable to locate..." errors like the kind you see at the end of this .gif are resolved by setting the correct paths in the Webserver's configuration.txt file, as described in my previous comment.

0 Likes 0 ·
animation.gif (1.2 MiB)
立洲 avatar image 立洲 Ben Wilson ♦♦ commented ·

I successfully installed and opened the web version of the model, but I found a problem, why the Web Server Model does not display the dashboard data.

I use the latest version of Web Server

1684457409813.png

1684457584328.png



0 Likes 0 ·
1684457409813.png (526.5 KiB)
1684457584328.png (332.9 KiB)
Show more comments

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.