Hi
I unpacked my IX T7A today and I already have some problems....
I am using iX Developer 2.0 Sp1 Build 2.0.463.0 on Win7 32bit
1.
I think I found a bug:
On a brand new project with t7a and the demo controller add a analog numeric set to tag1 and a text.
set a dynamic to fill and add a color for 0/0 and tag1 for the text.
add a expression Bit0IsSet: (value & 0x1) == 0x1
The color does not change (in simulation while changing the value for tag1 using the numeric)
change the expression to (Globals.Tags.Tag1.Value & 0x1) == 0x1
and the color changes as expected....
2.
Is there a simple way to create a toggle button which shows the state of a tag by inset and outset 3d effects? i am building something with text, fill and onMouseDown (why is there no onClick event in text?) but i did not find the 3d effect.
3.
I tried to change the padding values for the text in xaml code. I could change them for numeric but they change back immediately for text.
4.
I bought the starterkit with the software but the simulation still says something about demo mode.
5.
Is there more documentation on scripting and the creation of own controls?
thanks in advance
Getting Started Issues
-
- Posts: 824
- Joined: Tue Mar 13, 2012 9:53 am
Re: Getting Started Issues
1) "value" is a variable that is returned to iX Dev. It is not the same thing as Globals.Tags.Tag1.Value. They are two completely different objects. You can not use value as a variable in your expression, it can only be assigned to i.e, "value = something + something"
2) You have no control of the 3d effect of a button. You would need use a multi-picture and create your own images that have a 3d look. Then by associating your multi-picture with a tag. When the tag changes value your mutli-picture will show the correct image.
3) We do not recommend changing the Xaml, as iX Dev has a custom Xaml implementation. Not all Xaml modifications are acceptable. When they are not, iX Dev may remove them from the Xaml.
4) When you simulate on a PC, it will always say DEMO mode. The only way you can run your project on a PC and not have it say DEMO is to purchase a runtime license.
5) Beijer does not provide full support for scripting in iX Dev because the programmer has full access to the .NET framework. There is a help system that has iX function definitions that you bring up by going to a script window in iX Dev and pressing F1. Newer versions of iX Dev are not necessarily backward compatible as far as scripting is concerned. When upgrading to a new version of iX Dev you may need to modify your C# code.
2) You have no control of the 3d effect of a button. You would need use a multi-picture and create your own images that have a 3d look. Then by associating your multi-picture with a tag. When the tag changes value your mutli-picture will show the correct image.
3) We do not recommend changing the Xaml, as iX Dev has a custom Xaml implementation. Not all Xaml modifications are acceptable. When they are not, iX Dev may remove them from the Xaml.
4) When you simulate on a PC, it will always say DEMO mode. The only way you can run your project on a PC and not have it say DEMO is to purchase a runtime license.
5) Beijer does not provide full support for scripting in iX Dev because the programmer has full access to the .NET framework. There is a help system that has iX function definitions that you bring up by going to a script window in iX Dev and pressing F1. Newer versions of iX Dev are not necessarily backward compatible as far as scripting is concerned. When upgrading to a new version of iX Dev you may need to modify your C# code.
Best Regards,
Mark Monroe
Beijer Electronics, Inc. | Applications Engineer
Mark Monroe
Beijer Electronics, Inc. | Applications Engineer
Re: Getting Started Issues
Sorry for my late reply. I have not been working on this for a while...
1)This can not be true... the expression Bit0IsSet: (value & 0x1) == 0x1 is your example from the library bit operators. and there must be a way of using the input variable in the expression.
By the way: the expression value = value + 7 works perfectly, value = value & 1 does not.
6) Almost every time when I try to download a project to the device, I have to delete the exe file in the projectfolder\temp\output\ first and the download fails about three of four times.
Is there a way of fixing this?
1)This can not be true... the expression Bit0IsSet: (value & 0x1) == 0x1 is your example from the library bit operators. and there must be a way of using the input variable in the expression.
By the way: the expression value = value + 7 works perfectly, value = value & 1 does not.
6) Almost every time when I try to download a project to the device, I have to delete the exe file in the projectfolder\temp\output\ first and the download fails about three of four times.
Is there a way of fixing this?
-
- Posts: 824
- Joined: Tue Mar 13, 2012 9:53 am
Re: Getting Started Issues
To use the referenced value in your expression you can go Globals.Tags.MyTag.Value. If that tag was associated with your Analog Numeric Box, or other obejct that you are using an expression on, then it will reference the value in that box. "value" should only be used as the result of your operation because it is hard to know what it refers to. It is easy to make mistakes and not remember which tag "value" is referring to.
"value & 1" is a bit wise AND operation.
(value & 0x1) == 0x1 would be a logical test.
Does (value & 0x1) equal 0x1? is the question it asks.
I am guessing that you may have stored your project on a network drive. Or you may not have proper permissions to access your project folder. Normally downloading to a project works fine.
"value & 1" is a bit wise AND operation.
(value & 0x1) == 0x1 would be a logical test.
Does (value & 0x1) equal 0x1? is the question it asks.
I am guessing that you may have stored your project on a network drive. Or you may not have proper permissions to access your project folder. Normally downloading to a project works fine.
Best Regards,
Mark Monroe
Beijer Electronics, Inc. | Applications Engineer
Mark Monroe
Beijer Electronics, Inc. | Applications Engineer