Posts: 18
Threads: 4
Joined: Oct 2012
I'm having trouble figuring out the syntax for activating a UPB Link in my HAI OmniPro. According to the driver documentation I need to use the InvokeCmd field for the following command information:
UPBLink=lll,sss Activates or deactivates UPB link with the number lll. The state is in sss and 1 indicate activate and 0 indicates deactivate.
So I do a FieldWrite.(HAIOP2.InvokeCmd, UPBLink=010,001, True)
Any idea what I'm doing wrong or the proper syntax?
Posts: 40,483
Threads: 491
Joined: Aug 2002
That's a UPB specific command in the Omni, so I'm not sure exactly what they are wanting. If the link is mapped to an Omni load number, then try just giving the load name, like Unit032 or something and see if that works. What is the result of the command you are doing? Is it getting rejected or just nothing is happening?
Dean Roddey
Explorans limites defectum
Posts: 40,483
Threads: 491
Joined: Aug 2002
I looked and it's just wanting a number. The Omni docs don't say what that number is. It just says it wants a number and that it activates or deactivates a UPB Link. I am just taking the number you provide and sending the appropriate command with that number.
Dean Roddey
Explorans limites defectum
Posts: 40,483
Threads: 491
Joined: Aug 2002
Oh, duh! The docs are wrong. The actual info is:
UPBLinkOn = lll
UPBLinkOff = lll
So there are two separate commands for off and on. That must have gotten changed from the old driver and the docs update didn't catch that. I'll put it on the list o' docs fixes to take care of.
Anyhoo, try that and see how it works.
Dean Roddey
Explorans limites defectum
Posts: 18
Threads: 4
Joined: Oct 2012
That did the trick! Thanks a bunch Dean!
Now my scene works like a charm!