03-21-2011 07:47 AM
I have spent alot of time on the forums trying to solve this problem and as of yet I have been unable to
fix it.
I am reading from a Carlo Gavazzi DC Modbus sensor (Programming Manual Attached) and have been
getting a mixture of correct and incorrect values when reading from the device.
I am using the Labview Modbus library which reads 16Bit individual registers by default and this has
generally been fine unless any negative values are involved.My method of accessing each register is merely
a loop using the Example2_VI and iterating though the required registers.
I am mainly interested in the following values
Address::Parameter::Register Value::Expected Value
0::Voltage::476:: 47.6V (This is correct)
1::Voltage::0::
4::Current::65446::A couple of (negative) amps at most! not 6500A/89A
5::Current::65535::
The negative values only occur when the system (Generator) isn't running. When it is actually running
the 16Bit current values can range from 40A to 250A but they are all incorrect by a factor of at least 10-20%.
I have tried to use the example vi to combine the current values in some way to return something meaningful but
every time it just keeps saying NaN (Not a number I assume) so I'm wondering if I have to do some sort of calculation
before I feed them into the type casting??
Solved! Go to Solution.
03-21-2011 09:19 AM - edited 03-21-2011 09:19 AM
Try this.
03-21-2011 11:27 AM
Hi Wayne,
That fix worked perfectly!!! It has also solved a related problem somewhere else too!!
Thanks a million.
Much Apreciated!
03-21-2011 11:54 AM
Glad I could help. Welcome to the NI Forums.