If you have a problem or need to report a bug please email : support@dsprobotics.com
There are 3 sections to this support area:
DOWNLOADS: access to product manuals, support files and drivers
HELP & INFORMATION: tutorials and example files for learning or finding pre-made modules for your projects
USER FORUMS: meet with other users and exchange ideas, you can also get help and assistance here
NEW REGISTRATIONS - please contact us if you wish to register on the forum
Users are reminded of the forum rules they sign up to which prohibits any activity that violates any laws including posting material covered by copyright
Using Variables
2 posts
• Page 1 of 1
Using Variables
Your software is great, but being able to create variables would be awesome, eg, phidget analog input1 minus phidget analog input2 stored in (Result1) variable, then being able to use (Result1) anywhere in program. Is this possible???
Thanks
Thanks
- robbiecat07
- Posts: 1
- Joined: Sat Oct 23, 2010 2:00 pm
Re: Using Variables
The nearest thing would be the 'wireless' connectors.
They allow you to send values around the schematic without the need to draw links between them.
They have to be used with care though...
- The connection is only made for modules contained inside the same 'mother' module as the transmitter. This is actually quite useful - by putting the transmitter somewhere inside a module, you make it a 'local variable' that is independent of other similarly named transmitters in other modules. You can see this in action inside the toolbox 'knob' modules, where they are used to transmit the 'properties' around the module.
- Both the name (case sensitive and you can include spaces and most 'special' characters) and the connector type (float, integer, string etc.) must be identical. If you right click the little connection circle, you can set a data type from the context menu, to ensure that the connection is not accidentally lost if SM tries and fails to set the type automatically.. You can see when they are connected, as the little 'radio waves' symbol will go green.
- The biggest problem of all is that there is no 'find' function to locate the transmitters and receivers by name, or to automatically link edits to the names - so they can be very hard to find, easily leading to lost connections because of 'orphan' receivers that you forgot were there. So you will need to be very organised in how you use them!!
All the same, they can be very useful. I mostly tend to use them for global user 'preference' settings, and to send bitmaps to my controls, so that I can quickly 're-skin' the look of many controls at once - and it will work with most of the different data types including even busses (multiple data sources along one link).
They allow you to send values around the schematic without the need to draw links between them.
They have to be used with care though...
- The connection is only made for modules contained inside the same 'mother' module as the transmitter. This is actually quite useful - by putting the transmitter somewhere inside a module, you make it a 'local variable' that is independent of other similarly named transmitters in other modules. You can see this in action inside the toolbox 'knob' modules, where they are used to transmit the 'properties' around the module.
- Both the name (case sensitive and you can include spaces and most 'special' characters) and the connector type (float, integer, string etc.) must be identical. If you right click the little connection circle, you can set a data type from the context menu, to ensure that the connection is not accidentally lost if SM tries and fails to set the type automatically.. You can see when they are connected, as the little 'radio waves' symbol will go green.
- The biggest problem of all is that there is no 'find' function to locate the transmitters and receivers by name, or to automatically link edits to the names - so they can be very hard to find, easily leading to lost connections because of 'orphan' receivers that you forgot were there. So you will need to be very organised in how you use them!!
All the same, they can be very useful. I mostly tend to use them for global user 'preference' settings, and to send bitmaps to my controls, so that I can quickly 're-skin' the look of many controls at once - and it will work with most of the different data types including even busses (multiple data sources along one link).
All schematics/modules I post are free for all to use - but a credit is always polite!
Don't stagnate, mutate to create!
Don't stagnate, mutate to create!
-
trogluddite - Posts: 1730
- Joined: Fri Oct 22, 2010 12:46 am
- Location: Yorkshire, UK
2 posts
• Page 1 of 1
Who is online
Users browsing this forum: Google [Bot] and 73 guests