LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

concurrent analogue reading

0 Kudos
Message 11 of 19
(1,184 Views)

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

 

 

0 Kudos
Message 12 of 19
(1,169 Views)

Im attaching the Vis Fyi

 

Download All
0 Kudos
Message 13 of 19
(1,168 Views)

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

0 Kudos
Message 14 of 19
(1,150 Views)

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

0 Kudos
Message 15 of 19
(1,146 Views)

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.

 

Analog Inputs.png

Message 16 of 19
(1,134 Views)

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

0 Kudos
Message 17 of 19
(1,129 Views)

hi, sorry about the last post. I understand which one you meant.Smiley Embarassed

 

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

0 Kudos
Message 18 of 19
(1,124 Views)

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.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 19 of 19
(1,119 Views)