LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

program no longer works when compiled

Solved!
Go to solution

I'm not really quite sure why, but when I compile this basic RS232 program, it no longer works.  It runs fine in the actual LabView block diagram/front panel.  Does anyone have any suggestions?

 

Thanks

0 Kudos
Message 1 of 15
(3,703 Views)

Could you be a little more specific? Just saying 'it does not work' is pretty vague.

 

At the minimum, you need to have included the LabVIEW and VISA runtimes in your installer. Did you do that?

Message 2 of 15
(3,696 Views)
Well, I haven't even created an installer for it yet.  I've just tried to build an application.  The application builds fine and the VISA dependencies are included in the build (along with many others), but the commands I'm trying to send don't appear to be going through the serial port.  I've attached output from NI Spy, and it looks like it tries to establish communications with "Com 6" (the port I'm using), and then hangs up.  There should be commands going back and forth.
0 Kudos
Message 3 of 15
(3,688 Views)
Do you use relative file paths?
--
Tim Elsey
Certified LabVIEW Architect
0 Kudos
Message 4 of 15
(3,688 Views)
I'm not sure.  I don't know what those are. 
0 Kudos
Message 5 of 15
(3,684 Views)

I have no idea what relative file paths have to do with the problem either.Smiley Wink

 

Did you look up the error? It indicates that something else is already using the port. Make sure LabVIEW/Hyperterminal/etc. is closed.

 

I'm also assuming that the error happens on the development pc.

Message Edited by Dennis Knutson on 04-30-2009 02:08 PM
0 Kudos
Message 6 of 15
(3,676 Views)

Hi,

 

there are no relative paths in the vi.

 

But there are several hidden buttons (some of them using the same label). Maybe they aren't set correctly when compiling the vi to an executable?

How do you want to control the executable when the buttons are hidden?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 7 of 15
(3,668 Views)

I brought up relative paths, because elative paths don't point to the same things in dev mode and in builds.  And accessing a file that does not exist causes an error.

 

At the time I posted my message I had no other info to go on.  Mostly because I didn't notice he posted the VI...

Message Edited by elset191 on 04-30-2009 03:26 PM
--
Tim Elsey
Certified LabVIEW Architect
0 Kudos
Message 8 of 15
(3,663 Views)
Yeah, that was part of the problem.  Now it will actually communicate with the board, but it's not sending the "Stop" commands inside the "while" loop.  Do you think the 'read' after the "stop" command is affecting whether or not "Stop" is received?  Should I send the "stop" command more than once? 
0 Kudos
Message 9 of 15
(3,636 Views)
I want the hidden buttons hidden so that the customer using the compiled program can't fool with them.
0 Kudos
Message 10 of 15
(3,635 Views)