I am using Picoscope 4225 and LabVIEW SDK for PS4000A. I can open, close and even get data using Picoscope4000a.llb from LabVIEW development environment.
When i created executable of my LabVIEW project and tried to run it, I am unable to read data. I tried running exe on the same computer where I created it(means having LabVIEW development environment), and I can read unit info from exe but while executing Get Streaming Values.vi it is giving an error. Error code 5012-Invalid handle.
I tried debugging and it seems that in the VI- get Streaming Values.vi, dll call of ps4000awrap.dll for function 'Is Ready' is giving error(used in while loop) and it is continued. However, as I said, everything works fine from code.
To avid issues due to file path mismatch, I kept all file paths for dll as constant, 'C:\Program Files (x86)\National Instruments\LabVIEW 2014\resource', in the code.
Please find attached image which shows where error is occurring.
Note:- I inserted indicators at different locations on error wire and created exe of the code. After running exe, I observed for error codes in different indicators and found that this VI is giving error in exe mode.
Can someone suggest me why this is happening and how to rectify it?