Installer Steam
log på
|
sprog
简体中文 (forenklet kinesisk)
繁體中文 (traditionelt kinesisk)
日本語 (japansk)
한국어 (koreansk)
ไทย (thai)
Български (bulgarsk)
Čeština (tjekkisk)
Deutsch (tysk)
English (engelsk)
Español – España (spansk – Spanien)
Español – Latinoamérica (spansk – Latinamerika)
Ελληνικά (græsk)
Français (fransk)
Italiano (italiensk)
Bahasa indonesia (indonesisk)
Magyar (ungarsk)
Nederlands (hollandsk)
Norsk
Polski (polsk)
Português (portugisisk – Portugal)
Português – Brasil (portugisisk – Brasilien)
Română (rumænsk)
Русский (russisk)
Suomi (finsk)
Svenska (svensk)
Türkçe (tyrkisk)
Tiếng Việt (Vietnamesisk)
Українська (ukrainsk)
Rapporter et oversættelsesproblem
What kind of communication between programming blocks were you thinking about? Is the other programmable block using EA as well, or another script?
Look at the "running other programs" section for details on how EA can interact with other programmable blocks.
Look at the end of "Who's who of what you can do" section to see how EA reads detailed info.
I think I found some other workaround, can't remember the details anymore but I'd be interested in the answer nonetheless.
Thanks My Dog,
I noticed i missed a question of yours a while ago and no one else replied to your query,
were you able to find a solution?
look below to my response to Bear Baron to see how to create a conditional loop. Keep in mind that when a programmable block is in a loop it can not do anything else or react to any new attempts at running it.
WriteNew is indeed better. Thank you.
What was the process to have an LCD display changing values real time? My Test Air Vent code will display pressure as I press the button but will not auto update. I didn't see it in the guide but the video shows you had a button and a light activate to keep values updating.
I don't plan to use it since a check of the Air vent is enough for what I need but I am just curious how its done.
you may want your first write statement to be WriteNew if you want it to over write the previous thing instead of creating a list.
Thank you.
Simple test Code block to test it out seems good I think I have some issues to work through.:
@Test Air Vent{
Clear LCD2
WriteLine to LCD2 = "Room Pressure: "
WriteLine to LCD2 = Room pressure of Air Vent Full
If Room pressure of Air Vent Full = Not pressurized
{
WriteLine to LCD2 = "Depressurized"
Rotate Rotor to 0 at 2
}
Else
{
WriteLine to LCD2 = "Pressurized"
Rotate Rotor to 90 at 2
}
}
________Or with Variable_______________________
@Variables{
airP = Room pressure of Air Vent Full
}
@Test Air Vent{
Clear LCD2
WriteLine to LCD2 = "Current Room Pressure: \airP"
WriteLine to LCD2 = Room pressure of Air Vent Full
If Room pressure of Air Vent Full = Not pressurized
{
WriteLine to LCD2 = "Depressurized"
Rotate Rotor to 0 at 2
}
Else
{
WriteLine to LCD2 = "Pressurized"
Rotate Rotor to 90 at 2
}
}
using "Room pressure" from the detailed info of the air vent should allow you to get the pressure status.
Getting the logic to deal with the 356 to 0 jump is possible but it is a bit complex.
This example uses the state of a MyLight to keep the StopRotor Codeblock running until one of the conditions triggers. This allows you to manually stop the loop by turning the light off as well:
@StopRotor{
OnOff of MyLight = On
if Current angle of MyRotor < 2{
RotorLock of MyRotor = True
OnOff of MyLight = Off
}
if Current angle of MyRotor > 358{
RotorLock of MyRotor = True
OnOff of MyLight = Off
}
if OnOff of MyLight = On{
@StopRotor
}
}