LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

A question concerning Simultaneous Acquisition using State Machines

Hello,

 

I've read some theory about State Machines in Labview and I have the following problem.

 

I created a simulated USB9233 device and I am interested in the analysis of two signals acquired simultaneously from Channels 0 and 1.

 

1. I want to acquire two simultaneous sequences of 2048 samples at a rate of 15kHz.

2. I want to plot the sequences and their spectrum.

3. I want to end the process or go back to step 1 and start over with two new sequences.

 

I've attached my vi. Is it correct? Does it work ok? 

 

Thank you very much and have a nice day.

0 Kudos
Message 1 of 4
(2,829 Views)

Hi raul20002,

 

I was able to get the VI running using asimulated device.  Is there any reason you want to use a statemachine?  The following code functions the same as your state machine:

 

 

Otherwise, the best way to know if the VI is working properly is to use actual hardware with a known signal to verify the measurement. 

Message Edited by Kyle S. on 02-09-2009 03:35 PM
0 Kudos
Message 2 of 4
(2,793 Views)

Hello and thank you for your answer.

 

I can understand that the code you sent me. However, the reason I wish to understand and work with state machines is the fact that at school, I am required to use use this manner of implementation. I recently looked at a Labview Basics I: Introduction Course Manual. At the end of this book (Lesson 10-5) there are some examples with state machines.

 

I wanted to see if my vi is correct and if I understood the concept of state machines.

 

Thank you again.
0 Kudos
Message 3 of 4
(2,772 Views)

raul20002 wrote:

Hello and thank you for your answer.

 

....

 

I wanted to see if my vi is correct and if I understood the concept of state machines.

 

Thank you again.

That looks OK. I will generally include a diagram to illustrate the State Machine to make it easier for people to understand my code.

 

 

 

Ben

Message Edited by Ben on 02-10-2009 10:59 AM
Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
Message 4 of 4
(2,758 Views)