08-16-2019 06:36 AM
lol You have a valid point there. 😉
09-06-2019 02:12 AM
Hey guys Thanks for all the help. sorry for late reply, got stuck in work badly.
although I have got what I was looking for thanks to all of your knowledge sharing with me.
I simply used application directory and current VI Path.vi to just find my .ini file where ever it may installed.
Thanks and Regards
Baig
08-17-2020 12:02 PM
Hi,
I have software in which only serial port printer works. After searching in installation directory I found .ini file in which settings are saved and printer is configured on com5 port. I want to add usb virtual port in that file instead of com5 port so software print documents on printer that is installed on usb virtual port. Can anybody tell me its command?
08-17-2020 02:49 PM
08-17-2020 11:51 PM
Gerdw thank for reply
I need command that i write in that .ini file so i use usb printer instead of serial com port printer. Current command in .ini file is as follow.
THERMAL_PRINTER_COM=5
I need command to change this com port to usb virtual port.
08-18-2020 12:40 AM
Hi Balockpk,
@Balochpk wrote:
I need command that i write in that .ini file so i use usb printer instead of serial com port printer. Current command in .ini file is as follow.
THERMAL_PRINTER_COM=5
I need command to change this com port to usb virtual port.
Just change the number in this line.
That "USB virtual port" should also provide a (virtual) COM port, which gets a number assigned by Windows.
(Otherwise your software does not know how to handle the serial port…)
08-21-2020 02:46 AM - edited 08-21-2020 02:49 AM
@Balochpk wrote:
.... I need command that i write in that .ini file ...
Hello, I understand your question that you programmatically want to write the port- number to the INI- File. This is done with the Configuration- File VIs from your VI palette. They are located in the palette Programming -> File I/O -> Configuration File VIs. Or just press Ctrl+Space, then type "read key"
If you are not familiar with these VIs, open the "Find Examples" dialog from the LabVIEW- Help-Menu and search for "configuration file", this will guide you.