08-26-2008 02:57 AM
Hi Im using ESD board with CANopen libraries. I am able to call canopen functions in Labview using Call Library function Node. I am not able call some ESD functions. Please help me on the exact value of parameters to be passed. The following are the functions of slave library
1. canOpenExtendDictionary
2. canOpenInitDictionary
3. canOpenDefinePDO.
08-26-2008 03:14 AM
what you have done so far? could you please attach your code. give some more details about your dll name, where can we get it. Or simply post the dll here.
Mathan
08-27-2008 12:58 AM
08-27-2008 02:05 AM
08-27-2008 05:07 PM
Hi Vargheese,
I'd like to offer guidance on your issue. While I do not have experience calling the CANopen libraries in LabVIEW, I do know that we have a great article about calling DLL's in Labview: <http://digital.ni.com/public.nsf/allkb/DCB90714981A1F148625731E00797C33>
Which version of LabVIEW are you using? Which OS? Can you direct me to a site where I could download the libraries and try calling them on my computer?
This may be a question to ask ESD engineers if they wrote the DLL's.
Thanks,
Dan Richards
08-28-2008 02:58 AM
Hi Dan,
I am now trying on both Labview6 and Labview8.6 (EV). I am able to call the DLL and call some parameters. Now I will contact ESD. Before that I need to know about passing structures as parameters to functions. Which is the best option- CIN or creating new DLL. Can we use a single wrapper dll for calling structures and another function. How the output of this can be used in as the input of the other function?. Does Labview8.6 support -passing structures? Any ways I will be using LabVIEW6 or 7 in future.
OS:WindowsXp. Programming Environment: Visual studio 2008.
08-28-2008 12:40 PM
Hi Varghesse,
I found some articles that may help you with your problem.
See the following article for a suggestion of where to find more information. In your case you may need to navigate to Program Files » National Instruments» LabVIEW 6.0 » lvexcode.pdf to see if it's there. I do not believe this file exists for 8.6 but you could check on your machine.
<http://forums.ni.com/ni/board/message?board.id=170&message.id=17681&requireLogin=False>
If you look at Evan's reply in this next post, he recommends an example that may or may not have shipped with 6.0 and probably exists with 8.6. He also describes his own way of setting such a DLL up.
<http://forums.ni.com/ni/board/message?board.id=170&message.id=95607&requireLogin=False>
If you'd like to forego looking through that huge document, the following link will lead you to an example of calling structure data to a C program. I would recommend starting with that.
<http://zone.ni.com/devzone/cda/epd/p/id/1328>
I sincerely hope this helps. Please call us at 866.ASK.MY.NI if you would like to speak to an applications engineer.
Thanks,
Dan Richards
08-31-2008 02:52 AM