11-07-2017 11:12 AM
Hello everyone,
Thank you for taking time to look at this.
I have created a VI that checks the Weight of a pallet and prints out a label following certain set of conditions. The VI itself runs great however, when I try to create the executable and run the executable, it does not run (Note: Does not even run on the system that has lab-view installed in it).
The executable does not take the input of the weight parameter. I have a VISA set up in the VI and a label printer hooked up.
Please help me solve this problem. This is my first time I am using the application builder.
Thank you
Sudeep Puvvada
11-07-2017 11:57 AM
What is the meaning of "does not run". Do you get any error messages? From your next sentence, it almost sounds like it runs, but does not take input. How are things hooked up?
11-07-2017 11:57 AM
11-07-2017 12:04 PM
The application opens up and visually right. The way the VI is set up is that if the weight is above a particular number, it returns a green light or else returns a red light. If the string pulled from the Weighting scale is not a number greater that zero it returns a yellow light. So, now every time I run the application, it returns a yellow light from which I deduced that the Weighting scale is not hooked up right.
The Scale is hooked up through a USB port.
11-07-2017 12:21 PM
Cente90,
I do not have any error messages that appeared. Either way I tried what you said,
11-07-2017 12:27 PM - edited 11-07-2017 12:28 PM
You're going to need to get more status info out of the executable while it's running to have any hope of figuring out why it's not working correctly. You can use the LabVIEW development system to debug a compiled executable (unless you disabled debugging when you built it), by opening the "Operate" menu and choosing "Debug Application or Shared Library..." Step through the execution just like usual, and see where it's doing something it shouldn't.
11-07-2017 02:28 PM
arteitle,
I have done what you said. It keeps showing the ERR (-1073807246) which comes up when there are multiple sessions of Labview windows open. I have even checked the box in Tools>>Options>>Enviornment for "Automatically close VISA sessions". which yielded no results.
Is there anything I am missing?
11-07-2017 03:30 PM - edited 11-07-2017 03:31 PM
I'd try the solutions given here: http://digital.ni.com/public.nsf/allkb/6807113B057FDE4C86256B41008212ED
In particular, close and exit all of your LabVIEW software, both the built application and the development environment, and even check the Windows task manager to make sure they've terminated properly, then try starting them back up and going straight to debugging your software. That'll make sure that none of your software is inadvertently keeping the COM port open.
11-08-2017 07:10 AM
Arteitle,
Thank that worked.
The application works in the system which has lab-view. However, it does not in my support system which does not have lab-view.
I have installed all the run time engines: Run time 16, 488.2 16, VISA 16 and Serial 15.
These were the once that were recommended when I tried to create a installer.
But the application does not read from the Weight scale. Should be configure the USB port where the Weighing scale is plugged in in some way or something else. Could you please help me with this.
Thank you
Sudeep Puvvada
11-08-2017 07:17 AM - edited 11-08-2017 07:22 AM
Error -1073807246 occurred at an unidentified location
Possible reason(s):
VISA: (Hex 0xBFFF0072) The resource is valid, but VISA cannot currently access it.
That means some other program has the serial port open and locked it. Figure out which program is doing that and close the serial port in it. That could be your development environment, the manufacturer's test software, or possibly you have MAX open and were testing the serial port in there.