LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

inconsistent VISA read from 3458a

Solved!
Go to solution

See attached screenshots. My goal is to capture 4000 datapoints of an output voltage ramp from 0 to 5v, with 3458A being LEVEL triggered at the 1v level, beginning from the SEL ON signal which enables a device's output. I've confirmed all signals are proper with a scope, but I cannot get the 3458 to CONSISTENTLY capture the waveform. Every time I run the vis, I get random numbers of datapoints ranging from 5 to the desired 4000. Why can't I consistently get my 4000 datapoints? In the screenshots below, the TrigELoadramp,vi immediately follows the Setup3458.vi. The paragraph in the latter vi is copied from the Agilent 3458A driver notes, which doesn't make sense to me.

setup.JPGtrig.JPG

0 Kudos
Message 1 of 5
(3,602 Views)

I bet this is an issue with the termination character.  Turn the termination character off for the VISA session before performing the scan and turn it back on after reading the scan.  Do this with the SEL ON and SEL OFF portions of the code.

 

With the termination character on, any byte that is the termination character (usually 0xA) will cause the VISA Read to stop.  So if you have a data point of 10, then the read will stop with that character.



There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 2 of 5
(3,594 Views)

Thank you. That sounds like exactly the solution, but how to I do that? Is there a VISA command to turn it off and on?

0 Kudos
Message 3 of 5
(3,590 Views)
It's a VISA property. Just look at the block diagram of the VISA Configure Serial Port.
0 Kudos
Message 4 of 5
(3,577 Views)
Solution
Accepted by topic author hammer3

Use a property node on the VISA reference.  The property you need to set is Message Based Settings->Termination Character Enable.



There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 5 of 5
(3,575 Views)