Hi, I am working with some ADAM-4000 series module and I am trying to write some commands while I am reading the values on one of the modules. I think the solution can be simple, but I don't have very much experience in LV and maybe I am missing it.
I am using VISA read and write for this operation and everything works well. The value that I am reading constantly will be a temperature sensor for the final purposes of this project. This temperature will be displayed on a graph and maybe saved to a file also. My problem is that if I want to send another command to control something else (on the same COM port but different module) I can't read the temperature while the command is sent and executed. This is creating a portion of the graph(possible 0's in the file) that I don't want. Is there a way, to save the last value before the 0 and faking the read in the graph while the extra command is sent? Or maybe is something that can use delays or time loops that may work?
In the attachment, the main command is #051 that will be sent continues and from the dial, I am creating a string with the next command. When the "OK" button is pressed, the case structure will switch from the initial command to the one created by the dial.
I am sure that is something small that can be changed or a different approach regarding how the extra commands may be sent while still reading from the module.
Thank you in advance and feel free to ask anything that is not clear from my description.