09-29-2021 07:55 AM
I have a labview code. The purpose of the code is to read(with VISA) a specific protocol, read it, modify it with some sub vi that I created and send(also with VISA) some messages in a different protocol.
I built an application(.exe) with an installer.
When I ran the code in my laptop it worked without problem for a several hours and it stopped because I chose to stop.
When I installed the application I created on different computer, the code worked only for several minutes(1 to 20 minutes). There is no message for any error, it looks like the screen is frozen. After this happens, the software doesn't respond.
What should I do?
09-29-2021 08:02 AM
To answer "What should I do?" - you should share your source code for that application
Next, share more about what exactly it is trying to control - model, datasheet etc.,
09-29-2021 09:07 AM
@rotemyeskin wrote:
What should I do?
You need do do a detailed inspection of your code to look for deadlocks, race conditions, memory leaks, infinite timeouts, and unreachable events that lock the front panel.
How much LabVIEW (and programming in general) experience do you have? How familiar are you with reading code and detailed debugging? Do you have access to the source code? Who wrote it?
Obviously, you have a bug but there is no way for us to help unless you attach your code. Please do!
Also, are there any hardware differences between the two computers? If you run the executable on the original computer, how does it behave?
09-30-2021 03:13 AM
This is my files.
The main is the main VI.
zda2.build checksum,vtg convertor, gga2 is the sub VI of the main.
The config screen is a different application.
I made one application of the main with his sub VI and one application of config screen.
The exe. of the main get stocked after a few minutes.
09-30-2021 04:38 AM
What hardware are you using? USB to RS232 ?
if so, what are the power settings for the USB port?
Is it the same hardware you are using?
What version of LabVIEW and VISA ?
09-30-2021 06:59 AM
Hi it's Rotem, I can't respond from my user so I respond from this user of my co-worker.
I have USB adapter for rs232 port to USB of aten.
I tried to run the application on 2 different computers- the power settings for the USB port of the first one: D0 current power state and the second is: D2 current power state.
I am using labview community edition.
09-30-2021 07:15 AM
Your USB Power Option should be something like this.
I don't know what D0 and D2 is.
I can't view your code, as I have no LabVIEW on this PC, but do you have a timeout on your VISA read ?
10-03-2021 03:29 AM
I don't have timeout in my VISA read
10-03-2021 08:21 AM
Hey,
I'm shared my code.