From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

VISA write problem

hi, people. I'm having some problems with the VISA write module by USB-HID.
I'm been able of receive data from the pic by hid-interrupt, using VISA's particular event, but i cannot send data out (pc-pic); it just get stuck when i asked for it.
i don't know if it is a sync problem between the device and the pc -issue that i have had with USB BULK-, or just bad programming.

particularly i'm using a modified version of the HID MOUSE EXAMPLE SIMPLE, and a pic18f4550.
the structure of the pic firmware is something like this:

if some external event then send data.
then, see if there are some data out pending.
if not, repeat loop.
everything using the same endpoint nº1.

thanks a lot for the help.

0 Kudos
Message 1 of 4
(2,347 Views)
Hello! It might be going wrong because you're not using a USB functionm to do that. You should to use the "VISA USB Control Out Control" instead "VISA Write" Take a look at the "USB RAW - Control.vi" example. It's too close to what you want. Go to Help>>Find Examples. In the Browse tab, go to Hardware Input and Output>>VISA>> USB RAW - Control.vi
Felipe Flores
Technical Support Engineer
National Instruments
0 Kudos
Message 2 of 4
(2,182 Views)

thanks a lot, ill give it a try, 

0 Kudos
Message 3 of 4
(2,166 Views)

Please, let me know if that work!

 

Regards

Felipe Flores
Technical Support Engineer
National Instruments
0 Kudos
Message 4 of 4
(2,149 Views)