Home Programming

Discussion

Left ArrowBack to discussions page
tor_odigotor_odigo Posts: 8 Apprentice
edited May 19 in Programming
Hello,

Simple question about making functions in script codes in Polyscope on UR:

when making function like this:

def Funk()
set_digital_out(0,True)
end

and then make another script code with the line:

Funk()

I get an error message on the set_digital_out(0,True). What am I doing wrong?

Thanks in advance,
Tor

Comments

  • bcastetsbcastets Vacuum Beta tester Posts: 176 Handy
    The ":" is missing after Funk().
    Here below is an extra of UR script manual which you can download from UR website:

    set_digital_out(0,True) looks ok.

    Here below is the description of set_digital_out available in UR script manual.


  • tor_odigotor_odigo Posts: 8 Apprentice
    That was it! Should have looked more carefully... Thank you.
Sign In or Register to comment.
Left ArrowBack to discussions page