Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

How to let Labview do the measurements automatically and hourly?

Hi all,

 

I'm new to Labview, which I have to use for my graduation assignment at the University of Amsterdam. I have never worked with the program and I got the complete block diagram from the previous graduate student. It is working and I know how to execute test/measurements. I added the labview file as an attachment.

 

But now I have the assignment to perform the exact same test every hour for 24 hours. So in the end I want 24 different files with data that I can use in Matlab.

 

So I actually have 2 questions:

1. How, what and where do I adjust the block diagram to perform an hourly test for 24 hours? (I hope it isn't too complicated, cause I have only performed tests with Labview, not making block diagrams)

2. How can I let Labview save the data in seperate files?

 

I really hope someone can help me!

Thanks in advance!

 

Lex

0 Kudos
Message 1 of 2
(3,255 Views)

Well, You have the start of a "State Machine" Design pattern.  Go through the state machine example that ships with LabVIEW so you understand how they work. (we don't do homework since we don't get the credits)

 

then you only need 1 while loop, a shift register to pass the "next state" from one iteration to the next and a new "idle" state containing a "elapsed Timer" and a select primitive that passed either "Run Measurement" or "Idle" depending on the boolean out of elapsed timer  Add a feedback node to count how many times the test was performed (to tell you when to exit.)

TIP: in the idle case make the delay between readings an indicator and give yourself a Stop button too (so you don't have to wait 24 hours if you code up a bug) 


"Should be" isn't "Is" -Jay
0 Kudos
Message 2 of 2
(3,244 Views)