05-24-2015 08:53 AM
hello all : )
im using advantech usb 4704 for aquiring analog signal. im using it in finite mode with following details
sampling rate = 20k
no. of samples to acquire = 120k
no. of samples to read = 120 k
sometimes (after running my program around 120 times) i get the error "time-out while reading" on reading function. the error then keeps repeating for every trial unless i unplug and plug usb. it then runs smoothly but comes up again after around 120 trials.
i tried various sampling configuration with no success.
note the error goes only when i unplug and plug it back which means im resetting my device. i guess it has something to do with overloading of buffer. is there anyway to clear the buffer completely ?? please help me.
05-24-2015 08:55 AM - edited 05-24-2015 08:56 AM
@gargrahul wrote:
hello all : )
im using advantech usb 4704 for aquiring analog signal. im using it in finite mode with following details
sampling rate = 20k
no. of samples to acquire = 120k
no. of samples to read = 120 k
sometimes (after running my program around 120 times) i get the error "time-out while reading" on reading function. the error then keeps repeating for every trial unless i unplug and plug usb. it then runs smoothly but comes up again after around 120 trials.
i tried various sampling configuration with no success.
note the error goes only when i unplug and plug it back which means im resetting my device. i guess it has something to do with overloading of buffer. is there anyway to clear the buffer completely ?? please help me.
The Advantech isn't a NI product.
Read their manual.
05-24-2015 12:06 PM
Have you installed the appropriate LabVIEW drivers? Does it show up in MAX? Can you "test" it in MAX?
Show us the LabVIEW code you are using and answer the above questions, please.
Bob Schor
05-24-2015 01:10 PM
05-24-2015 08:11 PM
This sounds a lot like a Windows settings issue. If you go into the Device Manager and dig into the settings for the USB hubs, you will find a setting for a Windows "power saving feature" where it will turn off the USB hub. Make sure that is turned off.
05-24-2015 09:38 PM
Dennis_Knutson wrote:
Only NI devices will show in MAX so you can't do that.
Sorry to disagree, but I see two cameras, a Microsoft LifeCam USB camera and an Axis IP camera, on MAX. Also, there are a number of third parties (whose names I'm forgetting) who make USB devices that show up in MAX.
Bob Schor
05-24-2015 09:50 PM
05-25-2015 02:07 AM
the usb device wont appear in max as it is a product of advantech. they have provided there own application similar to max named advantech navigator. the device can be seen there.
im attaching my vi in the attachment.
altho you need to have daqNAVI to open it without any errors but still u can understand the flow of my process with the help of tags.
i turned off the usb power settings of generic usb hub and usb root hub. so lets see if it will work.
yes the number of sample im acquiring is more than the sampling rate.
my sampling rate is 20k whereas im acquiring 140k samples.
i have to acquire signal for long duration. in this case im acquiring signal for around 7 sec.
sir can u elaborate on why should i keep no. of samples to acquire around sampling rate because the program is simple with no loops and it works fine for around 100 times.
05-25-2015 05:37 AM
Sorry, but we cannot see your VI's code because you password protected it.
05-25-2015 10:15 PM
sorry
please find the password-unprotected vi in the attched file