05-30-2014 01:53 PM
This is what we have for the accelerometer code. We are having an error with the sample clock. It is giving us Error 200477. Also how do we connect the two to have one trigger the other. Thanks so much for all of this help.
05-30-2014 02:47 PM
Lets handle the simple question first.
To cause the second loop to wait for the fitst to complete you need a data dependancy. For instance; Wire any output from the first loop to a new input tunnel on the second loop (You won't even need the data on the wire! its just the to tell labVIEW "Wait for the other loop to finish before starting this structure"
Data dependacy is a key concept in a dataflow paradigm language- It is covered extensivly it the online tutorials.
Where is that error occuring and does it still occur when you fix the dataflow?
05-30-2014 02:49 PM
Its the Accelerometer we are having a problem with. Its create task block is causing the Error 200077. Can't seem to figure it out.
05-30-2014 03:04 PM
Thanks for the clarification on the error code. What is the hardware? That error means you asked for something the device can't do.
06-02-2014 08:32 AM
We are using the NI cDAQ-9184 ethernet chassis with the NI 9223 and NI 9234 attached. We are trying to create code that will record voltage until a certain voltage is reached, then at this point begin recording acceleration for a specified amount of time, somewhere around 10 seconds. We also want to make sure that it goes from recording voltage to recording acceleration in as little amount of time as possible. We are having trouble writting this code.
06-02-2014 08:33 AM
Thanks for the help
06-02-2014 09:09 AM
Ok we finally figured out the program. Everything is running and working how we want it. We have the data recorded too the way we want... The only thing left is we want to make sure that it goes from recording the voltage to acceleration almost instantaneously. We cant figure out how to put a time stamp on our data, so we know the times at which each were recorded. Do you know of any settings were this can be done. Thanks again everyone.
06-02-2014 09:38 AM - edited 06-02-2014 09:38 AM
You are using a waveform data type so you only need to compare t0 of the accel with t0+number of samples*dt of the last voltage waveform to get the difference.
06-02-2014 09:41 AM
Is there a way to show the time when we export the data to the excel file. Specific times for each data point would be helpful in our testing for both sets of data.
thanks
06-02-2014 09:54 AM - edited 06-02-2014 09:55 AM
I'm not sure I understand. When using a waveform data type logging to TDMS from DAQmx each Channel should import to Excel with a time column and a data column using the import from TDMS add-in for Excel and default import options.