I ll be talking about using a RS232 Serial Connection here.
Here is what works:
I have a large program that allows me to set and measure values on the oscilloscope.
So far I have managed to set parameters such as vertical and horizontal scale and position (by sending string commands) and am also able to send basic commands that then return values for i.e. the frequency of the signal on channel 1.
The problem is this:
What I wanted to do is to get the waveform from the scope. I tried just using the example from the TDS 2000 series driver but it doesnt appear to work.
Specifically it appears that for the Continous Waveform.vi produces an empty waveform. When I probe the waveform wire in the loop I can see that there are two values t (time) and x. While x changes the value sometimes, t is ALWAYS 0 and this is what probably makes the waveform graph look empty (even with autoscale I can´ t see anything). SEE ATTACHED PIC.
Can somebody pleas help me to get the full Waveform displayed? I need to finish this project as soon as possible!
PS: I remember using the very same example last year for a TPS 2014 and back then it worked fine.
My Setup:
- Win8 - LabView 2012 SP1 - MAX 5.5 - VISA 5.4.1 - TDS 2000 Driver package
- Tektronix TDS 2012 Oscilloscope connected to the PC with an FTDI USB to RS232 adapter
- The TDS 2000 driver package requires VISA 3.x , am I right to assume that 5.4 is downward compatible? (other vi´s to set parameters work)
- I use a 10x probe ont he scope to get a square wave on CH1
- SERIAL PORT settings in WIN8 device manager & NI MAX & in the LV vi itself:
- Baudrate(9600), DataBits(8),Parity(None),Stop bits(1), Flow control( hardware - RTS/CTS)
NOTE:
In MAX VISA test panel I can querry the scope and that works too. However the Buffers are both set to 0 there, is that oke?
Also, should I use hardflagging for this vi or just "none"?