LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Visa reading different command from my pressure transducer

Hi All,

 

I'm new to Labview programming, and want your feedback. The issue is, when I write a command for visa to read and write, it reads the wrong command. Sometimes it reads the correct command, then swaps and reads a different command. I have two paroscientific pressure transducers, and both are

controlled by serial ASCII command. The command *0100P3, reads the pressure, and *0100Q3, reads the temperature. I have attached a labview file (2010 32 bit) and would like some feedback.

 

Regards,

Newlab

 

0 Kudos
Message 1 of 2
(2,028 Views)

Your Serial VISA read write subVI is missing. So I don't know exactly what you have going on in there.

 

But I think your problem is that the subVI's are running in parallel.  You have a race condition as to which of the subVI's are running first.

 

Also, are you getting any error messages?  You do not have your error wires wired up on those subVI's.

0 Kudos
Message 2 of 2
(2,021 Views)