Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

reading watts and current inside state machine from xitron 2801 power analyzer

Hello! I have one vi that I created and another vi from someone else. I am trying to pull the data (watts and current) from the power analyzer similar to how I have the top half of the state machine.vi in the get measurement state. I have some code for pulling information from xitron but I am a little lost on how to get what I need. Basically I need to just connect the output of watts and current to the "voltage" array and "voltage" graph. Any help would be greatly appreciated.

Download All
0 Kudos
Message 1 of 4
(2,882 Views)

@joesmitty, 

I am a bit confused as to what you are asking. 
I see the output of watts and current, but do not see what "voltage" array and "voltage" graph you are speaking about after looking through your "Read mea xitron.vi" file. 

Could you please clarify?

0 Kudos
Message 2 of 4
(2,836 Views)

My apologies, the "voltage" graph and array are on the state machine.vi in the get measurement state. Im just trying to pull watts and current from the "read mea xitron.vi" and put what i need inside the state machine.vi. Does that make sense? In the end, when I run the state machine.vi I want it to ouput the pressure graph and array as well as a graph and array for the watts and amps. Let me know if that helps any!

0 Kudos
Message 3 of 4
(2,833 Views)

Are you saying you want to embed your "read mea xitron.vi" in your state machine? 

If so, I would suggest making it a subVI and wiring the connector pane to output watts and amps. 
For more information on how to do this, please refer to the following document: http://www.ni.com/white-paper/7593/en/

Let me know what questions you have!

0 Kudos
Message 4 of 4
(2,818 Views)