I would like to use the PWM outputs from VB. I have had some success in reading the pokeys data and setting outputs from vb script , but I can't figure out how to pass a PWM array to pokeys from VB script. I suspect its a syntax error , but EVEN after reading the manuals , I can't figure it out. I am attaching the offending lines below. I have also attached the whole vb script in case it is necessary to check the whole script.
' before these lines run, the pokeys unit is initialized , the build date is read in , the arrays are dim(ed) and
' start values are assigned. full details in attachment. script needs 8 userlabels and a button.
' here are problem lines. I tried many different syntax combos ?
' when the 2 lines below run , the vb scripts stated error is
' class does not support automation or does not support expected interface
b = device.SetPWMOutputs (channel() ,Period() ,duty() )
b = device.GetPWMOutputs (channel() ,Period() ,duty() )
thanks in advance