03-17-2012 04:08 PM
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
03-20-2012 10:54 AM
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
03-20-2012 06:12 PM
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
04-15-2012 03:54 PM - edited 04-15-2012 03:54 PM
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.