LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

what is the best way to convert a 4-20ma signal

Solved!
Go to solution

Hi Russell,

 

I think the problem you are having is that you are obtaining a 1D array of values from the Fieldpoint Read VI. (even though there may only be a single point of data in the array).

This happens whether you wire a single channel name or an array of channel names into the Read VI. By default it outputs an array of data. What you need to do to fix this is wire a numeric constant of type double into the  "TYPE" input on the Fieldpoint Read VI. Do this if you are only expecting a single channel value from the VI. Alternatively, you could index out of the 1D array the specific channel you want to process. (assuming the Fieldpoint VI is reading multiple channels at the same time).

 

I have another attached image that should show you the difference in approach. 

 

Good luck with the program!

Davy. 

Senior Software Engineer
www.Adansor.com
Message 11 of 15
(1,451 Views)

Russell,

 

The snippet image you attached in message 10 doesn't do anything.  It is just a control wired to an indicator.

 

To add to Davy's message, there is a third way.

 

FP Read is polymorphic.  Right click and pick Select Type.  Choose FP Read (Float -IO)

Message 12 of 15
(1,429 Views)
Does anuone want to consider the idea I posted earlier? Doesn't this system use DAQmx and support custom scales?
Richard






0 Kudos
Message 13 of 15
(1,409 Views)

Broken Arrow wrote:
Does anuone want to consider the idea I posted earlier? Doesn't this system use DAQmx and support custom scales?

Sure, I'll consider it. But then, I don't have the hardware, nor am I writing the program, so ultimately it's not my decision. Smiley Wink

0 Kudos
Message 14 of 15
(1,388 Views)

smercurio_fc wrote:

Broken Arrow wrote:
Does anuone want to consider the idea I posted earlier? Doesn't this system use DAQmx and support custom scales?

Sure, I'll consider it. But then, I don't have the hardware, nor am I writing the program, so ultimately it's not my decision. Smiley Wink


 

smercurio, thanks for considering it. Now, will someone Kudo it and say that it is the best thing they have ever read on this forum? Smiley Tongue
Richard






Message 15 of 15
(1,372 Views)