LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Problems when reading from TTi 1908P 5 1/2 Digital Dual Multimeter

Solved!
Go to solution

Hi all,

 

I'm a 3rd year student studying electronics. I'm getting a consistent read from a TTi 1908p DMM. Here are the details:

- Other instruments, such as the TTi PL303QMD-P Quad Mode Power Supply, are reading consistently reading correctly when I query what the set voltage is (Problem is specific to this instrument).

- When querying the 1908p about the instrument name or what voltage is being read sometimes the query returns the correct result but other times it just returns garbage (Problem is intermittent). Screen shot included of these results.

 

Perhaps I'm not clearing the buffer correctly but whenever I try to use the "VISA Clear" sub VI an error appears saying that there is an error with this sub VI but doesn't specify what the error is (I am unable to find the error specified with the error code).

 

Does anyone have any possible solutions for clearing the read buffer, or if you can see an obvious mistake I'm making with my code?

 

Any help would be appreciated.

Download All
0 Kudos
Message 1 of 3
(2,003 Views)

Hello Brendan254109,

 

Try to use shift registers in on the edges of the for loop and delete the while loop on the middle, instead of it put wait vi in the for loop.

You can use flat sequence instead.

Let me know what it has changed.

__________________________________________
The best way to thank, is to give KUDOS
0 Kudos
Message 2 of 3
(1,873 Views)
Solution
Accepted by topic author Brendan254109

Hi VA.KI,

 

I figured out the problem. I wasn't giving enough time after each VISA Write and VISA Read.

 

I put in a delay of 500ms after each VISA Write/Read and this seemed to work.

 

Thanks for your reply.

0 Kudos
Message 3 of 3
(1,777 Views)