Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

plotting 1d array of string vs time

Solved!
Go to solution

hi

 

I want to plot the current data (format-1d array of string) vs time. The time should be the time at which the reading is getting recorded (not every sec), I mean can i record a array of time data in the loop similiar to the current being recorded in a file or even a real time plot will do.

 

thanks 

0 Kudos
Message 1 of 3
(4,435 Views)
Solution
Accepted by topic author sonam

You would need to get the time with the Get Date/Time in Seconds and also convert your string read to a numeric (i.e. Scan From String). You can use a chart inside the loop as long as you don't change the wait timewhile the for loop runs. Look at the example call Real-Time Char.

 

You've got some other problems. Don't use the Insert Into Array. In fact, the use of the shift register is completely unnecessary. Just wire the data out of the loop. Your inputs to the for loop are not wired to the shift register and the shift register is not wired to the VISA Write function.

Message Edited by Dennis Knutson on 06-17-2009 06:39 AM
Message 2 of 3
(4,430 Views)

Thank you very much for your reply. Sorry if i replied late.

I will try what you said and see if I can make it work and post any problems I may have.

 

Thank you

0 Kudos
Message 3 of 3
(4,402 Views)