Page 1 of 1

CAN-BUS read/write

PostPosted: Tue May 21, 2019 7:47 am
by TheRookie
Hey everyone,

I am a newby to Flowstone so i have at least one question:

I want to connect a CAN-Bus to Flowstone (to read und write Data), but i could not find a solution for this problem.

My Adapter: IXXAT USB-to-CAN V2 compact
(https://www.ixxat.com/products/products ... -to-can-v2)

How can I detect this adapter? Is there a chance to detect him with the COM-Module?


Thanks for your support and I am very sorry for my lack of knowledge.. :lol:

Re: CAN-BUS read/write

PostPosted: Tue May 21, 2019 2:20 pm
by trogluddite
Welcome to the forum, TheRookie.

I've had a quick look at the documentation for your CAN-Bus adapter and, unfortunately, it looks like it might be more complex than accessing USB via a virtual COM-port. From what I can see, it seems that the adapter relies on a C++ .dll to provide its programming interface (API - LINK), which provides a set of functions that you can call. FlowStone does have a component for calling functions of .dlls, but it can only pass values to them and read the return values in a very specific way, which is quite likely not going to be compatible.

However, FlowStone's Ruby code component does have access to a library called "Win32API" which is a much more flexible way to call dll's, and I think this would allow the functionality that you need. It's a rather cryptic part of Ruby to code for, but if that could be worked out, it would then be possible to "wrap" the functions into a toolbox of FlowStone modules which would be much easier to use (and, of course, that part of the work would only need to be done once.)

If that sounds viable to you, let us know - I'd be happy to give you a hand with the Ruby "Win32API" code.