LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

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


rolfk wrote:

 

The more usual case is to build a LabVIEW driver that has two modes.


Or, if your driver is a class, you can simply derive a child class as a mock driver and override the important class driver methods with simulated functionality in the mock driver methods.

0 Kudos
Message 81 of 104
(5,311 Views)

That has some advantages to a functional driver, but I do not see a big advantage in it. Since the public API functions all eventually call into communicating with the not existing hardware, you either have to overwrite all public functions or dig down into the driver and also start to overwrite some common low level functions. I don't think overwriting private class members is something that would be possible in a good OOP design so you have to make also low level changes to your driver anyhow.

 

With a simple VI approach I only add a dual mode to the low level communication VI that does the actual sending and receiving and another one to all VIs that need to return some meaningful data despite that they do not get much useful stuff from the low level communication handler.

Rolf Kalbermatter
My Blog
0 Kudos
Message 82 of 104
(5,301 Views)

Hi Intaris,

Thanks for sharing your knowledge. I understand how to get data from a HID device using labview.

But how can I send data to HID device using labview?

0 Kudos
Message 83 of 104
(5,162 Views)

Hi Intaris,

 

I want to to USB Communication with CDC Class USB Device. If any example vi, or any information regarding how to develop driver can be helpful,

 

Regards,

Bujjin 

0 Kudos
Message 84 of 104
(4,984 Views)

You can use the information I have supplied here together with the class definition for CDC devices on the usb.org website.  There are 10 documents on the subject depending on exactly which type of device you are trying to interface with.

 

I don't have any further information, sorry.

 

Shane

Message 85 of 104
(4,980 Views)

Bujin's problem with CDC device is continued HERE.

 

Shane

Message 86 of 104
(4,966 Views)

How to generate the zero packet on the Bulk-OUT pipe by NI-VISA?

 

 

0 Kudos
Message 87 of 104
(4,718 Views)

Please start a new thread.

 

I don't know what youmean by "zero Packet".

 

Shane

0 Kudos
Message 88 of 104
(4,711 Views)

Thanks for your reply, I posted here

 

rgs,

YY

0 Kudos
Message 89 of 104
(4,701 Views)

I am currently developing an interface for labview multimeters brand TENMA 72-7732 by a USB cable. If possible using a program with a file extension ". DLL". or if there are other ideas! because I do not get solved this project using a visa with interrupt transfer type. For I have not found a solution by using the functions URB

I lost a lot of time searching for a solution so I would like a quick help

0 Kudos
Message 90 of 104
(3,879 Views)