Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re^2: Data Transfer using CAN (Controller Area Network)

by Sathish (Initiate)
on Nov 22, 2010 at 06:14 UTC ( [id://872893]=note: print w/replies, xml ) Need Help??


in reply to Re: Data Transfer using CAN (Controller Area Network)
in thread Data Transfer using CAN (Controller Area Network)

Am having both the CAN controller and CAN tranceiver. Now I am sending the data using the IG block in the CANoe. Instead of that I would like to send an data only if a button is pressed. I can make a button using a Tk. To interface the button action to send an data to the another node I need your help. All the CAN communication is already there. For testing purpose we are sending an data through IG block. I am trying to change that part by a button.

  • Comment on Re^2: Data Transfer using CAN (Controller Area Network)

Replies are listed 'Best First'.
Re^3: Data Transfer using CAN (Controller Area Network)
by BrimBorium (Friar) on Nov 22, 2010 at 12:38 UTC

    Ok, so you do not necessarily want to access your CAN device directly. Accessing CANoe would be sufficient for you. If you would have told that in your question earlier you could avoid a lot of confusion.

    Accessing CANoe works via Win32::OLE, read the documentation of CANoe COM server and check the VB exampe to access environment variables.

    I would create a CAPL node wich communicates with your perl script via CANoe environment variables. So if you click the button you would set an environment vaiable wich triggers the CAPL node to send a CAN message. That way you can even get data from CAN back to perl. It just depends on you interface design.

    Show your solution and I'll comment it.

      Hi Sathish, I would really appreciate if you could share your win32::ole initialization perl code showing how host perl code connects to canoe. Regards, andy
Re^3: Data Transfer using CAN (Controller Area Network)
by Anonymous Monk on Nov 22, 2010 at 07:56 UTC
    Am having both the CAN controller and CAN tranceiver. Now I am sending the data using the IG block in the CANoe. Instead of that I would like to send an data only if a button is pressed. I can make a button using a Tk. To interface the button action to send an data to the another node I need your help. All the CAN communication is already there. For testing purpose we are sending an data through IG block. I am trying to change that part by a button.

    This makes no sense at all. If you can make a button, and you can make it do something, and you can send the data using the IG block in the CANoe, whatever that is, why can't you send the data on button press?

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://872893]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (2)
As of 2024-04-20 03:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found