Quantcast
Channel: LabWindows/CVI topics
Viewing all articles
Browse latest Browse all 5339

session handle is not valid

$
0
0

I'm trying to read values from a Fluke 8846A Digital Multimeter, however when I run the functions to initiate the device it gives me a runtime error reading

"Timeout expired before operation completed"

 

Also, later when I try to configure the multipoints and minmax and try to read this data, I get the following runtime error:

"session handle is not valid "

 

Here is my code:

 

fl884x_init ("DMM1", VI_TRUE, VI_TRUE, &DMM1);  //Attempting to initialize the Digital multimeter, with a handle DMM1 (gives me the first error)

//All of these give me the same runtime error "session handle is not valid "

fl884x_ConfigureMultiPoint (DMM1, 1, 5000, FL884X_VAL_INTERVAL, 0.0);

fl884x_ConfigureMinMax (DMM1, VI_TRUE);

fl884x_Initiate (DMM1);

fl884x_ConfigureTrigger(DMM1, FL884X_VAL_IMMEDIATE, 0.0 );

fl884x_FetchMultiPoint (DMM1, 5000, 5000, &measurementData, &numberOfPoints);

fl884x_FetchMinMax (DMM1, 5000, &measurementDataMin, &measurementDataMax, &measurementDataAvg, &minMaxCount);   

 

I imagine that if I can fix the first error, the second will be fixed as well.

 

Thanks in advance


Viewing all articles
Browse latest Browse all 5339

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>