03-11-2010 09:10 PM
Hi,
I have pcb board, contains microcontroller and some relays. I wnated to switch led on\off by sending commands ,and it has usb port for communication. from couple of days i am working sending ascii commands (01,02.. etc) form labview to the board using usb cable. I tried using visa methods by creating raw usb port which can be seen in max. but this dinnot work. Could you please help me in solving this problem
Thanks
Solved! Go to Solution.
03-11-2010 11:41 PM
03-11-2010 11:51 PM
I was looking through the LabVIEW forum and cam across this hope it helps:
http://forums.ni.com/ni/board/message?board.id=170&message.id=234317&query.id=1866381#M234317
03-12-2010 01:14 PM
Have you seen this KB?
It would be helpful if you post screenshots of where the device is showing up and if you have had any success in communicationg with this instrument at all.
Thanks!
03-12-2010 01:28 PM
03-14-2010 06:51 PM
Pcb board is developed in my company. It has got driver for it. And usb is "raw" (any usb cabel can be used). Yes, when I connect this boars , it comes up in NImax as COM 3. But still I have trouble in sending commands to the board.
I have less knowledge on serial communication using visa.
I have attached document which contains screen shots.
03-14-2010 06:56 PM
If you have a driver that makes it a serial port, it is certainly not raw. Raw would required to do things such as write to the different endpoints.
What exactly do you mean by 'trouble'? Do you get any errors? Does it work in Hyperterminal? Get that working before you write any code.
03-14-2010 08:06 PM
Thanks for the clarification. As I understood that, I don't need to creat usb raw, if I have got driver for the board.
Yes, pcb board works in hyperterminal and also,
For the PCBA tester the serial codes are
o1 to give the PCBA power
f1 to turn the power off
o3 to simulate the latch micro switch is closed
f3 to simulate the latch micro switch is open.
I don't know how to send commands to set led or any other switches on\off?
Please help.
Thanks
03-14-2010 08:13 PM
If your company developed the board, shouldn't someone in your company know how to communicate with it?
If you need help with serial communications in LabVIEW, look for serial in the Example Finder. Basic Serial Write Read.vi will show you one way of communicating.
One thing you'll need to pay attention to is if you need to send any termination characters such as a line feed or carriage return (or both) at the end of the string you send out.
08-06-2010 06:10 AM
I have used PIC18F4550 and successfully communicate it with PC using Virtual COM Port
But I cant communicate it as a USB ...
i have communicate it by using VB Code ( example on www.sixca.com )
but cant send/receive data from PC using LabView (Although i m sending same Data)
Plz tell me how to send/receive data using LabView
THNK U
JIMI