Benyamin.KH20 Posted September 3, 2014 Report Share Posted September 3, 2014 hello i have a problem with port serial ? what is this ? Quote Link to comment
hooovahh Posted September 3, 2014 Report Share Posted September 3, 2014 That is a picture of a VISA control allowing you to select a COM port for some operation. What is your problem? 2 Quote Link to comment
Benyamin.KH20 Posted September 3, 2014 Author Report Share Posted September 3, 2014 That is a picture of a VISA control allowing you to select a COM port for some operation. What is your problem? tnx in this picture there is'nt icon but in this picture why is this icon? Quote Link to comment
bigjoepops Posted September 3, 2014 Report Share Posted September 3, 2014 You get an icon there because the port has already been opened or used I believe. Do you have a VISA close in your code when you are done with the port? 1 Quote Link to comment
Benyamin.KH20 Posted September 3, 2014 Author Report Share Posted September 3, 2014 You get an icon there because the port has already been opened or used I believe. Do you have a VISA close in your code when you are done with the port? this is my code 2 3 Quote Link to comment
Rolf Kalbermatter Posted September 4, 2014 Report Share Posted September 4, 2014 this is my code Aside that it looks awful if you do not have a least a 60 inch screen, you never let the loop terminate programmatically. So to terminate your program you have to abort it. That does NEVER let the Close VISA function execute and your port stays open until you shutdown LabVIEW. 1 Quote Link to comment
hooovahh Posted September 4, 2014 Report Share Posted September 4, 2014 this is my code No that is pictures, code is in the form of VIs. In any case rolfk is right, you never close the port, because you never close your resource, because you stop your car by crashing it into a tree instead of using the brakes. Use proper coding techniques to exit your program, and perform clean up operations on exit/stop. Quote Link to comment
Benyamin.KH20 Posted September 4, 2014 Author Report Share Posted September 4, 2014 No that is pictures, code is in the form of VIs. In any case rolfk is right, you never close the port, because you never close your resource, because you stop your car by crashing it into a tree instead of using the brakes. Use proper coding techniques to exit your program, and perform clean up operations on exit/stop. download Quote Link to comment
hooovahh Posted September 5, 2014 Report Share Posted September 5, 2014 download Thank you but please next time don't upload to some fly by night uploading site. Use this forum that's what it is here for. And the comment still stands that you have a false constant wired to the while loop so there is no hope to releasing the serial port resource. EDIT: That has to be a maintenance nightmare. Way too many locals, too large of a BD, too many property nodes, too many cases, on the bottom center, no event structure for handling the run-time menu. Look into a state machine. And arrays for data instead of 60+ scalars. 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.