LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Controlling an Instrument using an Instrument Driver

Dear All,

 

Attached is the image I have of my code so far. The code is really simple, all it does is connect the instrument I am using,the 34970A, with Labview, I then use it to read temperatures. Problem is, I do not want to display the temperature in Labview, I want to display it on my instrument. For example, when I run the program, it should immediately display the temperature on Labview. Does anyone know a solution or is willing to give me a hint on how to tackle this problem. 

0 Kudos
Message 1 of 8
(2,710 Views)

@Rayzab wrote:

Dear All,

 

... I do not want to display the temperature in Labview, ... it should immediately display the temperature on Labview.


What's the difference between "in" LabVIEW and "on" LabVIEW?

0 Kudos
Message 2 of 8
(2,707 Views)

I should be more clearer,  I want to display the temperature on my instruments screen, instead of on the front panel on Labview

0 Kudos
Message 3 of 8
(2,699 Views)

Just do the read.  Nothing says you have to put that value on your VI's front panel.  The instrument should show its latest measurement.


GCentral
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
Message 4 of 8
(2,687 Views)

I tried doing the read and it did not work, the way my instrument works is when I push a button on the instrument, it displays the temperature. I want to run the Labview Program, the program will then call the instrument and the instrument will display the temperature. I do not want Labview to display anything on its panel, I only want it to run the instrument for me. Is there a hint you can give me regarding that?

0 Kudos
Message 5 of 8
(2,674 Views)

You almost had it!

 

Using that EZ temperature VI you read all channels as quickly as possible, and build up an array of readings.  There's no way to slow down and display each reading. And why would you want to?

 

But you can use the Display VI to "playback" the readings one at a time, by looping through the array like this..

 

temperature_display.png

 

Craig

Message 6 of 8
(2,665 Views)

First of all DO NOT USE THE EZ-CONFIG!!! You can NOT display measurements on the instrument itself if you use the EZ-Config vi's

 

You have to use the advanced configuration VI's to configure your measurements and scan list

 

Trigger a scan when you want to take a measurement.

 

Once you have the channels properly configured use the "monitor vi" to select the channel you want displayed on the instrument 

monCapture.PNG

 

========================
=== Engineer Ambiguously ===
========================
Message 7 of 8
(2,656 Views)

In this thread I show an example of how to properly configure the 34970(2)

 

https://forums.ni.com/t5/LabVIEW/Continuous-data-acquisition-with-Agilent-34972A/m-p/3188756/highlig...

========================
=== Engineer Ambiguously ===
========================
Message 8 of 8
(2,651 Views)