12-04-2009 10:33 AM
I am running into a roadblock with an RS232 serial driver that reads from a PLC.
I get a perfect read from the device prior to making the executable, I have an INI file that reads in the COM port to the serial sub-vi. When I go ahead and make the executable, and when running the executable I cannot get a COM connection.
I've troubleshooted the following:
(1) the INI file is in the correct directory so the EXE can read from it
(2) the USB driver is correctly installed
(3) ??????? what else could be doing this?
I have an EXE version made in LV 7.0 that I can plug right in and read from it (on the same PC) just fine. Though, when making it in 8.5 I cannot.
Help on this one would be great.
Thanks.
12-07-2009 07:09 AM
jonathanupr,
Make sure you have the correct version of NI-VISA Runtime installed on the pc where you are running your .exe. Version should match version of NI-VISA installed on development machine. You could also have a timing issue. Code will usually run faster in .exe form.
12-07-2009 08:03 AM
12-07-2009 10:20 AM
The same version will support both 7.0 and 8.6. I would recomend installing the latest.
If there are still problems after checking with MAX and making sure the com ports are listed, make sure you are correctly reading the ini file. Remember, if you use a function such as Get Current VIs path, it will be different with an exe.
12-07-2009 02:07 PM