10-09-2008 10:35 AM
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
10-10-2008
06:12 AM
- last edited on
09-09-2026
05:31 PM
by
Content Cleaner
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
10-10-2008 07:47 AM
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
10-10-2008
08:08 AM
- last edited on
09-09-2026
05:32 PM
by
Content Cleaner
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
10-10-2008 09:38 AM
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