LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to plot XY graph with values from DAQ and motor counts from its controller

I'am using a DAQ to measure analog signals with a motor with its controller giving the motor counts . I need the variation in intensity of DAQ signal with the motor counts. I had converted the motor counts into number using the converter and then put it to the build XY graph VI in labview 2011. I had done the same thing using the DAQ. I put the DAQ output to the Build XY graph VI . Butfinally graph is not drawn is it a problem with the bundling of data from DAQ.please help me I'am attaching the VI with this

0 Kudos
Message 1 of 7
(4,097 Views)

Hi,

 

Could you post a LabVIEW 2010 version of your VI?

 

-CC

----------------------------------------------------------------------------------------------------------------------------
"If anyone needs me, I'll be in the Angry Dome!"


0 Kudos
Message 2 of 7
(4,072 Views)

You are resetting the XY graph each time you call it. Please look at how you have configured it.

 

Also, do not do a VISA Configure Serial Port and a VISA Close inside the loop. And, since I doubt that the string to write is *IDN?, make it a constant and use the correct command. You are also acquiring 1000 samples with the DAQ Assistant but only one with the serial read. Why?

0 Kudos
Message 3 of 7
(4,069 Views)

Perhaps you only want one number from the com port number and one analog voltage per loop.

Here's a snippet that shows Build Array and Shift Registers. It is only a starting point, though.

Perhaps change your express VI to only take one sample.

There is a good XY Graph.vi in the Example Finder.

build array with shift registers.png

0 Kudos
Message 4 of 7
(4,054 Views)
Todd,

Just fyi, the express xy graph in the op's last modification has an internal **bleep** register. As long as reset is not true, it will append.
0 Kudos
Message 5 of 7
(4,044 Views)

Thank you, Dennis.

Somehow I've missed the glory of the express vi's.

0 Kudos
Message 6 of 7
(4,028 Views)

I guess a typo caused the bleep because I intended to write 'shift' register.Smiley Very Happy

 

In any case, I looked again at the block diagram of the express graph and my memory was wrong. It does not use a shift register. It uses a local to keep a history of the graph.

0 Kudos
Message 7 of 7
(4,025 Views)