Cypress Perform

Home > Design Support > Cypress Developer CommunityTM > Cypress Forums > USB Controllers

Bookmark and Share
Cypress Developer CommunityTM
Forums | Videos | Blogs | Training | Rewards Program | Community Components



Interfacing FX2LP with LabVIEW using NI-VISA drivers
Moderator:
RSKV

Post Reply
Follow this topic



Interfacing FX2LP with LabVIEW using NI-VISA drivers

TheThinker posted on 14 Dec 2012 12:01 AM PST
Senior Member
17 Forum Posts

Hi all,

I tried to use fx2lp 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 projec Bulkloop which could be found among the firmware examples for FX2LP with the DVK contents. Bulkloop 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 FX2LP 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 for reference.

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

Enjoy..!!!







ALL CONTENT AND MATERIALS ON THIS SITE ARE PROVIDED "AS IS". CYPRESS SEMICONDUCTOR AND ITS RESPECTIVE SUPPLIERS MAKE NO REPRESENTATIONS ABOUT THE SUITABILITY OF THESE MATERIALS FOR ANY PURPOSE AND DISCLAIM ALL WARRANTIES AND CONDITIONS WITH REGARD TO THESE MATERIALS, INCLUDING BUT NOT LIMITED TO, ALL IMPLIED WARRANTIES AND CONDITIONS OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT OF ANY THIRD PARTY INTELLECTUAL PROPERTY RIGHT. NO LICENSE, EITHER EXPRESS OR IMPLIED, BY ESTOPPEL OR OTHERWISE, IS GRANTED BY CYPRESS SEMICONDUCTOR. USE OF THE INFORMATION ON THIS SITE MAY REQUIRE A LICENSE FROM A THIRD PARTY, OR A LICENSE FROM CYPRESS SEMICONDUCTOR.

Content on this site may contain or be subject to specific guidelines or limitations on use. All postings and use of the content on this site are subject to the Terms and Conditions of the site; third parties using this content agree to abide by any limitations or guidelines and to comply with the Terms and Conditions of this site. Cypress Semiconductor and its suppliers reserve the right to make corrections, deletions, modifications, enhancements, improvements and other changes to the content and materials, its products, programs and services at any time or to move or discontinue any content, products, programs, or services without notice.

Spec No: None; Sunset Owner: GRAA; Secondary Owner: RAIK; Sunset Date: 01/01/20