LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

ESD

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.

 

 

0 Kudos
Message 1 of 8
(3,994 Views)

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

Message 2 of 8
(3,990 Views)
You will get the dll with the setup of canopen from esd
0 Kudos
Message 3 of 8
(3,962 Views)
So you want to know how to call a dll with lv?
0 Kudos
Message 4 of 8
(3,956 Views)

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

Dan Richards
Certified LabVIEW Developer
Message 5 of 8
(3,926 Views)

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.

Message 6 of 8
(3,916 Views)

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

Dan Richards
Certified LabVIEW Developer
Message 7 of 8
(3,891 Views)
Thank u DAN. The last link u mentioned is wat i was looking for.
0 Kudos
Message 8 of 8
(3,855 Views)