01-20-2010 03:35 AM
I am currently working on USB RAW- Interrupt method and Bulk method for communicating between labview and uC. Currently I am able to transfer 64bytes in and 8 bytes out in interrupt method successfully...I am posting the VI....Now if you see the VI, you will find out that endpoint 2 is for out but I have not put any endpoint number for in but still I am able to read 64 bytes ....In microcontroller program I have defined endpoint no.1 for in and no.2 for out....so I want to know in this case in VI which endpoint would be allocated for in???
01-22-2010 12:17 PM
I haven't used the interrupt controlled read but maybe the endpoint can be set before you start to wait for the interrupt? I would try first setting the endpoint and then do a regular visa read and see if you get the right data back. In your example it looks like you're just writing to the uC and then getting a response - I would guess that using the interrup isn't gaining that much efficiency for you. Or is there another reason for using interrupts? You can set the bulk in and out pipes with visa property nodes and can set them immediately before doing the read or write. A thread with an example is here:
http://forums.ni.com/ni/board/message?board.id=170&thread.id=404069
I don't have any hardware I could test this on - let me know if it works.