Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

property error

Solved!
Go to solution

recently,i try to communicate between PC and NEC based on modbus protocol.

at the help of the NI engineer,i began to use the modbus library from the forums.and when i run the programs ,the property of visa resource error out.and the following program didn't work as it was supposed to happen.

as a newbie,i am confused.and any advice is appreciated.

thank you very much.

ps:my program is as follows.

Download All
0 Kudos
Message 1 of 9
(4,383 Views)

Hi,

 

It would help if you tell us what the error code you get.

 

What interface are you using ?

 

Kees

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

yeah,i describe a wrong error.the error is error-1073807253.and nearly all the VIS i used is from modbus library.

the interface is serial port by rs-485.

thanks a lot

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

Hi,

 

The error you get is a Framing error'

This means that there must be something wrong with your interface and/or settings.

 

Are you absolutely sure that your settings (baudrate, parity) are OK ?

 

Describe you RS-485 connection. Number of wires, terminators, 0V connection, length, etc.

 

Kees

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

i'm sure all the parameter that are correct.did you see the program i uploaded?

well,thank you all the same.i'll check it again.

0 Kudos
Message 5 of 9
(4,356 Views)
Solution
Accepted by kuailedjs

Hi,

 

OK, now you have to know if your connection is OK.

Try the attached program with the data mentioned in the block diagram.

You can use the loopback command to make sure that your hardware link is OK.

If this works other ModBus communication, like your program, should also work.

 

Kees

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

thanks a lot.it does work now.

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

Hi,

 

Can you share the solution with us. Many others have the same problem and most of them would like to learn from the solutions.

 

 

Kees

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

yeah,i'd like to share it.in the end,i find it that it's a hardware problem,my rs-485 didn't work as it was supposed to .then caused the error.in a words,my program is ok.thanks a lot.

from this debug,i learn a lot,when you meet a question again,not panic,just keep calm.and overcome the question carefully from the software to the hardware,cause as long as one slight question occurs,it'll don't work well.

 

 

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