Instrument Control (GPIB, Serial, VISA, IVI)

annulla
Visualizzazione dei risultati per 
Cerca invece 
Intendevi dire: 

ADAM communication

Risolto!
Vai alla soluzione

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
Messaggio 1 di 14
5.769Visualizzazioni

@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
Messaggio 2 di 14
5.763Visualizzazioni

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
Messaggio 3 di 14
5.759Visualizzazioni

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
Messaggio 4 di 14
5.742Visualizzazioni

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
Messaggio 5 di 14
5.736Visualizzazioni

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
Messaggio 6 di 14
5.732Visualizzazioni
Soluzione
Accettato da autore argomento 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
Messaggio 7 di 14
5.727Visualizzazioni

Thats for the information. Very much appreciated.

 

Damien

0 Kudos
Messaggio 8 di 14
5.719Visualizzazioni

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
Messaggio 9 di 14
5.716Visualizzazioni

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
Messaggio 10 di 14
5.713Visualizzazioni