From 04:00 PM CDT – 08:00 PM CDT (09:00 PM UTC – 01:00 AM UTC) Tuesday, April 16, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

ViRead Error

I am trying to run ViRead to get data back from a GPD.

 

status = viRead (GPD, garbage, 100, VI_NULL);
printf("garbage %s\n", garbage);

 

Here is the line of code I am running, but when I run it, "garbage" prints Data out of range.

 

I can't understand why this prints that, any help is appreciated.

 

Thanks.

0 Kudos
Message 1 of 2
(4,323 Views)

Hello Danielloo, 

 

"Data out of range" often refers to when data falls outside of user-specified ranges.  I would look through your code and see if you have set any ranges for your GPD readings.  If so, I would try extending these ranges to see if that is what is causing the issue.  

 

Best wishes!

Amanda B.
Applications Engineer
National Instruments
0 Kudos
Message 2 of 2
(4,282 Views)