DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

diadem,bode plot

Hi Brad,

 

Thanks for reply, i tried by that but still it's giving same error, i m sending u the tdm file which i have.

 

Thanks

Nidhi 

0 Kudos
Message 21 of 24
(1,580 Views)

Well Nidhi,

 

I was able to reproduce the error you described with the TDMS file you sent and the old code I sent you, but when I implemented the "CLng()" change I mentioned the other day the error went away.  Try this code on your end:

 

Sub LoadTimeSubset(FilePath, DataPlugin, ChnStr)
  Dim DataFileHeader, Offset, Delta, Length, StartIdx, StopIdx
    :

    :

  StartIdx = 1 + CLng((R11 - Offset)/Delta)
  StopIdx  = 1 + CLng((R12 - Offset)/Delta)

  IF StartIdx < 1 THEN StartIdx = 1
  IF StopIdx > Length THEN StopIdx = Length
  Call DataDelAll
  Call DataFileLoadRed(FilePath, DataPlugin, ChnStr, "IntervalWidth", 1, eInterFirstValue, StartIdx, StopIdx)
End Sub ' LoadTimeSubset()

 

Brad Turpin
DIAdem Product Support Engineer
National Instruments

0 Kudos
Message 22 of 24
(1,564 Views)

Hi Brad,

 

Thanx a lot,it works very fine.

 

Thanks

Nidhi 

0 Kudos
Message 23 of 24
(1,535 Views)

Nidhi,

 

Hope your problem is solved. Do let us know if you have further issues.

 

Gaurav

 

 

0 Kudos
Message 24 of 24
(1,470 Views)