06-19-2020 02:29 AM
Dear all,
I am developing a LabVIEW program in which I measure voltages with the Keithley 2182. When I remotely implement my configuration (voltage digits and voltage range, f.i.), the apparatus quickly goes back to the default one. Why can be this be caused? Am I missing or not applying correctly some function? I attach a screenshot of the block diagram and front panel to show how my program was designed.
Thank you in advance
06-19-2020 02:41 AM - edited 06-19-2020 02:43 AM
Hi ambabiloni,
@ambabiloni wrote:
the apparatus quickly goes back to the default one. Why can be this be caused?
We don't know why this happens - as you only show a very small portion of your VI…
@ambabiloni wrote:
I attach a screenshot of the block diagram and front panel to show how my program was designed.
Would you send just a picture of your car to the garage when it needs to be repaired?
06-19-2020 02:50 AM
Hi GerdW,
Here is the vi in which my question was based.
Thank you for your fast reply,
Regards,
Adrián.
06-19-2020 02:59 AM - edited 06-19-2020 03:21 AM
Hi Adrian,
please clean up this VI before any further steps…
THINK DATAFLOW:
So please debug using probes: are there communication errors? Are the Init VIs called again and again?
Example for possible cleanups:
The conversion belongs into a subVI, and there should be error handling in case the communication went wrong…
I would split up the whole VI into atleast 3 parallel running loops, with each device handled in it's own loop.
By using notifiers (or tag channels) you can use subVIs to simplify the mainVI, no need to use locals for data transfer.
Do you really need to multpliy with 1e6 to scale from Volt to mV?
Do you really need to read the data file in each iteration to display some data? You should atleast use DATAFLOW to avoid parallel file access (with possible errors!):
06-26-2020 05:59 AM
Dear GerdW,
Thank you very much for your quick and detailed response. You are very right, there is problem in the loops that can provoke this mistake. Moreover, your solutions to optimize and simplify the operations performed in this program are very useful, it will help a lot.
Kind Regards,
Adrián.
07-01-2020 07:40 AM
Following the previous message, I deleted the outer loop and kept only the operation for the Keithley for simplifying the operation.
I have seen that when I select "Configuration", the configuration for the voltage digits works but for enabling "autorange" or selecting "Voltage Channel" it does not respond. Looking at the Keithley display, I have seen it changes for a small fraction of time and then goes back to the default option.
Can anyone help me to determine why is the VI (included in this message) working for voltage digits but not for the other options?
Thank you in advance,
Regards