DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

The other kind of Pi

Diademm 9.10.2160 SP 1b

Try this DAC and look the result.

Dac-Script original :

Dim Pi : Pi = 3.14
Sub SFD_ReadChannel( ChannelNumberP, ParamP, DataP, ErrorP )
  DataP = Pi
End Sub


and modification:

Dim Pi_ : Pi_ = 3.14
Sub SFD_ReadChannel( ChannelNumberP, ParamP, DataP, ErrorP )
  DataP = Pi_
End Sub

The predefined VBS-constant Pi is unknown in DAC-Script. But not compleed unknown? In first script the script interpreter seems to remember the Pi -predefinition, but it makes a mistake in converting the decimal sign, or what's going on here?


0 Kudos
Message 1 of 2
(3,286 Views)
Hi Bohm,

Yes this was hard to understand. The upcoming DIAdem version will have the following note in the help:

Note: You cannot use DIAdem commands in the Script DAC driver. You only can access DIAdem variables in the read mode. To do so you must declare the DIAdem variables using Dim, in the global section of the script. DIAdem then copies the current contents of the DIAdem variables onto these script variables.

Thank you,
Ralf
0 Kudos
Message 2 of 2
(3,277 Views)