LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Communication Labwindows <--> microcontroller through USB port

Hi everyone,

I have fabricated two boards which use  PIC microcontrollers (PIC18F4550  and PIC24FJ256GB110) with an integrated USB module for communication with PC.

I'd like to use Labwindows to communicate with them.

Could you please tell me the steps for making Labwindows communicate with the microcontrollers through USB port?  I'm new to Labwindows.

Any help, any links, any tutorials  are welcome.

 

Best regards

Kabanga 

0 Kudos
Message 1 of 5
(5,835 Views)
hello kabanga,

one possibility would be to use a driver library, which comes with the microcontroller.
the alternative would be to create an own driver with NI-VISA.
you find a tutorial on this here.

then you could detect the device in VISA and use VISA functions to communicate with it.

kind regards,

robert h
NI germany
0 Kudos
Message 2 of 5
(5,806 Views)

Hi Robert ,

thanks a lot for your answer.

Now after having installed the USB device using the procedure described in the tutorial you sent me, how do I use NI-VISA in Labwindows?

I don't understand at which point and how to use VISA in Labwindows. This turorial gave an example with LabView.

 

Best regards

Kabanga 

0 Kudos
Message 3 of 5
(5,797 Views)
hello Kabanga,

as you can see from this KB there are two functions to
interact with the USB device. you find them in the library tree:
Libraries -> VISA Library -> Resource-Specific Operations -> Interface-Specific Operations

you find further documentation on these functions in the VISA help. basically the functions are the same functions as they are used in LabVIEW, which means the usage
is the same in LabVIEW as it is in CVI.

kind regards,

robert
0 Kudos
Message 4 of 5
(5,792 Views)

Hi Robert,

thank you for your help.

I'll put in practice your advises and I'll late you know the outcome later.

 

Best regards

Kabanga 

 

0 Kudos
Message 5 of 5
(5,786 Views)