LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Why is there a time delay in my while loop

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. 

0 Kudos
Message 11 of 25
(930 Views)

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?


"Should be" isn't "Is" -Jay
Message 12 of 25
(882 Views)

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.

0 Kudos
Message 13 of 25
(881 Views)

Thanks for the clarification on the error code.  What is the hardware?  That error means you asked for something the device can't do.


"Should be" isn't "Is" -Jay
Message 14 of 25
(876 Views)

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.

0 Kudos
Message 15 of 25
(848 Views)

Thanks for the help

 

0 Kudos
Message 16 of 25
(847 Views)

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. 

0 Kudos
Message 17 of 25
(833 Views)

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. 


"Should be" isn't "Is" -Jay
Message 18 of 25
(820 Views)

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

0 Kudos
Message 19 of 25
(817 Views)

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.


"Should be" isn't "Is" -Jay
Message 20 of 25
(802 Views)