Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

I have a two pulse generator. I need to write to a file at the three intervals Ao0

Solved!
Go to solution

I have a two train pulses from an 6009. They are Ao0 and Ao1. The Ao0 output will produce the total time delay at my counter. The front panel shows 3,1,3. I can fire relays fine. I need to write to my "Write to file - LVM"  the same 3 intervals in time. Write after 3 seconds the global data. After 1 second, then after 3 seconds again.

 

 

Thanks

 

Philip

0 Kudos
Message 1 of 6
(3,280 Views)
Solution
Accepted by topic author pnielsen@gplains.com
0 Kudos
Message 2 of 6
(3,279 Views)
The whole file is not being sent? I am trying to write to a LVM file withe file I sent.
0 Kudos
Message 3 of 6
(3,278 Views)

I am trying to write to a LVM file. I need the ON time and then OFF time. The last time is the end of Ao0 and Ao1.

I do not know how to tell the file to read after the three intervals in time?

 

Thanks

 

Philip

0 Kudos
Message 4 of 6
(3,274 Views)
Problem not resolved as yet. Board shows closed?
0 Kudos
Message 5 of 6
(3,261 Views)

Hey Phillip,

Thanks for posting on the forums!  I understand you are trying to write your global data after a specified time interval.  A brute force way to do it, would be to simply include the Write to Meas portion of your code in each sequence.  A better way would be to leverage the state machine architecture in LabVIEW.  This is a more modular approach, and will be much more maintainable.  You can read more about this architecture here.  Your code might look something like this.

 

Of course, you will wire the channel and error wires as needed.  The above image simply illustrates the state machine architecture.  The case structure determines which code to execute, and what the time interval is.  Let me know if you have issues with this.
Message Edited by RT4CY on 10-20-2008 01:16 PM
Rod T.
0 Kudos
Message 6 of 6
(3,217 Views)