03-05-2024 07:15 AM
Hello everyone,
I'm Markus and I'm contacting you with a problem in Teststand,
which I hope you can help me with.
I have a VI for an oscilloscope measurement (Picoscope 2000) in my company for use in Teststand.
The VI runs satisfactorily in LV, even in "Repeat" mode.
The VI is prepared for Teststand and does not run standalone as a loop, but is only executed once.
If I now use the VI in Teststand, a run is executed without any problems.
After another call of the VI within the Teststand sequence, either an error message of the VI itself appears,
or LabView crashes in the background.
However, I cannot understand what the cause of this is.
Furthermore, I have taken over the project and had no previous contact with Labview or Teststand.
If it goes into too much detail, the knowledge I have acquired so far will no longer help me.
Do you have any suggestions on how I could solve this problem?
Enclosed is the VI used
Thanks in advance
Markus
I am using Teststand 2016 SP1 and Labview 2017 SP1, both 32bit version
Translated from German
Solved! Go to Solution.
03-05-2024 08:51 AM
03-05-2024 09:00 AM
Oh, I'm sorry .
That probably didn't work via drag and drop.
Here is the VI
Regards
03-06-2024 06:16 AM
Hey Markus,
could you please add some more information about the LabVIEW error that occurs? Lika screenshot or similar
Cheers
Oli
03-06-2024 07:02 AM
Hello Oli,
attached, unfortunately in German 😞
Here is the translation:
Error 1097 at node for calling external libraries in ReleaseBuffer.vi->PicoReleaseMultiBuffers.vi->PicoCreatePicoMultiBuffers.vi->RMG_PicoScope2000_Aquire_Data_TESTSTAND_Namur.vi->RMG_PicoScope2000_Aquire_Data_TESTSTAND_Namur.vi.ProxyCaller
Possible causes:
LabVIEW: An exception error occurred in the external code called by the "Call external libraries" node. This exception may have caused errors in LabVIEW memory. Save all projects to a new location and restart LabVIEW.
Regards
Markus
03-08-2024 05:27 PM
Markus -
You stated "If I now use the VI in Teststand, a run is executed without any problems.
After another call of the VI within the TestStand sequence, either an error message of the VI itself appears,
or LabView crashes in the background". Some questions that come to mind are:
03-11-2024 12:52 AM
Hello Scott,
thanks for the feedback
Regards
Markus
Translated with DeepL.com (free version)
03-11-2024 10:15 AM
Markus, if I correctly read your answer to (2), you potentially confirmed that TestStand unloading and then reloading the VI is helping trigger this issue.
Do you know how the VI talks to the hardware, i.e. is there a DLL it calls, or is it calling standard HW interfaces using LabVIEW based code? If a DLL, the DLL might not be handling being unloaded and reloaded in a process, and if so there are ways to force a DLL to not get unloaded within the TestStand process.
03-12-2024 01:29 AM
Confirms my suspicion.... after having opened the VI without having the actual driver on my PC:
there is an uninitialized Feedback Node on the toplevel VI.
03-12-2024 02:21 AM
@Oli_Wachno wrote:
there is an uninitialized Feedback Node on the toplevel VI.
Where can I find this feedback node, and how can I tell that it has not been initialised?
Regards
Markus