LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

usb mikroc

Deployment of Labview signals, via USB

I am programming in MicroC a PIC18F2550 to communicate data with Labview via the USB port, and then plot them.
 

I've created my device driver to control it LABVIEW, using driver wizard, and Labview recognizes my device and I can send information to the PIC but when I try to get information I get an error message within labview:

error message: (Error-1073807302 ocurred at VISA Read in USBRAWBulkMain.vi)

Possible reason: VISA: (Hex 0xBFFF003A) Unable to start operation Because setup is invalid (due to attributes Being an Inconsistent state to September).
 

I found that maybe I have to change the endpoint descriptors and did it without any result.

Before building my device driver for Labview, the PIC is communicating correctly input and output, with the HID Terminal tool MicroC but it does not the same with labview.
 

I need help on this subject, because my search in all forums similar topics has not given me any results, appreciate any help or idea no matter how small.

Best regards.
 

Albert Smith

0 Kudos
Message 1 of 4
(3,571 Views)

Hi Albert:

 

It's probably a security issue. There's a safety check that throws that error if the triggers aren't routed properly.

 

To check the triggers, Open Measurement & Automation Explorer >> Devices and Interfaces >> expand  VXI System 0 and look for your device. Right-click it and select Properties >> select Signal Mappings tab. Choose where to route the different types of triggers available on the VXI backplane.

 

I hope that works!

 

Edgar Cabrera

 

 

Edgar Cabrera
Certified LabVIEW Associate Developer
0 Kudos
Message 2 of 4
(3,547 Views)

Thank you very much for your response Edgar, has been difficult to get help in this and other forums.

 

I've done what you indicate:
 

Join the Measurement & Automation Explorer, then to Devices and Interfaces, but there I can see VXI System 0.
 
But I do see my device (attached a picture of what I see on screen), the right click on my device I can not observe

 

the properties of this, to choose different types of triggers.
 

Maybe I skipped a step, or I'm not doing something right.
 

Thank you in advance for your assistance.
 

Albert Smith

0 Kudos
Message 3 of 4
(3,536 Views)

Can you help me?

i have project like you,whick i have to send some commands to PIC micrcontroller pic18f2550 via USB

i need to create labview vi to communicate with The PIC through USB.

0 Kudos
Message 4 of 4
(3,488 Views)