For the past 2 years I have been using a Delphi program, written by myself, to gather information from a test rig via an ADC100 device and the parallel port. All has been fine until I connected your USB/Parallel Port Adapter.
The program has been altered to read from USB-PP1 instead of LPT1 (port 101 instead of port 1).
My software is requiring readings to be taken over a 16sec time scale and sample 3000 times in that time, normally no problem.
This is set by the following method:
adc100_set_range(10000,1000); {Set ADC100 voltage range dependant on test in this case ±10V and ±1V}
adc100_set_interval (16000000, 3000, 0);{16 secs @ 3000Chn A}
Unfortunately since installing the USB adapter this just does not happen! ,it appears that no sampling takes place unless I slow it right down.
I have run your Delphi sample program in both Delphi 3 and Delphi BDS 2006 and found that 'Slow' sampling is fine but 'Fast' block just does not appear to work.
Just as an aside I have an older ADC10 device which when connected with the USB/Parallel adapter samples in fast and slow mode absolutely fine.
Can you help solve this problem?.
Thanks in advance
chris....
p.s. Picoscope seems o.k running fast <1mS with the USB/Parallel adapter.
With reference to the original question above........
Having had similar problems with a PS3224 which turned out to be syntax and variable type issues regarding use within Delphi environment.
Has anybody out there successfully adapted a Delphi coded progam using a parallel port (ADC100) to a parallel port (ADC100) that uses the USBPP adapter???.
Although I have adapted my program to use the newer PS3224 device its bugging me that I haven't been able to make the ADC100 function correctly using the USBPP adapter.
And yes I am using the latest drivers and Picoscope appears to function correctly.
Many thanks for your reply.
I have changed the code as you suggested and found that the USBPP adapter is now starting to operate. But, I seem to be limited to a maximum interval length of 2 seconds.
If I set the interval length to anything above this then the program seems to freeze. I have tried different sample values (100 thru to 3000) and have found that the number of samples appears to have no effect.
Is there a limit to the interval period whilst using the USBPP adapter?.
Hi
Thanks for your reply.
I have tried PicoScope on my desktop and the laptop computer I mainly use with the following results..
1, Desktop 1.3GHz/512Mb running XP Home. Picoscope runs fine with both USBPP adapter and the Parallel port.
Running your example Delphi program with the modified code the fast sampling is fine until a period longer than 3 seconds is used whilst using the USBPP adapter. Using the parallel port only, all is ok.
2, Acer 1.5GHz/1Gb laptop running XP Home. Using the USBPP adapter the Picoscope is very 'jerky' (1 to 2 second delays between samples) and anything over 100ms/divs provides an incomplete trace length. With the X scale set to 1s/div the trace starts and then is cut short after anything from 1/4 second to 1.5 seconds before clearing.
Running your example Delphi program with the modified code the fast sampling, as descibed before, is fine at any period shorter than 2 seconds.
Are you aware of any conflicts with Firewalls or Anti-virus software?.
Are USB ports on laptops any different from desktops?. Silly question I know but I had to ask.
Hi I would try and make sure that the anti virus software is not causing this problem, I have had a a customer with a problem with his anti virus software causing conflict. USB ports on laptops are the same as the ones on PCs.
Hi
Thanks for your reply.
I have switched off my Anti-virus and Firewall software plus anything else that does not need to be running but it has had no effect on PicoScope, the strange results whilst using the ADC100 device with a USBPP adapter are still occurring.
In addition to using the ADC100 with USBPP adapter I have also run a PS3224 device which functions perfectly within Picoscope and with my own Dephi software on both computers.
One thing I have discovered is that the desktop computer will except running the modified Delphi example if I allow it to take alot of data i.e. 10000 samples in 20secs. If this sample rate is reduced then the sampling time also has to be reduced !. Any clues to why this happens?.
(This does not work whilst running on the laptop the maximum time sampling is allowed is 2 seconds.)
An observation made is that my desktop computer is using an earlier USB 1.1 port whereas the laptop is a USB 2.0.
I have a 16 secs *.avi file of PicoScope running showing the strange results it produces, if it would help I can send you a copy?.
The ADC100 was designed to run on DOS, due to the way Windows XP buffers the data, on some computers running Windows XP the ADC100 does not work properly, unfortunately there is nothing we can do about this. You have a number of options, you can revert back to an older operating system, which we do not support anymore or you can consider purchasing a new scope, I would recommend the 3224 as it is superior to the ADC100 in all aspects.
I am having problems with the ADC10 (and ADC42) connected to the USB2 port with the USB-par port adapter.
It detects the ADC and works (slowly) in 'Slow' mode.
In Fast mode it seems to run, but the values are nonsense and it only took 2s to sample for what should have been 10s.
Could you tell me the code i need to put in the .bas file (similar to the .inc file of Delphi) and the extra code i need to put in the VB programme file.
I appreciate that it still may not work 100% correctly as it was designed for DOS.
thanks