LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Waveform Plot for TDS 684C

Hello,

I am trying to get the output of a Tektronix TDS 684C in the form of a voltage array. I would like to collect continuously from multiple channels and be able to plot this in something like Orgin. I am using LabView 7.0 to develop. The code I have made does not seem to work for a single channel. I was wondering if anyone know why. It seems that if I just take the array and write it to a spreadsheet, it should work. Thank you.
0 Kudos
Message 1 of 6
(3,625 Views)
I had a brief glance at the driver and there are functions to set the scope for continuous acquisition and single sequence. Something has to tell the scope to acquire a signal and place the data in it's buffer before you can read it. Before you try writing to a file, try the high level getting started example and then try putting a loop around the Single Sequence and Read functions.
0 Kudos
Message 2 of 6
(3,617 Views)
When doing this, I get the error stating that "VISA Wait on Event in Wait for RQS.VI->TKTDS7xx setups.vi->TKTDS7xx Applicaiton Function.vi->TKTDS Getting Started.vi."

It appears to be timing out on Wait for RQS.vi

If I delete this from the subVI, nothing happens.

With the program attached, it will out put files. If you place an indicator on each of the parts of the cluster, you can see this. The output labeled element contains the Y values of the waveform. It is important for this to know the X values as I am concerned with rise/fall times. The problem is that it is not writing to the spreadsheet and it is not providing X values.

Thank you for your help!
0 Kudos
Message 3 of 6
(3,593 Views)
Assuming you are talking about the program you attached earlier, with simulated data (i don't have the scope), it is writing the t0 and dt and Y array to a file with each iteration so for me, the everything is being written. Can you attach one of the files you've created? It would also help if you created an indicator on the output of the scope read function. Run the VI so that there is data there, stop the VI, go to Operate>Make Current Values Default, save the VI, and post that.
0 Kudos
Message 4 of 6
(3,591 Views)
The output file is just a blank XLS file. The input to the scope was a .5 V, 1 kHz trigger signal. You can see that the data is being generated and if you advance to element 50 you will see voltage jump to .5 then at element 100 it is back to 0. So everything is there, I just think there is some problem with file I/O.
0 Kudos
Message 5 of 6
(3,588 Views)
You are saving this with an xls extension. When I open it with Excel, I get data but it's incomplete because Excel does not have that many columns. I do see all of the data when I use Notepad. Try setting the Transpose input of the Write to Spreadsheet to True. This will give you data in a single column. That really won't help much if you run the VI over and over again. You might want to save when the VI finishes. Wire the data out of the while loop and on the exit tunnel, select Enable Indexing.
0 Kudos
Message 6 of 6
(3,580 Views)