LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

State Machine...

Hi Friends....I need you help again 🙂

 

I'm asked to build a state machine that acquires analog inputs – voltage on channel 0 of a simulated DAQ device (PCI-6251).
I've listed each state and its description below.....
State                                          Description


Idle, Default                                 No data acquisition. Remains idle
                                                  state = idle, next state = start


Start                                           When a start button is pressed on front panel
                                                  state = start, next state = acquire


Acquire                                       Acquire voltage data (N samples) through analog input channel 0 of a simulated DAQ device (use DAQ assistant).

                                                  Single-ended measurement.
                                                  state = acquire, next state = display


Display                                       The voltage data is displayed on a chart. The average voltage (last three values) is also displayed on the same chart
                                                  state = display, next state = log


Log                                             Data acquired is written to a measurement file (.lvm), in the append mode
                                                  state = log, next state = stop (if stop button is pressed), or acquire (if stop is not pressed)


Stop                                           When the stop button on front panel is pressed. The program stops and displays how many seconds have elapsed

                                                  since start button was pressed – example: “Data acquired for 68 seconds”




My program is working upto the part of aquiring the voltage data and displaying them on a chart. 

MY QUESTIONS are:

1)  From where can I access the voltage data so, I can get the last 3 values and calculate the average voltage and display

     them on the same chart? (Display State)

 

2)  Is there any connections or settings involved for the measurement file (.lvm) for the voltage data to be written into the file? (Log State)

 

3)  How can I access that measurement file as a spreadsheet or something? (Log State)

 

4)  How do I keep track of the elasped time? (Stop State)

 


I've attached below...its version 12 of LABView.

 

Thanks in advance!

0 Kudos
Message 1 of 24
(3,091 Views)

The project does not contain any code...

 

Keep your data in shift registers.


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
0 Kudos
Message 2 of 24
(3,074 Views)

@crossrulz wrote:

The project does not contain any code...

 

Keep your data in shift registers.


I'm not able to use the DAQ assistant from version 12...I don't know why?? Could you help me out that please

0 Kudos
Message 3 of 24
(3,070 Views)

Did you install DAQmx AFTER installing LabVIEW 2012?


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
0 Kudos
Message 4 of 24
(3,062 Views)

yes... i even have Measurement and Automation Explorer

0 Kudos
Message 5 of 24
(3,057 Views)

please anybody help me out...

0 Kudos
Message 6 of 24
(3,040 Views)

please help me! I really need your help guys...

0 Kudos
Message 7 of 24
(3,023 Views)

Try reattaching your state machine code, but first down-convert it to 8.x.  You will get more responses if more people can view your code.

-----------------------------------------------------------------------------------------
Reese, (former CLAD, future CLD)

Some people call me the Space Cowboy!
Some call me the gangster of love.
Some people call me MoReese!
...I'm right here baby, right here, right here, right here at home
0 Kudos
Message 8 of 24
(3,017 Views)

@MoReese wrote:

Try reattaching your state machine code, but first down-convert it to 8.x.  You will get more responses if more people can view your code.


He would get more responses if he actually POSTED his code. A project file doesn't help without the code.

 



Mark Yedinak
Certified LabVIEW Architect
LabVIEW Champion

"Does anyone know where the love of God goes when the waves turn the minutes to hours?"
Wreck of the Edmund Fitzgerald - Gordon Lightfoot
0 Kudos
Message 9 of 24
(3,010 Views)

@Mark_Yedinak wrote:

@MoReese wrote:

Try reattaching your state machine code, but first down-convert it to 8.x.  You will get more responses if more people can view your code.


He would get more responses if he actually POSTED his code. A project file doesn't help without the code.

 




 

This is true.  He was told already he needed to post it.

-----------------------------------------------------------------------------------------
Reese, (former CLAD, future CLD)

Some people call me the Space Cowboy!
Some call me the gangster of love.
Some people call me MoReese!
...I'm right here baby, right here, right here, right here at home
0 Kudos
Message 10 of 24
(3,004 Views)