04-10-2018 05:51 AM
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.
04-10-2018 06:16 AM
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.
04-10-2018 07:04 AM - edited 04-10-2018 07:08 AM
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?
04-10-2018 07:32 AM
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.
04-10-2018 07:58 AM
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.
04-10-2018 08:17 AM
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.
04-10-2018 08:24 AM - edited 04-10-2018 08:39 AM
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
04-10-2018 08:25 AM
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.
04-10-2018 08:26 AM - edited 04-10-2018 08:27 AM
Screenshots/ manual link (http://elektron.pol.lublin.pl/elekp/instrukcje_LV/ADAM-4000_Manual_7ed.pdf)
04-10-2018 08:38 AM
Something is wrong whit my post for some reason.another try here.