LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

CANopen on PC with USB to D-Sub

"I don't think it outputs an analogue value but if it did, that would be incredibly useful."

Well, if you read the specification sheet of the device, it is going to be clear (it was not clear to me what device you want to interface, since you mentioned two things, and did not link any manual...). Do you have a spec sheet (pdf file)? Can you share it with us?

Message 11 of 36
(2,101 Views)

I guess the manual lists all interface options which can be ordered. What interface of your actual model has? I do not really have any experience with these protocols/interfaces, I wonder whether the EtherNet-IP version can be simply connected to a normal Ethernet slot on a PC? Maybe someone familiar with these interfaces could give more explanation here?

Message 13 of 36
(2,085 Views)

I have the CANopen option so it doesn't have etherCAT capability unfortunately.

 

Its model 5P33

0 Kudos
Message 14 of 36
(2,078 Views)

Is it a viable option to buy an encoder with analogue output? The same company offers absolute encoders with analogue outputs. If you have AI DAQ already, this could be an alternative option.

On their website they show many models with analogue outputs:

encoders AO

Maybe they could swap your model with an analogue one?

Message 15 of 36
(2,070 Views)

Unfortunately I am stuck with the particular encoder I already have so need to figure out a solution based on this model

0 Kudos
Message 16 of 36
(2,071 Views)
Whoever specified the CANopen interface for the sensor should have budgeted for the appropriate interface to your pc. It's not something that should be made up after the fact. You have the cRIO, pci, pxi, and USB solutions from NI. If they are outside your budget, search somewhere else, increase the budget, or replace the sensor.
0 Kudos
Message 17 of 36
(2,056 Views)

Increasing the budget or replacing the sensor are not options unfortunately. 

 

There must be anotehr way. Since it operates on the CAN bus anyway, I think I can use a USB CAN interface for layer 1 and 2 and use the manufacturer software for the CANopen comms. I dont know how I would port it into LabVIEW. The manufacturer does provide .EDS files so perhaps this is for use with CANopen comms?

0 Kudos
Message 18 of 36
(2,040 Views)

Hi David,

 

as long as your employer pays your working time everything is ok… 😄

You could buy some hardware for ~1000$ or you can work for some time to get the same result. It's a decision your employer has to make!

 

EDS files (electronic data sheets) describe the "objects" your CANopen device uses, it's just a list of "addresses" and their meaning. They will not help you to implement the CANopen protocol layers!

 

Just an idea (I don't recommend to go this way): On NIs website you will find CANopen "drivers" to be used with cRIO/FPGA targets. They will show you how to implement CANopen commands like Read/WritePDO or Read/WriteSDO based on basic CAN messages. See how far you get…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 19 of 36
(2,034 Views)
Since you can't get the NI USB CAN module for your budget or the NI-CAN software for it, why do you continue to post to the NI boards. Find a CAN interface for your pc and make sure it has an API that can be used by third party software. It is the CAN interface to the pc that you need to integrate into LabVIEW. You don't have a manufacturer for this so it's silly to talk about it until you do.
Message 20 of 36
(2,030 Views)