LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

ASCII code and problem with VISA read

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)"

0 Kudos
Message 1 of 19
(2,759 Views)

Can we have a look at your VI, to uderstand how you're trying to implement it?

If so, attach your code here.


I am not allergic to Kudos, in fact I love Kudos.

 Make your LabVIEW experience more CONVENIENT.


0 Kudos
Message 2 of 19
(2,750 Views)

Hi

Thanks for reply.

vi file is attached

 

 

0 Kudos
Message 3 of 19
(2,745 Views)

I'm not sure, but it seems in place of '(CR)', it should be Carriage Return constant as shown below:

 

Replace with CR.png


I am not allergic to Kudos, in fact I love Kudos.

 Make your LabVIEW experience more CONVENIENT.


0 Kudos
Message 4 of 19
(2,730 Views)

@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.


I am not allergic to Kudos, in fact I love Kudos.

 Make your LabVIEW experience more CONVENIENT.


0 Kudos
Message 5 of 19
(2,727 Views)

I tried but doesn't work,

The correct code is "<120/STATUS_?(CR)" by mistake I put extra <120/ in my vi.

0 Kudos
Message 6 of 19
(2,724 Views)

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.


I am not allergic to Kudos, in fact I love Kudos.

 Make your LabVIEW experience more CONVENIENT.


0 Kudos
Message 7 of 19
(2,720 Views)

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.

0 Kudos
Message 8 of 19
(2,707 Views)

@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

0 Kudos
Message 9 of 19
(2,689 Views)

 

this is ACU_open. vi

0 Kudos
Message 10 of 19
(2,681 Views)