07-24-2023 04:15 AM
I am trying to create an application using the application builder tools of LabVIEW. Have created a project in which all the VI and Sub VI are present, after which using build specification created an application. Sometimes the application works and some time doesn't work. Is there a proper way or configuration to create an application with LabVIEW using application builder tools?
07-24-2023 05:42 AM
Hi mayankmpc,
@mayankmpc wrote:
Sometimes the application works and some time doesn't work.
How do you determine the app "works and some time doesn't work"?
When does it work, when/how doesn't work?
Any more detailed error descriptions?
07-24-2023 05:48 AM
I have attached the instrument with PC and used VISA read and write in my program to fetch data from the instrument. I am running the same VI with LabVIEW with all the necessary Sub VI's, it is working fine and data is fetched properly and shown to me. After creating the application for the same task, observed that data is not fetched at all and VISA read/write error is generating continuously. After seeing this difference in working I can say there maybe some configuration issue which I don't know.
07-24-2023 07:28 AM
@mayankmpc wrote:
I have attached the instrument with PC and used VISA read and write in my program to fetch data from the instrument. I am running the same VI with LabVIEW with all the necessary Sub VI's, it is working fine and data is fetched properly and shown to me. After creating the application for the same task, observed that data is not fetched at all and VISA read/write error is generating continuously. After seeing this difference in working I can say there maybe some configuration issue which I don't know.
99.9% it is the program logic issue and not application build issue. Could you please share your source code to see if there are glaring issues that may show up in RTE?
07-24-2023 08:55 AM
@mayankmpc wrote:
I have attached the instrument with PC and used VISA read and write in my program to fetch data from the instrument. I am running the same VI with LabVIEW with all the necessary Sub VI's, it is working fine and data is fetched properly and shown to me. After creating the application for the same task, observed that data is not fetched at all and VISA read/write error is generating continuously. After seeing this difference in working I can say there maybe some configuration issue which I don't know.
Along with Source files/ sharing the error code/Error Description will be better to understand the issue better.
07-24-2023 09:17 AM
Programs the work in the development environment and fail when compiled to an stand alone executable usually have some bad logic, race condition, or hard coded VISA resource that does not exist on the target computer.
We will need to see all of your source code to troubleshoot this.