Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

ADAM communication

Solved!
Go to solution

Hey,

 

I am looking to communicate from labVIEW to an ADAM 4068. Is there any suggestions in 'find examples' as how to even start the code for this device.

 

Thanks

 

Damien

0 Kudos
Message 1 of 14
(5,175 Views)

@Damien129 wrote:

Hey,

 

I am looking to communicate from labVIEW to an ADAM 4068. Is there any suggestions in 'find examples' as how to even start the code for this device.

 

Thanks

 

Damien


I am too lazy to look it up. What exactly is an ADAM 4068?

0 Kudos
Message 2 of 14
(5,169 Views)

It uses Modbus so that is what you should have searched for. Download the LabVIEW Modbus Library if that is the language you are using. That would have been important information to include in your post.

0 Kudos
Message 3 of 14
(5,165 Views)

Thanks for the heads up on the modbus library. Do you know if i require more than just the master and slave.vi or what should it consist of.

 

Damien

0 Kudos
Message 4 of 14
(5,148 Views)

The library consists of about 10 functions that will appear on your palette. A couple of those are polymorphic though. There are also numerous subVIs in the llb that are not shown on the palette. I would recomend starting with the ethernet master example and see if you can connect. You might have to change the type of write and read, depending on the device. The documentation should explain whether you need to read/write registers, coils, etc.

0 Kudos
Message 5 of 14
(5,142 Views)

Thanks very much, i was reading on NI.com where it recommended to use Modbus I/O Servers provided in the LabVIEW Datalogging and Supervisory Control (DSC) Module or Real-Time Module LabVIEW Datalogging and Supervisory Control (DSC). Are these necessary? Also I was trying to set up a modbus Master I/O server but when i create a new project when I right click on my computer the option of I/O server is not available or neither is the targets and devices? Is there a reason for this.

 

https://knowledge.ni.com/KnowledgeArticleDetails?id=kA03q000000x0QgCAI&l=en-US

 

 

Damien

 

0 Kudos
Message 6 of 14
(5,138 Views)
Solution
Accepted by Damien129

If you want to spend the extra money for the DSC add-on and implement an HMI/SCADA system and communicate to plc's,etc., then go ahead and do it. It's certainly not required for a single modbus device. If it was, I would not have told you to download the modbus library.

 

And the reason you cannot create the project is that you don't have DSC.

0 Kudos
Message 7 of 14
(5,133 Views)

Thats for the information. Very much appreciated.

 

Damien

0 Kudos
Message 8 of 14
(5,125 Views)

I have followed your advice on connecting with ethernet master/slave vi's and it worked. In the serial master/slave i receive an error

 

Error -1073807246 occurred at Property Node (arg 1) in MB Serial Init.vi->MB Serial Example Master.vi

 

The possible reasons given are VISA:  (Hex 0xBFFF0072) The resource is valid, but VISA cannot currently access it. Other programs are not using the com port.

 

Even with the serial write and read.vi i get this error.

 

Is it because i am using modbus that I am getting this visa error. All of my com ports work correctly when connected to my other devices. Multimeter,power supply etc.

 

In the VISA Interactive control my devices are labelled under

 

ASRL3::INSTR

ASRL4::INSTR

ASRL5::INSTR

ASRL6::INSTR

 

as i am using a USB to 4xserial adapter.

 

Should I have left the COM port i am using as a USB RAW Resource

 

Damien

0 Kudos
Message 9 of 14
(5,122 Views)

I receive an Error 6101 in Modbus Library MB Serial Example Master.vi when i run both the master/slave vi's. I have performed a loopback test in labview using the serial write and read vi and also in MAX i can write/query to the device but there is either no response or a timeout error. Is this because the ADAM-4068 is set to modbus protocol? Any advice helpful? All other COM ports are working fine when connected to other devices?

 

Damien

0 Kudos
Message 10 of 14
(5,119 Views)