LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

serial read error

Hi All,

I am trying to use labview to comunicate throught USB to a product we manufacture. I can communicate with the device using a terminal program. However, when I attempt to do the same with LABView, I get an error even though I have it configured the same as the terminal settings. The error is as follows:

 

Error -1073807330 occurred at Property Node (arg 2) in VISA Configure Serial Port (Instr).vi->Untitled 1

 

Possible reason(s):

VISA: (Hex 0xBFFF001E) The specified state of the attribute is not valid, or is not supported as defined by the resource.

 

Any help would be greatly appreciated. Thank you all.

0 Kudos
Message 1 of 9
(4,399 Views)

Well so it sounds like you're not configuring it correctly... Can you share your LV code as well as a screenshot of your terminal configuration?

Cheers


--------,       Unofficial Forum Rules and Guidelines                                           ,--------

          '---   >The shortest distance between two nodes is a straight wire>   ---'


0 Kudos
Message 2 of 9
(4,388 Views)

Ok. They are now attached. Thank you for your prompt response.

0 Kudos
Message 3 of 9
(4,380 Views)

That baud rate is really high, so high that maybe LV VISA doesn't like it. Are you able to change the baud rate on the device to a lower value? 9600 is the default.

Cheers


--------,       Unofficial Forum Rules and Guidelines                                           ,--------

          '---   >The shortest distance between two nodes is a straight wire>   ---'


0 Kudos
Message 4 of 9
(4,346 Views)

115200 is a standard baud rate.  I would not expect to be an issue.

 

Could you attach your actual VI?  I suspect a wiring issue.



There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 5 of 9
(4,331 Views)

You should first try to communicate to your device with MAX, see if its detected and if the same COM port is assigned.

 

Ben64

0 Kudos
Message 6 of 9
(4,329 Views)

Problem resolved. I am at a loss to explain this one. I closed and did not save the VI I had started. Reopened a new one and started over. That new VI functions as expected. Could have been a wiring error as was suggested. Frustration led to scrapping the whole thing before a thorough investigation could be done. Thanks everyone for your help

0 Kudos
Message 7 of 9
(4,299 Views)

And if it's not wiring issues, double check you have the COM port selected correctly and you don't have terminal trying to communicate at the same time.

 

ben's suggestion to use MAX is also a good idea because that's a good intermediate trial between your terminal and LV.

 

Edit: glad you figured it out.

Cheers


--------,       Unofficial Forum Rules and Guidelines                                           ,--------

          '---   >The shortest distance between two nodes is a straight wire>   ---'


0 Kudos
Message 8 of 9
(4,296 Views)

Stupid question: can you check you have connected 115200 to baud rate, not to data bits terminal.

0 Kudos
Message 9 of 9
(4,256 Views)