ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Automatic measurement

Hello everyone, I hope to fnd a solution here.

I'm planning a VI wich make an automatic measurement with instruments connected with computer through GPIB.

The instrument are:

-Oscilloscope (HP 54645A)

-Wafeform Generator (Agilent 33250A)

-Data Acquisition (34970A)

I have two big problems I ask you a help.

1) To have two different Graph for the two channel of Oscilloscope I put a "Flat sequence Structure" but if one of channel is not connect the VI give me error. I wish that it read the channel connect and not read the channel not connect

2)With Data acquisition I've planned that it make a series of measurement of temperature with regular intervals of time. I wish find a way to export the results in a file excel which in columns there are measurement that it made.

Thank to everyone who will respond

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

Hi Enrico,

 

1)

- In your VI you don't use the error cluster that much. Use them always and as much as possible!

- When you know which channels are connected you should program an algorithm to just measure the connected ones.

- When you don't know which ones are connected you should do some error handling in your VI!

 

2)

Write your data into a spreadsheet file - there are several functions/VIs allowing you this easily…

For "regular" time intervals it's kind of overkill to use a TimedWhileLoop in your application: you are talking to an external device so a normal While loop with a standard wait function inside is sufficient. In your special case a FOR loop would be more appropriate as you limit the number of readings…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 2 of 3
(3,459 Views)

GerdW thank you very much for your answer and your help.

With your advices I changed little bit my project, and I've resolved the second problem but I didn't understand how resolve the first.

I have tried other way to project the oscilloscope but I can't resolve my problem: if I don't attack one channel to oscilloscope the VI gives me error in the error cluster and doesn't show anything in the block diagram. 

If you (or anyone else) have a little time to see the attached for say me what I wrong, I'll be appreciative Smiley Wink

I put the all project (L_primo progetto.vi) and the part of project where I have the problem (HP54645A.vi)

0 Kudos
Message 3 of 3
(3,394 Views)