Jump to content

serial port with commg.dll


Recommended Posts

Is there a reason you are re-inventing the wheel?  If there is a good reason like trying to understand how to communicate with a DLL then go right ahead.  But if you are doing this for some fear of using NI-VISA I'd highly recommend you confront your fear.

Link to comment

hello all

 

i going to connect to serial port with labview but not with VISA i want connect with DLL i wrote a program on labview but that have a probelm  this commg.dll is for connecting to serial port

 

please see!

 

attachicon.giflabview.JPGattachicon.giflabview.JPG

 

You need to be a lot more specific. What is the problem? Why do you not want to use VISA? Did you write that DLL? Do you know C?

 

For one, DLL interfacing requires a lot of C intimate knowledge to get it right. If you haven't that knowledge using VISA is definitely going to be much less painful and especially won't crash your application continuously during development (and quite possibly also later during execution of your application since any even small error in interfacing a DLL will sooner or later cause problems in the form of bad behavior or crashes).

 

If you still want to go down the DLL route we need to know what doesn't work, what you have exactly tried and of course the entire documentation and header files for the DLL too, in order to even have a small chance of helping you. A DLL is simply a bunch of compiled code. There is no way to determine from the DLL alone what function interfaces it contains nor what the correct parameter types of those functions are. And last but not least even the header file of the DLL doesn't describe how buffers need to be allocated and freed when calling the function so there usually needs to be some extra prosa text documentation too that describes this.

 

Your first post is analogous to me posting a picture of my car and saying it doesn't work, please help me! only clairvoyant people with an understanding of car technology could possible have an idea what might be the problem. But my crystal ball is currently in repair and I need to do it with what other mere mortals have available  :D .

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.