LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Cypress reset-signal for initiations

Hi,

 

Im trying to download my firmware to a Cypress chip through Labview. But my problem is how I should do for sending the reset-signal which the chip requires. My device is USB RAW and I can read some basic thing from the chip through Labview.

 

/JoSv

0 Kudos
Message 1 of 7
(3,519 Views)

Hi Josv!

Communicating with the USB RAW class is more complicated because each device may use its own communication protocol. Contact your device vendor for details about the communication protocol for your device.

cheers

Ashwani S.
Applications Engineer
National Instruments Sweden
0 Kudos
Message 2 of 7
(3,509 Views)

I know how the protocol looks like I’m able to "reset"

the chip from a C++ program. But now I want to build

an equivalent program in Labview...

Any suggestion?

 

Thanks,

/JoSv

0 Kudos
Message 3 of 7
(3,505 Views)

hi Josv!

I assume your device is detected by Windows and NI-VISA is assigned as the device driver (binding done by .inf file) and you can see the device in MAX.

if thats the case, two additional VISA functions for USB, viUsbControlIn and viUsbControlOut can be used. These functions give you access to the USB device's control pipe, which every USB device has by default. You can set up communication with the device using the VISA properties. Refer to the NI-VISA Programmer Reference Manual, linked below, for more information on the USB specific attributes.


http://www.ni.com/pdf/manuals/370132c.pdf

cheers

Ashwani S.
Applications Engineer
National Instruments Sweden
0 Kudos
Message 4 of 7
(3,494 Views)

Hi,

 

I have never before written code in NI-VISA. How can I connect

NI-VISA to the graphical appearance which I'm used to in Labview.

 

/JoSv

0 Kudos
Message 5 of 7
(3,481 Views)
Hello JosV!
 
I strongly suggest you to check out shipping examples plus the examples and tutorials available on our website.
 
cheers.
Ashwani S.
Applications Engineer
National Instruments Sweden
0 Kudos
Message 6 of 7
(3,471 Views)
I have found the vi's but i dont understan what i sould send to communicate to the cypress chip AN2131Q

viUsbControlIn
viUsbControlOut
0 Kudos
Message 7 of 7
(3,417 Views)