From 04:00 PM CDT – 08:00 PM CDT (09:00 PM UTC – 01:00 AM UTC) Tuesday, April 16, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

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

 

Download All
0 Kudos
Message 1 of 17
(3,389 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
(3,356 Views)

Hello,

 

one restart solved the problem.

Now I am able to use tesla metar.

 

Thanks.

0 Kudos
Message 3 of 17
(3,353 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
(3,299 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
(3,292 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
(3,286 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
(3,266 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
(3,238 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
(3,232 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
(3,227 Views)