07-09-2019 09:17 AM
I keep getting this error sometimes when I run my script. My code is as follows
If Data.Root.ChannelGroups("GeneralInformation").Channels("Fuse Groups").Values(3)<>"" Then
Call DataBlClpCopy("[5]/Fuse Groups",20,1)
'Call oUDI.Sleep(1000)
Call DataBlClpPaste("[5]/Fuse Groups",3,0,0)
End If
I thought it might be because Diadem attempts to paste before it has finished copying, so I put a wait command inbetween but this didnt help.
Does anyone know what else I could try to solve this problem?
Solved! Go to Solution.
07-10-2019 11:39 AM
Hi warburtonj,
How about if you try a different command to accomplish the same thing, one that doesn't use the Windows clipboard:
Call DataBlInsert("[5]/Fuse Groups", 20+1, 1, "[5]/Fuse Groups", 3)
You have to add the "ValNo" (1) to the "ChnRow" (20) when you're writing from the same channel to itself, because the command extends the channel length before it copies the channel value.
What version of DIAdem are you using? There will be other options we can try, depending on how recent your DIAdem version is.
Brad Turpin
DIAdem Product Support Engineer
National Instruments
07-11-2019 06:20 AM
Thanks, that seems to have solved it . I've not got the error again yet anyway after running the script through a few times.
I am using DIAdem 18.0.0(64-bit)
James