Release 2013.07.22.00

 
#1

This release contains a rewrite of the EZ-Script compiler for more features, functions, scientific math and compliance. The old compiler allowed you to embed variables within a quoted string ( i.e. "Text: $variable" ). However, that wasn't a compliant syntax to be similar with other programming languages. The new compiler requires the strings to be concatenated (i.e. "Text: " + $variable). This will aid in education and readability.

There is also a slight speed increase in the compiler. And many new functions for Math and Logic.

A really neat add-in is a new control for the Apple Mobile Device App called FNI Co. Sensor Streamer. There is both a free and paid version available. The control can be found under the Misc category of Add Control. The control will set variables to the values of parameters from the application. This includes sensors such as Compass (teslameter), Accelerometer, Gyroscope, GPS (longitude, latitude), and touchscreen. It's a really great app! Download App: https://itunes.apple.com/app/sensor-data-streamer/id608278214?mt=8

Changes:

- New EZ-Script compiler

- New Control: Sensor Streamer Server

- New memory Variable Manager

- File->Open dialog remembers last open location
To Use

1) Load EZ-Builder
2) Select Projects tab from top menu
3) Press Add Control
4) Select MISC tab
5) Add the control "Sensor Streamer Server"

The control will default to port 1111. Configure your Mobile Device to connect to your computer's IP Address. The control will display the Accelerometer, Gyroscope and Compass Direction. The Config menu will allow you to assign sensor values to EZ-Script variables. The Sensor Stream Server will also control servos. This can be configured under the Config menu of the control.

User-inserted image

User-inserted image

  Get EZ-Builder for Windows

#2

Now this i Like Grin Grin Grin
Thank You

#3

Fantastic thanks Smile

#4

DJ and Co.

It's working PERFECTLY!

However the app you configured Ez-Script around is actually named "Sensor Data Streamer" By FNI Co., LTD and costs .99.

To get my correct ip address for the app, I clicked:

Windows Start>typed cmd enter>ipconfig enter
That displays IPv4 address which usually starts with 192.168.1.2 The last two numbers will vary.

Also with a poor wifi connection, if I turn the sample rate up too high it starts to behave erratically. But I don't think that more than 10-20 Hz would be necessary.

I'm glad I didn't buy a gyro and GPS...

Thanks for all you do!

#5

Cool, although now I need to fix a bunch of scripts but never mind Smile

One quick question (I have not updated yet as I am at work). With the new syntax of "text" + $variable, some of my scripts display $variable1 $variable2 $variable3. If they are decimal would

Code:

Print($variable1 + $variable2)


add the 2 variables together like it does with

Code:

$variable4 = $variable1 + $variable2



Hopefully that makes sense. I'll be trying it as soon as I can but wanted to know before I sit down and fix the scripts.

#6

What you want to do is (like all languages) is add a blank space...

Code:


$x = 5
$y = 3
print($x + " " + $y)


Outputs: 5 3


Or if you want them beside each other as a string...

Code:


$x = 5
$y = 3
print(ToString($x) + ToString($y))


Outputs: 53

#7

Thanks Smile Although I don't know what I was thinking (it's early, I've not had my coffee yet) but none of my scripts are like I said anyway but that's good info to have. I guess I should be using the ToString() command more often too

A pre-emptive strike as I know a few of my scripts wont work now, I will fix them as soon as I can. It should be limited to only a handful. Smile

And thanks for the update! Smile

#8

Likewise received with thanks DJ and team...

The improved syntax will aid in teaching... appreciated.

@tameion

#9

There are several similar sensor streaming apps for Android. I will try some out (at least ones that do UDP streaming). I suspect the new feature would work with any of them.

Alan

#10

Alan, I would be really interrested by your tests with Android apps... please don't hesitate to share your results. Smile