Interfacing PSoC with LabVIEW using NI-VISA drivers.

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
lock attach
Attachments are accessible only for community members.
Anonymous
Not applicable

Hi all,
I tried to use PSoC with LabVIEW using NI-VISA drivers.
I followed the following steps and could use the LabVIEW standard examples like USB RAW-Bulk and USB RAW-Control to communicate with the device.
I used the example project USBFS_Bulk_Wraparound which could be found among the standard examples of PSoC3. Similar can be implemented with PSoC 1 as well. Bulk wraparound is simply taking OUT data from the out endpoint and looping it back to the IN endpoint, so host receives the same data as it sends. 
I used a random PID_VID of 0555_0666 just for trying it on my PC.

   

Here are the steps that I followed:
1. Most important of all, installed the latest version of LabVIEW and NI-VISA package.
2. Because PSoC is a USB RAW class device, we need to configure the NI-VISA to use that driver. Basically using the NI-VISA driver wizard we can build an inf file for that PID_VID which will bind the device to the NI-VISA drivers.
Complete Steps to follow are given at the link: http://www.ni.com/white-paper/4478/en#toc2
3. I checked my device using the VISA Interactive Control and I could see the communication as expected.
4. I opened the LabVIEW project USB RAW-Bulk from the examples in LabVIEW. You will get this example only after you have installed the NI-VISA drivers appropriately.
Help->Find Examples->(Search for) USB RAW bulk and you will find this example.
5. Attach your device, (it should be attached I suppose) check device manager if it shows the device as NI-VISA device. Run the LabVIEW project, you should see the device now in the VISA Resource Name drop down menu. Click Open Session to open communication session with the device.
6. Type some data in the Bulk Out window, click Bulk Out. Data would be sent across (you will see no error in the error window). Now click on Bulk In (you can leave the data field size to be 512 bytes), you would see the same data being received from the device.

I attached some snapshots.

I hope this is useful for some LabVIEW beginners like me.

   

Enjoy..!!!

0 Likes
3 Replies
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

Thank you Thinker to share your experiences with us!

   

 

   

Bob

0 Likes
lock attach
Attachments are accessible only for community members.
Anonymous
Not applicable

Hi 

   

I cant get this working with the Visa this is the error message I get when I select usb and next does anyone have any idea's

   

Best Regards

   

David

0 Likes
Anonymous
Not applicable

Hello,

   

I'm an eletrical engineering student and I'm using the PSoC 5LP for my master thesis. I wish to use it as a wave generator and, also, I'd like to test it at home. I've read that this is possible through NI-VISA and Labview.

   

My issue is that, when I create the .inf file, it doens't let me install it because it's missing a .cat file. I've looked everywhere but I don't know how to find it or create it. Do you know how can i proceed to obtain this .cat file?

   

 

   

Best Regards,

   

Telmo Barros

0 Likes