USB low-full-high speed peripherals Forum Discussions
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.
i can't find reference document for EZUSB.LIB.
I think it's help to me about usage EZUSB.LIB and reference document for EZUSB.LIB.
Can i know that what am i use EZUSB.LIB?
Acutuall, reference document for EZUSB.LIB is more helpfull to me.
In FX2LP, transaction counter can be read while transaction is in progress. Is there a way to make an "atomic" read of the all 4 transaction count registers? Otherwise reading them is useless, because if an update occurs in between of read operation, the data read would be corruptedShow Less
I willing to refer vendor request from pc side windows application.
I can't find Cyconsole' EZ-USB interface example project any way.
I want make vendor command function in windows new application.
Could you please give to me example project files?Show Less
i have test firmware "Vend_Ax"
But i have not any debugger device.
Could you please let me know any firmware debugging ways?
(such as printf or assertion etc..)Show Less
I willing to make slave fifo with i2c in 56pin fx2lp.
And i2c make by fx2lp's hardware.
I heard that i2c should using vendor command.
So i willing to use i2c_hw.c.
But i have question in here.
Vendor command is working on i2c?
I'm not sure how can i call i2c func in windows application.
What is relationship between vendor command and i2c_hw.c?Show Less
i willing to make i2c working in fx2lp 56pin.
but i have somequestions.
1) Are there any configuration setting(such as DSCR.A51) for I2C work in HW?
2) may i just only use following functions for i2c work ? (declared in EZUSE.LIB)?
EZUSB_InitI2C(); // Initialize I2C Bus
EZUSB_ReadI2C(I2C_Addr, length, buf);
EZUSB_WriteI2C(I2C_Addr, i, ee_str);Show Less
What am i do configuration for i2c setting in slave fifo mode?
Now i use 56pin fx2lp and 16bitdata slave fifo.
So i have not enough pin.
Could you please let me know what configuration need to me?Show Less
Hi sai krishna
I 'm not sure exactly what you mean that i2c_hw.c and i2c_sw.c.
It seems like that hw is fx2lp's sda and scl.
Also sw is using gpio's pin for i2c. right?
So, how can i this function call in win application?Show Less