07-10-2018 10:19 AM
Hello,
I have been struggling struggling to generate an Analog Output from a remote datalogger (ICPDAS ET-87P8) using the example code provided. I have been successfully able read Analog Inputs using the device and example and have confirmed correct Network Configuration, Wiring...etc.
The unit has a configuration program called "Modbus Utility" where we can configure the channels (see screenshot) and I am able to manually set an Analog Output and have confirmed that it is correct with a multimeter and also by reading it back into one of the other analog input cards on the same device.
I have confirmed that all hardware, wiring and communication is correct and I now believe that the issue is related to me not understanding how the LabView program works. We have successfully gotten an older generation unit to work and deliver an analog output using their DCON protocol but this is not compatible with the newer MTCP unit.
Model here: http://www.icpdas.com/root/product/solutions/pac/ipac/et-87pn-mtcp.html
I believe that it may have something to do with choosing the Analog Output register in the program but I have not had any luck.
I would appreciate any suggestions or ideas.
All the best,
Barry
Solved! Go to Solution.
07-12-2018 04:38 AM
Hi Barry,
Could I possibly check what the issue is? Are you not generating any output or are you seeing anything unexpected? Also, which VI are you referring to and what is the difference between the ones in the zip?
Many Thanks,
Riley Ilieva
Applications Engineer
National Instruments
07-12-2018 04:42 AM
Hi Riley,
07-12-2018 05:58 AM
SOLVED.
I knew it was a silly error on my side. The problem was that I was inputting a value of 0-20mA into the AO fields. Of course this is not correct and it should have been a proper value for a 12 bit range. So instead of inputting "10" mA into the A0 field the it should have been something like 30000.
It is working perfectly.
Barry
07-12-2018 06:10 AM
Hi Barry,
Haha I was just typing a post to check the input parameters in the code compared to the Modbus utility.
I am glad this is working now!
Riley
Applications Engineer
National Instruments
07-12-2018 09:53 AM
@Barry675 wrote:
SOLVED.
I knew it was a silly error on my side. The problem was that I was inputting a value of 0-20mA into the AO fields. Of course this is not correct and it should have been a proper value for a 12 bit range. So instead of inputting "10" mA into the A0 field the it should have been something like 30000.
It is working perfectly.
If it's working perfectly then I probably don't need to post this, but I just wanted to remind you that the largest (unsigned) value that can be represented with 12 bits is 4095, so 30000 would be out of range.
07-18-2018 03:15 AM