07-08-2013 04:10 AM
Hello,
I am trying to communicate with a control device through RS232 cable. All characteristic commands like "<120/STATUS_?(CR)" are working properly in " c programing" but when I use them in Labview the error code -1073807339 comes in VISA read.
Please help me with this
thanks
like " <120/STATUS_?(CR)"
07-08-2013 05:00 AM
Can we have a look at your VI, to uderstand how you're trying to implement it?
If so, attach your code here.
07-08-2013 05:12 AM
Hi
Thanks for reply.
vi file is attached
07-08-2013 05:56 AM
I'm not sure, but it seems in place of '(CR)', it should be Carriage Return constant as shown below:
07-08-2013 06:06 AM
@sam009 wrote:
Hello,
working properly in " c programing"
If its working properly in C programming, then you can also use one of the RS232 sniffers to check, what command is sent by C program and what is the response form the control device.
Check here for a list of free RS232 sniffers.
07-08-2013 06:08 AM
I tried but doesn't work,
The correct code is "<120/STATUS_?(CR)" by mistake I put extra <120/ in my vi.
07-08-2013 06:12 AM
I'll strongly recommend you to check the command being sent by so called perfectly working 'C program'...!!
Anyways, if you have the manual for that device, you can share that with us.
07-08-2013 06:50 AM
The manual for that device is attached. ( page 21-22 is for command/response list)
I didn't check with "c program" but it is checked by manufacturer.
07-08-2013 07:47 AM
@sam009 wrote:
Hello,
I am trying to communicate with a control device through RS232 cable. All characteristic commands like "<120/STATUS_?(CR)" are working properly in " c programing" but when I use them in Labview the error code -1073807339 comes in VISA read.
Please help me with this
thanks
like " <120/STATUS_?(CR)"
-1073807339 is a VISA timeout error so I would suspect that the serial port is not configured correctly. This would be in the ACU_open.vi (you didn't attach this vi). Make sure that the termination character is enabled and set to 0xA (LF character).
Ben64
07-08-2013 08:00 AM
this is ACU_open. vi