05-09-2023 08:24 AM
I have 2 bluetooth sensors that provide me with data. I am constantly checking the connection status of both sensors with a SubVI. However when one sensor isn't connected the SubVI checking the status takes about 10 sec to execute. That long of an execution time blocks the other sensor from providing me with data. Is it because they share the same SubVI or the same library or both?
Solved! Go to Solution.
05-09-2023 08:33 AM
Hi mikoborn,
@mikoborn wrote:
However when one sensor isn't connected the SubVI checking the status takes about 10 sec to execute. … Is it because they share the same SubVI or the same library or both?
05-09-2023 09:35 AM
Setting the VI to reentrant was exactly what I was looking for. Didn't expect such an easy fix, thank you!! I had a look into the initialize VI, however is used libraries I don't really know how to access. Do you have a suggestion on how to access them? I have also tried to abort the VI that is checking for the connection status after a certain time without an answer, however I couldn't think of an eay way and it got way too complicated and ended in a mess.
05-09-2023 01:27 PM
Hi mikoborn,
@mikoborn wrote:
I had a look into the initialize VI, however is used libraries I don't really know how to access. Do you have a suggestion on how to access them?
Unfortunately I don't use the latest LabVIEW version(s) so I cannot open your VI.
You would get better/more/faster answers if you would downconvert your VI to LV2021 or LV2019: File->Save for previous…
05-10-2023 01:45 AM
Thank you for that information, I will keep that in mind for further questions. However there is some problem I am unaware of on how to fix at this point, which doesn't allow me to save the file to a previous version. The library I am accessing is a dll file. I did some reasearch and it seems to be quite challenging to edit a dll file to ones desired needs. Are there any suggestions on how to do so?
05-10-2023 02:05 AM
Hi mikoborn,
@mikoborn wrote:
However there is some problem I am unaware of on how to fix at this point, which doesn't allow me to save the file to a previous version. The library I am accessing is a dll file. I did some reasearch and it seems to be quite challenging to edit a dll file to ones desired needs. Are there any suggestions on how to do so?
Why does the DLL doesn't allow you to downconvert your VI?
And why do you want to "edit" the DLL?
To answer your question: to "edit" the DLL you need to change it's source code and (re)compile the DLL...
05-10-2023 04:00 AM - edited 05-10-2023 04:00 AM
Nevermind it seems to work now. My thought was to edit the dll because the dll is where the timeout duration is defined?
05-10-2023 04:28 AM - edited 05-10-2023 04:30 AM
Hi mikoborn,
unfortunately your VI is missing all its subVIs, usually found in a sub-folder named "LLD"…
@mikoborn wrote:
My thought was to edit the dll because the dll is where the timeout duration is defined?
Where does that DLL come from? (From what I see in your VI I guess it's a dotNET component…)
How do you start/init the communication channel?
Which parameters are set within the "BLE_Initialize.vi"?
05-10-2023 05:57 AM
You are absolutely correct, the attached SubVIs are LabVIEW v19
05-10-2023 05:58 AM
v21: