Hi
I am trying to run a 4424 over vb.net, but when I call ps4000_GetTimebase, the PICO_STATUS returns the error code 38 (or 26hex), apparently meaning "The memory index is out of range"
What does this mean, and what can I do about it?
The values returned by GetTimebase(handle,timebase,samples,time_interval,1,max_samples,1)
are
(1,21,10000,0,1,0,1)
This code works perfectly in the ps4000.xls example, but not when i update it into .net
Okay, I've updated all of the data types to those specified in the ps4000pg.pdf and I've also ensured that I have updated the appropriate "byval"s to "byref"s to update to .net, but I still get
pico_status = 38
I may have been mistaken in saying that this corresponded to "The memory index is out of range"- there is no definition of error code 38 so I assumed I would have to convert to hex, which is 26: memory index out of range.
Ah- while my status variable was set okay (integer), some of my other data types were wrong- I was using longs where i should be using integers. Turns out you were right with your first reply!
Thanks for the help