LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

X10 CM15 controller VI

hi

I want some help regarding the X10 home automation labview VI
The attached file is built for the CM11a which is a controller that can be connected to the pc via serial port
The problem is that i have CM15 that can be connected via USB only, the attached file is built on serial connection so
can anybody change it for me to USB instead of serial or at least help me doing this

thanx
regards
0 Kudos
Message 1 of 8
(4,611 Views)
How does the device show up in Windows device manager when you plug it into your USB port?  Many USB devices will show up as a virtual com port in which case you wouldn't need to do anything different.
0 Kudos
Message 2 of 8
(4,596 Views)
It reads it as X10 controller in device manager at "universal serial bus" section down below
0 Kudos
Message 3 of 8
(4,589 Views)
If it does not appear as a serial port, then you cannot use the LabVIEW driver that you have. See if the vendor provides a driver in the form of dll that you can use the Call Library Function Node with.
0 Kudos
Message 4 of 8
(4,581 Views)

One thing you might try is an interface adapter, a USB to DB-9 hardware adapter. They can be purchased for as little as $ 20 with a little shopping. They come with a device driver that turns your USB port into a Com port that will show up in Max as a com port. Since your existing software uses Visa Serial vi's this is the only thing I can think of for you. I have used this method with older hardware and proprietary software for years, and it has always worked for me.

good luck.

 

Dave

0 Kudos
Message 5 of 8
(4,512 Views)

How will that work?  You convert the PC's USB port to a DB9 serial port which cannot connect to the device because it uses a USB port.

 

Since the devices doesn't show up as a Com port now, the .llb that was posted just won't work.  The manufacturer of the device needs to provide some sort of USB based driver and some sort of manual telling how to interface with it.

0 Kudos
Message 6 of 8
(4,506 Views)

If you enjoy reverse engineering this sort of thing, take a look at the community nuggets on USB use using VISA:

 

Nugget: 1 of n : GEtting started with USB communication via VISA

 

Nugget: 2 of n : USB Control transfers using VISA

0 Kudos
Message 7 of 8
(4,480 Views)

Process Systems wrote:

One thing you might try is an interface adapter, a USB to DB-9 hardware adapter. They can be purchased for as little as $ 20 with a little shopping. They come with a device driver that turns your USB port into a Com port that will show up in Max as a com port. Since your existing software uses Visa Serial vi's this is the only thing I can think of for you. I have used this method with older hardware and proprietary software for years, and it has always worked for me.

good luck.

 

Dave


It looks like you are saying the PC's physical USB port is made to appear to the operating system as a Com port, then the adapter gives you a DB-9 that you can plug any old serial device into.  Is that correct?  That could come in very handy...  I'll have to search for one of those.

0 Kudos
Message 8 of 8
(4,475 Views)