Problem about using CyUSB.dll with LabVIEW to access FX2LP

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

cross mob
Anonymous
Not applicable

I am trying to using CyUSB.dll with LabVIEW to access FX2LP, but failed.

   

My LabVIEW code as follow, it is good running before method "get_Item", and the count of USBDeviceList is 1 or 0 depends on CY7C68013A is attached or not. When it runs after method "get_Item", LabVIEW will be crashed....

   

It's very kind of you if you give me some advice or an example.

   

   

0 Likes
1 Solution
Anonymous
Not applicable

 Hi,

   

   What is the error being displayed in the Labview Window??

   

Thanks

   

Prajith

View solution in original post

0 Likes
20 Replies
Anonymous
Not applicable

 Hi,

   

   What is the error being displayed in the Labview Window??

   

Thanks

   

Prajith

0 Likes
Anonymous
Not applicable

hi, PRJI,

   

Thank you to reply.

   

I translate in Google:

   

LabVIEW 10.0f2 Development System has encountered a problem need to close. We apologize for the inconvenience.

   

If you are in the process of which the information may be lost.

   

(Button)Debug                            (Button)Close

0 Likes
Anonymous
Not applicable

 Hi,

   

  What are you trying to do inside get_Item method? I would like to take a look, please attach your project if possible.

   

Thanks

   

Prajith

Anonymous
Not applicable

Hi, PRJI,

   

Attached file is my test project.

   

I just want to use CyUSB.dll with LabVIEW like I do it with C#.

   

In fact, I can access FX2LP via NI-VISA driver in LabVIEW, but the throughput is 21MB/s at most. (It is up to 36MB/s when I use CyUSB.dll in C#. That is why I want to use CyUSB.dll with LabVIEW. )

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

attached file: lv_dotnet_test.zip

0 Likes
Anonymous
Not applicable

Hi, @PRJI,

   

Is there any good news about using CyUSB.dll with LabVIEW?

   

I think there must be some details I missed.

   

It is really make me crashed.

   

Thank you very much.

0 Likes
Anonymous
Not applicable

 Hi,

   

   Please create a tech support case (MyAccount -> MyCases) so that one of our engineer can look into this.

   

Thanks

   

Prajith 

0 Likes
Anonymous
Not applicable

 Hello,xhudiao, I'm studying how to develop the cy7c68013 through labview, but I don't know how to access the chip. When I use the CyUSB.dll, there is no functions to be selected .

   

I wonder if you can help me, please leave me your email for communication. Thanks!

0 Likes
Anonymous
Not applicable

 Hi,

   

 

   

We have not tested Labvieww ith CyUSB.dll internally. Just see if tehse are of help to you: http://www.ni.com/white-paper/4888/enhttp://ftp.icpdas.com/pub/cd/iocard/isa/napdos/isa/manual/calling_dll_functions_in_labview.pdf

   

 

   

Regards,

   

Gayathri

0 Likes
Anonymous
Not applicable

Have you succeed  communicating with with LabVIEW to access CY7C68013

0 Likes
Anonymous
Not applicable

 Did anyone ever get this to work correctly? I am having the same issues now.

0 Likes
Anonymous
Not applicable

Has there been any Headway on this problem. It appears some of the internals of the .NET library are exposed and not all of the methods. When the get_item is used (an internal .NET method) is used Labview crahes.

0 Likes
Anonymous
Not applicable

I am trying to access CY7C68013 by Labview (or Matlab), but haven't got any idea yet...Does anyone have done similar task before? Please share......

0 Likes
Anonymous
Not applicable

Hi,

   

You can communicate with FX2LP using NI-VISA drivers or you can import cyusb.dll into labview and use cyusb drivers.

   

For creating an using  NI-VISA drivers refer the link http://www.ni.com/white-paper/4478/en/#toc2

   

Use the BULk loop example provided with the Cy3684 DVK http://www.cypress.com/?rID=14321 to program the FX2LP.

   

Open the labview and in the example projects use USB RAW-BULK.vi.

   

 

   

Regards,

   

Vikas.

0 Likes
EvPa_264126
Level 7
Level 7
500 replies posted 250 replies posted 100 likes received


look at this too: IntelHexLoad1.zip ‏350 KB

   

from   LabVIEW application (VISA) that could load an Intel Hex file into the Cypress CY7C68013 chip

   

I also have not found a way to use CyUSB.dll in LabVIEW....((

0 Likes
Anonymous
Not applicable

 Hi,

   

 

   

Please let me know the following

   

 

   

1. Is it returning any error when you are running the application?

   

 

   

2. Have you tried to program the device using the Cyconsole/Control Centre with the same hex file? 

   

 

   

3. Please capture a USB trace and check whether it is sending the actual hexadecimal data that is in the hex file or sending the ASCI values for each byte

   

 

   

For importing cyusb.dll into labview refer the link http://digital.ni.com/public.nsf/allkb/DCB90714981A1F148625731E00797C33.

   

 

   

Regards,

   

Vikas.

0 Likes
lock attach
Attachments are accessible only for community members.
Anonymous
Not applicable
        Hi Try with the attached project. I did some modifications to your project and now I could able to program the RAM of FX2LP Regards, Vikas   
0 Likes
EvPa_264126
Level 7
Level 7
500 replies posted 250 replies posted 100 likes received

Unfortunately your file with the latest version (LabVIEW_2014)
My LabVIEW_2012 could not open it (((
 

0 Likes
Anonymous
Not applicable

 Hi ,

   

 

   

I am using labview trail version 2014. Sorry we don't have 2012 version. When I am trying to downconvert it is showing some errors.

   

 

   

In your application i changed the hex file with our example firmware and  i tried the source name. Thats all the modifications I did. As you are using some spi hex file ,is it working with control centre provided with Cy3684 DVK?If yes then it should work with your project also.

   

 

   

Regards,

   

Vikas.

0 Likes
lock attach
Attachments are accessible only for community members.
Anonymous
Not applicable
        Hi Please find the attached project in labview 2012 Regards, Vikas.   
0 Likes