12-10-2011 04:37 AM
hello i have developped a program on p18f4550 using flowcode v4 and i am trying to send 2 stings of length 20 to labview i am having problems setting up the interface on labview usb visa out and in and having problem getting to know the connections can i please get some help on how they work and how can i fix it?
12-12-2011 05:48 AM
Hi,
I saw your PH.vi and I realized several erros in that.
In your code there is a design pattern called State Machine. Your state machine could not stop if it has not been already stopped, the transition code-parts are wrong. About state machine you can read here: http://zone.ni.com/devzone/cda/tut/p/id/3024, http://zone.ni.com/devzone/cda/tut/p/id/7604 .
Here you can find an example for USB-RAW communication (with Event Handling): https://decibel.ni.com/content/docs/DOC-2022
Anyway, if you implemented the code in your microcontroller you should test it with a well-working program on the other side. Is you PIC uC side working well? Did you test it? If yes, you could build the LabVIEW program.
Regards,
Peter
12-13-2011 01:49 PM
thank you:D thats appreciated i will check them and fix it