211
General Mach Discussion / Re: Turn on an Output? Shamefully simple?
« on: November 19, 2010, 01:10:13 AM »
Make an on-screen button in a program like MachScreen
Set the function to "Execute VB-Script"
Enter code like this example in the "Execute Code" field
If IsOutputActive(OUTPUT4) Then
DeActivateSignal(OUTPUT4)
else
ActivateSignal(OUTPUT4)
end if
This will toggle output 4.
Set the relevant ouput to the pin of your choice in "Ports and Pins"
Hope this helps
Greg
Set the function to "Execute VB-Script"
Enter code like this example in the "Execute Code" field
If IsOutputActive(OUTPUT4) Then
DeActivateSignal(OUTPUT4)
else
ActivateSignal(OUTPUT4)
end if
This will toggle output 4.
Set the relevant ouput to the pin of your choice in "Ports and Pins"
Hope this helps
Greg