Exe com port error
Hello
I am writing a program to take com ports for the main program. Com ports are actually USB devices and I want them to be able to choose different ports if happen them to change because of the USB. So I wrote the program to complete a ring of menu with the names of the available com ports. Everything works well as a vi, but when I built it in the property node exe throws errors. I run the exe file on the same computer as my vi for testing.
#-1073807246
Property node (arg 1) in comports.vi of choice.
Is the property node: property: Interface: Interface of Information Description
Use this as a VI he puts the names similar to what you would see in windows Device Manager. The case of fake puts just the words "not used". The entry is an array of references to Visa for COM1 - COM10.
Any ideas on why it breaks in an EXE?
It sounds like a session VISA is still open in LabVIEW and your exe cannot access. Try to run the exe with closed LabVIEW or see here.
Tags: NI Software
Similar Questions
-
HP Envy X 2 cannot create com port error virtual 577
Hi all
Reinstalled Windows 8 32-bit HP ENVY X 2 and updated all drivers (again).
Try to create the virtual com port with two different Xport and FransonGPSGate programs.
These programs normally create a virtual Com Port that can be used by e.g. two different programs of maritime navigation at the same time.
Xport responds: error code error Windows Xport pilot 577 from
Franson GPSgate responds: unable to create virtual serial ports
What is the solution for this problem?
Thanks in advance for your answer!
Learned a lot the last few weeks on Windows 8.
I will guide you to acquire the same knowledge for Xport and fully operational Maxsea
First read: http://www.pcworld.com/article/2027593/windows-8-put-its-hidden-security-features-to-work-.html
You probably missed it but read what follows:
"Included in the UEFI is a feature called Secure Boot, which avoids unauthorized operating systems and malicious software from running at startup."
"Windows, you can type msinfo32 in the start menu search box or invites him to run it to find out the version of the BIOS.
Within windows 8, I saw:
-A start secure ACER (old machine): unsupported
-To a HP Envy X 2 (new machine) Secure Boot: enabled.
Secure boot disabled in Envy of HP X 2 and
Xport and my older prog navigation are fully operational new.
Good wind,
-No.
-
Cannot sync. -Com port in use error
Win7 64 bit, PalmDesk 6.6.6, IR USB dongle. Tungsten E
Has been able to synchronize the first two times with the new IR USB organization. I ended with triple calendar entries so finally was able to remove old items out of PalmDesk and after doing a hard reset on PDA, could clean the scheduling issues so I thought everything was OK.
Then tried another HotSync and kept getting an error on the PDA "Cannot start the HotSync operation because the port is currently in use by another application"
Spent 2-3 hours to get here and other sites for possible solutions. Found none so tried to Soft Reset and then reset hot but neither worked. Finally I did a Hard Reset.
Was able to do a HotSync. It took 6:30, but it does not seem complete. Note that my memory is only half full
Now, the real problem. I wanted to see if I could do a HotSync and did not take hours to complete. But still, I get the port in use message.
The message comes even if the PDA is not connected to the PC by IR isn't something in the PDA. He was going to install dbFix, but since I can't synchronize I can't install it.
I note that after the Hard Reset did only 3 options under connections now, I have 6. There is an IR to a PC/handheld, but the details show that it uses really Cradel/cable. There is an infrared for GSM phone but I can not remove or change it. Also of IR to PC with a speed of 28.8 by default.
Solutions, ideas or even wild guess appreciated.
WyreNut
Thanks for the reply, but you are not the first to suggest not correctly the problem was in the PC.
I have finally resolved and am posting the investigation and the resolution here in the hope that others can solve the problems of strange synchronization they could find out by doing a similar detailed investigation.
The error message not being able to sync because the com port has been used pop up would immediately after recording HotSync. I without having to be connected or even close to a PC to get this error message. I have confirmed that being in front of PC with IR, equipped of Vista 32 bit, so it wasn't a problem with Win 7 64 bit either as I had been able to synchronize PC Win 7 approximately 4 weeks earlier.
I had 4 chat sessions with Palm TREES, where they provided a number of suggestions essentially to tell me that the problem was Win 7 based or 64 - bit based or that I did a Hard Reset if fixed (none of which were correct).
I tried a number of sweet, hot and hard resets. The only time wherever I could sync was after doing a Hard Reset and synchronization takes then 3.5 HOURS to complete. I could never do a second Hot Sync that I always get the error message.
I finally discovered that the list of connections is changing and the individual setting for one of the original connections was changed when I did the sync.
After a Hard Reset, there are three connection options:
PC Via cable/home station, Modem Via station home/cable and IR for PC/handheld Via infrared
When I ran the Hot Sync more than two connections have been added to the list
IR for GSM and GSM BUT phone serial
The surprise that took a few moments to discover that the PC/handheld Via IR computer had its details changed to home/IR obviously cable station, I could use this connection to synchronize this is to create a custom connection which was the PC Via IR.
The dropdown under HotSync would present the old PC/Pocket PC Via IR, but it does not work because he didn't was more IR I would choose the custom, but he made the mistake of com Port conflict
The SOLUTION was to delete all backup and archiving files, install the PC off, do a Hard Reset of the PDA and then do a HotSync.
This time sync took only 5 minutes, the connection list has not been changed and the settings in detail for PC/handheld Via IR were not changed.
I don't know when the commands of GSM phone has been added to the list of options on the PDA, I never used the PDA as a phone. I'm not even sure who's App adding the GSM phone files. He could have been there for years I never had problems with synchronization with USB port and a XP machine. Even the first synchronization IR on Win7 64 bit machine worked so I thought everything was OK.
Thanks for the suggestion anyway.
-
New components is a new computer.
Inserted the XP Pro CD in the drive but get the error "file not found \i386\ntkrnlmp.exe. The error code is 7. »
Rebooted comp 5 times with the same problem after BIOS.Hi Milkshake83,
Thanks for posting. Proceed as follows for this error.
Method 1: Restore the default settings of the BIOS WARNING: this procedure may involve changing the semiconductor (CMOS) settings of the computer's complementary metal oxide and by changing the BIOS of the computer. Incorrect changes to the BIOS of your computer can result in serious problems. Change the CMOS settings of the computer at your own risk.
To resolve this issue, restore the BIOS of the computer to its default settings. For more information about the correct settings of the BIOS of the computer and how to check and change these settings, see the computer documentation or contact the manufacturer of the computer.
In addition, to confirm that the computer's BIOS is current, contact the computer manufacturer to inquire about the last update of the BIOS available for the computer.
Method 2: Remove the faulty RAM to resolve this issue, remove the memory modules installed in the computer.
NOTE: you must leave enough RAM for the computer to start and run Windows.
For more information on the amount of RAM that is required to run Windows, click on the number below to view the article in the Microsoft Knowledge Base:
304297 configuration (http://support.microsoft.com/kb/304297/) System requirements for Microsoft Windows 2000 operating systemsIf the error message described in the "Symptoms" section of this article appears again after removing the memory module, remove a different memory module. This procedure may ask you to restart your computer several times to identify the specific memory module that is not working properly.
For more information about how to add and remove RAM to the computer, contact the manufacturer of your computer or see the documentation that came with your computer.
http://support.Microsoft.com/kb/318729
I hope this helps!
Shawn - Support Engineer - MCP, MCDST
Microsoft Answers Support Engineer
Visit our Microsoft answers feedback Forum and let us know what you think -
Get the error message about the COM port at startup
Original title: COM port occupied at startup
We get busy COM port when the system has been started and given are incoming on port.
The COM port is connected to a PLC which retransmit if he didn't get a response.
In this case our application cannot connect to the port.
Is it possible that we can avoid this or is there a way to release a COM port?
Thank you
HR
Hello
The question you posted would be better suited in the TechNet Forums. I would recommend posting your query in the Forum TechNet site:
http://social.technet.Microsoft.com/forums/en-us/w7itprogeneral/threads
-
Access to COM Port via DLLS in Labview is not possible
Hello.
I wrote my own DLL in c# for communication during the production process.
But if I want to Labview to use this DLL communication still fails at the first step: open the COM port.
So I removed all my code and made only a small DLL that opens/closes the COM port.
When I run the command line tool that uses exactly the same dll such as Labview, COM port opening is possible.
The com port can be selected by adding a parameter like 'COM1' in the .exe file.
The function inside the dll should be called as: communication.open ("COM1") and returns a 'real' error.
It would be nice if someone could help me and find the error.
Best regards
Chosun
Hi again.
I changed my dll except for my post of try-catch during the opening of the port to an output string.
System.Security.SecurityException: Fehler bei der Anforderung des Berechtigungstyps "System.Security.Permissions.SecurityPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089". bei System.Security.CodeAccessSecurityEngine.Check(Object demand, StackCrawlMark& stackMark, Boolean isPermSet) bei System.Security.CodeAccessPermission.Demand() bei System.IO.Ports.SerialPort.Open() bei OpenComPortTest.communication.open(String port_selection) Die Aktion, bei der ein Fehler aufgetreten ist: Demand Der Typ der ersten Berechtigung, bei der ein Fehler aufgetreten ist: System.Security.Permissions.SecurityPermission Die Zone der Assembly, bei der ein Fehler aufgetreten ist: Intranet
The problem, the dll has been on a mapped network drive.
He moved to a local drive, it works.
Concerning
Chosun
-
The COM Ports on Satellite P10 do not work after the conversion to the WXP Pro
I have a P10 (PSP13E-0372V) that I have upgraded from XP Home to XP Pro. Everything went very well and then I discovered that I don't have a COM port or at least Device Manager shows no COM port.
If I try to dial, I get "Error 633 the modem is in use or not configured properly". Back to Bishop device to watch the modem which, it says, works very well. If I query the modem (Diagnostics) told me 'port that the modem is attached could not be opened. "
Also, it is said it is attached to COM3 but I can choose any port and get the same result. (When I change the port I get the message "the port has been opened by another application. Renaming the port may have an unpredictable effect on the other applications")
I tried to remove the modem and restart but no change.If anyone any ideas how I can get the modem to work.
TFAISo any ideas on how
Hello
Usually WXP Home, Pro should work without any problem because all the drivers, tools and utilities can be used for the two operating systems. I just hope that you have preinstalled all things in order of good facilities.
Have you installed the driver chipset from Toshiba download page right?
-
Satellite A30: Can not find the COM ports when trying to query the modem
Hello.
I have satellite A30 and I reinstall windows xp at home, but I can't find any com port whenever I try to query the modem the display hardware confilct, but in Device Manager no sign of error/confilct, I did everything what I can.
Add the port,
Add more then 1 port
disable the printer port
change the printer port
Reinstall derver modem,
In short, I've done everything I can. its always show (! yellow) mark.if I add the port and if I remove the port and there is no sign of error.
If someone help me to solve this problem a little,
regared.
MGK.Post edited by: mghouskhan
The modem uses a virtual com port. It s not a real port.
I wonder why it usually happens after the installation of the new operating system, you must install drivers Toshiba together in the right order
Installing the chipset utility is importantThe modem driver should do the work and you n t need to activate com ports
Please choose the right side of the page of the Toshiba driver modem driver after installing the OS correctly. I think that's the key -
Problem of COM Port on the A30
Hi all
I have an A30 and recently my modem stopped working. The error message want to activate "com port". I checked the BIOS Setup and the currency manager, but all of my com ports have disappeared.
I noticed this problem in the forum thread. Someone at - he found a solution please.
Thanks & best regards,Rajat
Hi Kai
Generally, if there are some questions on the forum, you will find a lot of useful answers using HELP Forum. You can find it on the left side at the top or by virtue of
http://forums.computers.Toshiba-Europe.com/forums/help.jspa#create -
Problem removing battery bluetooth / hidden devices / unpublished COM ports
Hello
Having problem completely remove Toshiba Bluetooth stack / hidden devices / unpublished com portsI uninstalled Toshiba BT s/w...
But:
(1) peripheral BT Toshiba hidden appear again and I can not remove (get the error)
(2) the COM ports occupied by Toshiba BT not out (so they cannot be used by another pile of BT) and always appear in the registry
ex: friendly name Toshiba BT Port (COM4) always in the registry(3) these new com ports do NOT appear in Device Manager
Thank you
What COM ports are actually used (must be used) by your current system?
-
Delay COM port, but it can read back data from MAX
What short RX and RX directly, COM port can data from feedback on the test panel MAX, but still error display "time out What is the reason? Thank you.
Hi Colin,
When you read back the data, there is a parameter called "Bytes read" you need key, the default value is 1024, in this case, it will keep waiting for 1024 bytes until the timeout occur.
I found a good article talk to this topic and you can change the bytes to be read in the test environment LabVIEW or MAX.
http://digital.NI.com/public.nsf/allkb/874B379E24C0A0D686256FCF007A6EA0
Let me know once try you it, thank you.
Kind regards
KwokHow
AE OR Singapore
-
How can I get the vi to wait for the user to select a COM port?
It is a problem when I run the application. If the selected COM port is not currently connected to the material, then I get an error. I can then select the COM port, rerun the application and everything is fine. But I want the application to run when it is called by the user and wait until the correct COM port is selected. I'll settle for any COM port selection and put the responsibility for the adequate selection on the user. Thank you all.
Of course. It works fine now. Thanks MikeS81!
-
How to get the label of the COM ports?
If I go to System Manager, I got this information:
But if I use the resource to find VISA, I get this:
Is it possible to get the label?
Try this:
The list:
(I have a special virtual TCPIP COM port on my machine, which gives error thats why the first element of the indicator table is empty for me)
-
How do troubleshoot you a USB virtual COM port?
Object
Send orders of Labview to an Arduino board using the Advanced Serial write and Read.VI.
The problem is that no orders are received by the Arduino.
However, I can use the Serial Monitor built into the Arduino IDE to send commands to the Arduino and get the required result.
I checked baud rate, the designation of COM port and the command is a simple as string 600,0. The VI shows no error message.
So, I'm looking for suggestions on how to troubleshoot a USB virtual COM port.
Howard
-
USB/Virtual COM port Communication problem with ESP301/LabWindows/CVI
Hi all
I have gone through different threads posted in this forum for similar issues and all tried, but nothing helped.
I'm trying to communicate to the ESP 301 training monitor via a USB port configured as a serial COM port using a CR. Have it ' command is to get the version of the controller. The "write" "ComWrt" command works fine but the read command throws and error ("-99 operation e/s timed out"). I tried all the suggessions; with delays etc... who has explained (resolved by Mr. RobertoBozzolo) in the thread posted here, which explains an issue similar to that of the mine, but the help couln t.
The code is attached.
I am using 2012 LabWindows/Windows7 64 bit multi-hearts
int Get_Version () {}
comport = 3;
BaudRate = 9600;
parity = 0;
DataBits = 8;
StopBits = 1;
inputq = 512;
outputq = 512;
ctsmode = 1;
xMode = - 1;
Timeout = 5.0;
com_status = 1;
char comstring [6];
DeviceName [] = "COM3".
Int State = 0;
char * error;
int bytes_written = 0;
char Cmnd_String [50] = "";
char Read_String [512] = "";
strcat (Cmnd_String, "ve?")
strcat (Cmnd_String, '\r'); Tried to 0x0d
strcat (Cmnd_String, '\0');length = strlen (Cmnd_String);
assert (Cmnd_String [length] == you? \r\0'); Tried Cmnd_String [50] = ' VE? \r\0 ".
DisableBreakOnLibraryErrors ();
RS232Error = OpenComConfig (comport, devicename, baudrate, parity, stop bits, inputq, and outputq data bits) ;// tried ouputq = - 1 too
EnableBreakOnLibraryErrors ();
If (RS232Error == 0) {}
com_status = SetCTSMode (comport, LWRS_HWHANDSHAKE_CTS_RTS_DTR);
MessagePopup ("Comport verified',"CTS Mode works very well");
com_status = SetComTime (comport, timeout);
}
bytes_written = ComWrt (3, Cmnd_String, (Cmnd_String) StringLength);
If (GetOutQLen (3)! = strlen (Cmnd_String))
ComWrt (3, Cmnd_String, strlen (Cmnd_String));
status = ReturnRS232Err (); The status is 0
error = GetRS232ErrorString (status); / / error numberDelay (5.0); / / trying to add the time up to 20.0
GetInQLen (3); Returns 0
ComRdTerm (3, Read_String, 512, 13); Read from inputQ
status = ReturnRS232Err (); Status to return the error code '-99 '.
error = GetRS232ErrorString (status); Error message "e/s timed Opération" outreturn the situation;
}
Can anyone suggest where I am doing wrong?
Thanking you in advance.
Another thing you should check is baud rate. The ESP301 by USB is expected than the baud rate to 921600. The function for OpenComConfig() group implies that it does not support this baud rate setting, but it seems to work perfectly.
Maybe you are looking for
-
Lenovo Y50 Touch reboot problem
I was playing Gta5 with my y50 and he started to jump and jump then finially froze. After that it froze, I held the power button / stop he turns off and restarts but on turn back top is no longer boots or the lenovo screen and my numlock key flashes.
-
I received an email that said I have money at the iTunes store. I did not answer but put in my junk mail folder. How can I report and other guarantees of what I can do?
-
You need to reinstall Vista. where can I get the software to do?
I have problems with my Vista lock in Explorer Windows and Video Creator. I also have a problem with it locking up while it is charging. Also, I can install is more new hardware or software without crashing. Would like to F-disk and reinstall from
-
My (HP Mini notebook) computer and the printer are connected to the same network wireless, but when I try to print it tells me that my printer is offline. It worked perfectly, but then we moved house, not really worked properly since. Have you tried
-
Driver for windows 7 64