Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

VISA RAW FOR USB USING PIC18F4550

Try putting a delay (a sequence structure with a wait in it)  between your VISA Write and your VISA Read, it might help the problem.

0 Kudos
Message 11 of 18
(3,509 Views)

Hello,

Thank for suggestion but it does not working. The delay was the first stuff that I have tried. 🙂

 

 

0 Kudos
Message 12 of 18
(3,505 Views)

Hello Bart,

 

Have you found a solution for your problem? I have the same problem, I can write to the uC but I can't read from the uC.

 

Have a nice day

Ronald

0 Kudos
Message 13 of 18
(3,395 Views)

Found the problem.

 

The descriptor file (USBdsc.c) of MikroC Pro was not correct.... A few changes and it works....

 

Regards.
Ronald

 

 

0 Kudos
Message 14 of 18
(3,389 Views)

Hello Rtessel,

 

Nop, I do not have any answer but if it works for you, could you please give me your solution?

 

Thanks.

 

Bart

0 Kudos
Message 15 of 18
(3,383 Views)

Hello Bart,

 

The generated descripter file "USBdsc.c" by mikroC Pro for PIC v.5.6.0 I changed a part of the "configuration 1 descriptor":

 

 it was like this:

 // Endpoint Descriptor    

     0x07,                  

     0x05,                    

     USB_HID_EP | 0x80,          

     USB_TRANSFER_TYPE,     

     0x40,0x00,             

     EP_IN_INTERVAL,        

   

 // Endpoint Descriptor    

     0x07,                      

     0x05,                  

     USB_HID_EP,                        

     USB_TRANSFER_TYPE,     

     0x40,0x00,             

     EP_OUT_INTERVAL

 

Changed into:

  

// Endpoint Descriptor    

   0x07,                 

   0x05, 

   USB_HID_EP,      

   2,    

   0x40,0x00,            

   EP_IN_INTERVAL,        

  

// Endpoint Descriptor    

    0x07,                     

    0x05,                           

    USB_HID_EP | 0x80,            

    2,    

    0x40,0x00,             

    EP_OUT_INTERVAL

      

 

Regards,

 

 Ronald

Message 16 of 18
(3,376 Views)

Thanks! I'll try this ASAP.

 

Compliments!

 

B@rt

0 Kudos
Message 17 of 18
(3,359 Views)

Dear all,

 

is this solution still valid? I am having the same problem - I am able to send data to microcontroller through VISA write, but when I try to read I get the error  (Hex 0xBFFF003A) .

 

is the problem in the firmware of the microcontroller? I am not the one who wrote the firmware so I cannot modify it and I am not experienced in coding....

0 Kudos
Message 18 of 18
(2,252 Views)