Jump to content

My program don't work after I've built an application


mojeda

Recommended Posts

Hello

I have an annoying problem....my program works fine inside Labview 7.1, but when I make an .exe file the progam dosent work any more. I'm using VISA configure Serial Port.vi, VISA Write.vi, and VISA Close.

And I'm sending some commands to the serial port...but it only works inside labview....I've tried both the single file and the shared dll options, i've also tried to add the vi's, and I've tried to create an installer....

but it's all the same...

Can anyone please help me with this problem.... :-)

i'm attaching the program...Download File:post-4021-1138624662.vi

Best Regards

Martin Ojeda

Link to comment

Hi Martin,

it's NOT very common to constantly initialize the COM-port, then sending a command and then closing the port again.

It's better to do the initialization before your while loop, sending the commands and closing the connection when stopping the while loop (or add an initialize and a close button/event).

I've often noticed a difference in behaviour (cleaning up memory) between running in Development mode and in Run-time,

especially with serial (VISA) communication.

I also advice you to handle possible VISA-errors in case something goes wrong (and showing the stop button?)...

Good luck...

Link to comment
Hello

I have an annoying problem....my program works fine inside Labview 7.1, but when I make an .exe file the progam dosent work any more. I'm using VISA configure Serial Port.vi, VISA Write.vi, and VISA Close.

And I'm sending some commands to the serial port...but it only works inside labview....I've tried both the single file and the shared dll options, i've also tried to add the vi's, and I've tried to create an installer....

but it's all the same...

Can anyone please help me with this problem.... :-)

i'm attaching the program...Download File:post-4021-1138624662.vi

Best Regards

Martin Ojeda

You are using an alias for VISA. These must be setup in the alias file and you must have the VISA runtime engine installed if you want it to run from an EXE. I ran into this same problem about a month ago. The alias file should be at "C:\VXIpnp\WinNT\NIvisa\Visaconf.ini" if you have the VISA runtime engine installed. In this file you must identify the aliases. See http://digital.ni.com/public.nsf/allkb/D26...6256F1F00661A49 for more information.

Link to comment
You are using an alias for VISA. These must be setup in the alias file and you must have the VISA runtime engine installed if you want it to run from an EXE. I ran into this same problem about a month ago. The alias file should be at "C:\VXIpnp\WinNT\NIvisa\Visaconf.ini" if you have the VISA runtime engine installed. In this file you must identify the aliases. See http://digital.ni.com/public.nsf/allkb/D26...6256F1F00661A49 for more information.

Thanks a lot dude!!! it worked fine when I installed the VISA runtime engine... :-) Now I can begin to sell the program.... JUHU I'll be rich...

see you dude...

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.