External Interface Connections not refreshing calculations

I’m running into a problem with external Interface data connections. I finally tracked it back to a rather nasty bug…

I set up an input field in HTML and linked it to refresh the Excelsius cell with read/write access. The JS works and the data fires off. If I am lookind Directly at the cell for updates it works well. If that cell then feeds into a calculation… “BOOM” it dies.

As a test I set up 2 fields. One links directly to the field that is being changed, while the other has a simple equation to copy the contents of that field and contact it with a string on each end. When I start the model with a default of 100 I get this in the 2 fields…

Direct field - ‘100’
Referenced field - ‘:100:
This is correct. Now, I change the value in the form and expect to see ‘200’ and ‘:200:’ respectively, but instead I get this…

Direct field - ‘200’
Referenced field - ‘::’

Something is killing the value or not recalculating it correctly in all the equations. Is there a way to force a refresh of the values/data? Seems like this makes the entire connection type almost useless for most interaction. Ideas/suggestions appreciated.


mediamacros (BOB member since 2009-06-04)

The plot thickens…

So I tried some other options. Any large number gives the result above. I then typed in i and got this…

‘1’
‘:true:’
If I type 0 I get
‘0’
‘:false:’
So if I try to display the results directly from the field it can see the full text/number, but if anything else tries to access it it seems to try to resolve it to a literal boolean so anything other than 0/1 is a blank string. I tried type casing in JS so I was sending a float, a number, etc instead of a string. I also set up the fields in excel so they had specific types associated with them. No luck either way. This looks like a definite bug in Xcelsius.


mediamacros (BOB member since 2009-06-04)

In case anyone is wondering, I did get Tech support ($200 later) to acknowledge that this is in fact a bug. So now I am looking at other options…

FSCommand seems to send out commands to the page, but I don’t see a way to bring data back into Xcelsius this way. Am I missing something?

Does anyone have any other methods, samples, or ideas for passing values into Xcelsius from JavaScript in a page?


mediamacros (BOB member since 2009-06-04)