06-03-2013 03:24 PM
Here it is.
06-04-2013 03:26 AM
Hi Sumtum,
thanks for the file,. I tried it and it worked for a few seconds and then it threw up an error
error - 200077. and 200361 when I tried to code it using your suggestion.
I am a bit lost now..
thanks,
Labmat
06-04-2013 03:28 AM
Im attaching the Vis Fyi
06-04-2013 05:37 AM
Hi ,
I debugged the code a bit more by deciding to just see what would happen when I disable the other loops. and it runs fine for a few seconds and gives the same 200361 error.
From the knowledge base, I can see that its because the buffer is getting overflowed - which would mean that Im not reading the samples fast enough from the buffer.
any idea on how I could do this as this is what is stopping me from finalising the code.
any help would be great.
thanks,
Labmat
06-04-2013 06:11 AM
Hi,
further debugging the code gives the following result.
If I run the code with the states enabled, it throws up the error 200361.
But if I stop the code and umplug the USB and then plug it back in, it clears the error and continues to run.
do you think it could be something to do with the hardware/USB bus?
thanks,
Labmat
06-04-2013 07:22 AM - edited 06-04-2013 07:25 AM
Yes, the VI isn't reading the data fast enough. I would suggest to take the timing out since you want to read on demand. Example is shown below.
06-04-2013 07:27 AM
Which timing are you talking about? are you talking about the Elapsed time. vi ?
If so, then Id like to say why I put that in there. while the battery is discharging (over an hour) I want to write the discharge data to a certain file so that I can read it later on in the program (next state). And the timing is controlled by this Vi. Is htere any other way to do this if I delete this Vi?
thanks for your support.
Labmat
06-04-2013 07:31 AM
hi, sorry about the last post. I understand which one you meant.
when I do that I get this error 200474.
but when I unplug the USB cable and plug it back in, It seems to work. dunno for how long though.
thanks,
Labmat
06-04-2013 07:35 AM
LABMAT wrote:when I do that I get this error 200474.
but when I unplug the USB cable and plug it back in, It seems to work. dunno for how long though.
That almost sounds like a USB power issue. The OS likes to turn off power to USB devices after awhile to save power. You can change the power settings in the device manager to always leave the power on.