Alexleung Posted August 28, 2016 Report Share Posted August 28, 2016 (edited) I am new to Labview! I build a Vi to perform serial comm to test the visa info. First, I test this vi at virtual ports ,comm1 for serial program, comm 2 for this vi,one for transmission and one for receiving. OK! but when I use it at single Comm3 (Prolific USB serial port,MAX's view is OK) and loopback ,I got Error -1073807298! I Don't figure out what's the problem, Could Give me some advice? Thanks! serialnew.vi Edited August 29, 2016 by Alexleung upload vi Quote Link to comment
Alexleung Posted August 29, 2016 Author Report Share Posted August 29, 2016 Any response ? Quote Link to comment
Rolf Kalbermatter Posted September 5, 2016 Report Share Posted September 5, 2016 On 28-8-2016 at 5:44 AM, Alexleung said: I am new to Labview! I build a Vi to perform serial comm to test the visa info. First, I test this vi at virtual ports ,comm1 for serial program, comm 2 for this vi,one for transmission and one for receiving. OK! but when I use it at single Comm3 (Prolific USB serial port,MAX's view is OK) and loopback ,I got Error -1073807298! I Don't figure out what's the problem, Could Give me some advice? Thanks! serialnew.vi Your problem is most likely that you can't open the same serial port two times! When you add an Error Handler.vi to the end of both error cluster wires, you will get a more descriptive error message than just an error number. Quote Link to comment
Alexleung Posted September 7, 2016 Author Report Share Posted September 7, 2016 Thanks! Rolfk! I will Try it! Best Regards Alex Quote Link to comment
ShaunR Posted September 7, 2016 Report Share Posted September 7, 2016 (edited) A common thing with VISA is that you open the port then press the Abort on the diagram toolbar. This leaves the VISA session open so when you try to run again, the Open will fail (because it's already open but you don't have a reference anymore). If you go to the LabVIEW options (Tools>>Options>>Environment) and check the "Automatically Close VISA sessions" you shouldn't fall foul of that. (IMO this should be the default.) Automatically close VISA sessions—Automatically closes VISA sessions left open by the application when the top-level VI becomes idle. This checkbox does not contain a checkmark by default. Edited September 7, 2016 by ShaunR Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.