LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

ADAM-4000 (old drivers not working, new drivers not available)

Solved!
Go to solution
Solution
Accepted by topic author DDragos

Here is a small example project with the following functions:

- open and configure COM5 = ASRL5::INSTR

- configure AO

- write AO (1 channel)

- read AI (8 channels)

Probably you don't need to configure the modules; configuration is usually done by means of the utility program.

The example basically shows you how to write a command and read the answer.

The ADAM user manual explains in detail all command and answer formats.

Paolo
-------------------
LV 7.1, 2011, 2017, 2019, 2021
0 Kudos
Message 11 of 27
(1,432 Views)

I start to think that maybe I am lacking a lot of knowledge to make this run, but nothing is working. Is there a specific order that I should run the VI's? Also, the part with "prefix+id" I have no idea what the correct input should be. I am new to Labview and this time of communication so sorry if I am a bit slow and don't get simple instructions, but I am really trying to figure this system out. If it's toot to much to ask, can you give me a short order in which I should run the VI's in your example? Once I can crack this send commands and receive the values, I can work it out from there step by step, but this lack of communication that I have whit the modules drives me crazy because I should be simple and easy.

0 Kudos
Message 12 of 27
(1,430 Views)

You should run Main.vi. Please check if any error is generated by Visa Configure Serial Port (open the vi Front Panel and see what's in "error out"). It's possible that VISA is not installed in your system.

The full command sent to the module is the concatenation of Prefix+ID, command and CR (carriage return). Do you have the ADAM user manual with the detailed description of the protocol?

Paolo
-------------------
LV 7.1, 2011, 2017, 2019, 2021
0 Kudos
Message 13 of 27
(1,419 Views)

I attached some screenshots that I hope are answering your questions. I believe that I am using the right manual for the commands ( from here ). please let me know if I can do anything else to ease you, helping me. I installed also the VISA driver from the NI website and is the same result. I believe the way I wrote the command in the VI is not correct, please correct me if is wrong.

0 Kudos
Message 14 of 27
(1,356 Views)

I attached the necessary screenshots. I hope they answer the requests that you had for me. I also installed the VISA driver from the NI website but no difference. I have the manual for the commands (from here) but I am not sure that I used them correctly in your VI. I am just trying to use the basic example of #AA to get an answer back from the module, but again is not working with the error that you can see in the screenshot attached here.

0 Kudos
Message 15 of 27
(1,356 Views)

I attached here the necessary screenshots based on your request, I hope they answer your request. The manual for the module is from Here but I have a feeling that I am not writing the command correct in your VI. I also installed the VISA driver from NI but no difference, the same result.

0 Kudos
Message 16 of 27
(1,356 Views)

This is a test post just because I am trying for the last hour to reply to you but the post is gone after I refresh my webpage. link for the manual that I am using http://elektron.pol.lublin.pl/elekp/instrukcje_LV/ADAM-4000_Manual_7ed.pdf

0 Kudos
Message 17 of 27
(1,378 Views)

I attached here the necessary screenshots based on your request, I hope they answer your request. The manual for the module is from but I have a feeling that I am not writing the command correct in your VI. I also installed the VISA driver from NI but no difference, the same result.

0 Kudos
Message 18 of 27
(1,392 Views)

Something is wrong whit my post for some reason.another try here.

0 Kudos
Message 20 of 27
(1,379 Views)