12-06-2012 08:12 AM - edited 12-06-2012 08:15 AM
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!
12-06-2012 08:58 AM
The project does not contain any code...
Keep your data in shift registers.
12-06-2012 09:05 AM
@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
12-06-2012 09:08 AM - edited 12-06-2012 09:09 AM
Did you install DAQmx AFTER installing LabVIEW 2012?
12-06-2012 09:14 AM
yes... i even have Measurement and Automation Explorer
12-06-2012 10:12 AM
please anybody help me out...
12-06-2012 12:43 PM
please help me! I really need your help guys...
12-06-2012 01:08 PM
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.
12-06-2012 01:24 PM
@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.
12-06-2012 01:36 PM - edited 12-06-2012 01:36 PM
@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.