LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Connecting USB device with labview

Hello,

 

I am trying to connect Tesla meter via USB to LabView, to read data measuring data.

 

I create and instal INF file. I have VISA instaled already.

In MAX i can see that instrument is available. Picture 1.

I wrote a simple VI, but i don't have anything in my VISA resource. in att picture 2.

Can someone please advise, how to get communication with this USB?

 

Thank you a lot,

Milan

 

0 Kudos
Message 1 of 17
(401 Views)

LabVIEW VISA, if it can attach to and communicate with your device, usually gives it a name (I'm on the road and can't get MAX to look at any of my VISA connections "back home", so I don't remember the type of name, probably something like "COM1").  If you see a weird string of characters (as you do), then MAX is only seeing the "generic" connection and probably can't communicate.

 

Try (in MAX) to open a Test Panel to that VISA port and see if you can send and receive commands.  Report back your findings (especially if something seems to work) and we'll try to help some more.

 

Bob Schor

0 Kudos
Message 2 of 17
(368 Views)

Hello,

 

one restart solved the problem.

Now I am able to use tesla metar.

 

Thanks.

0 Kudos
Message 3 of 17
(365 Views)

Hello,

 

Generaly, i am trying to get measuring data via usb from measuring instrument...

 

But first, i am trying to send 64 byte buffer to instrument via USB.

For example first byte should be 0 and second $1C...

But I am not able to send 1D array to visa write, because the type should be string.

Well, can anybody explain me how to do this.

In att.

 

Thank you.

0 Kudos
Message 4 of 17
(311 Views)

Hi milan,

 

use this : ByteArr to string.png (Byte Array to String)

You can find it in the string palette, subpalette Path/Array/string conversion

Greets, Dave
0 Kudos
Message 5 of 17
(304 Views)

Hi Dave,

as you can see in my Vi, i already use this array to string block, but still geting error.

Error in attachment.

Have you any sugestions?

 

Thanks.

Milan

0 Kudos
Message 6 of 17
(298 Views)

Your array should be U8 rather than U64.  With a U64, each element is going to be converted to 8 bytes.  Probably not what you want.

 

The error message is related to the VISA device.  Whether it is because you sent an invalid string with the VISA Write or not, I don't know.

0 Kudos
Message 7 of 17
(278 Views)

Hello,

 

i managed to run USB device with Labview, but on 32bit system.

Problem is because mcHID.dll is design for 32bit system, and it cannot work on 64bit machines!

 

Is there any replacement for this mcHID.dll, to run on 64bit machine???

Or somebody can advise, how to overcome the problem???

 

Thank you.

0 Kudos
Message 8 of 17
(250 Views)

Where do you have the mcHID.dll from? That's probably the best place to ask for help.

0 Kudos
Message 9 of 17
(244 Views)

Hello,

 

HAHA... producer of device cannot help in that way...

 

If anybody have idea, please advise...

 

Best regards

0 Kudos
Message 10 of 17
(239 Views)