04-20-2009 06:39 AM
04-20-2009 07:48 AM
Robbo13,
Please post sub vi Cont Acq&Graph Voltage - Set File Properties (TDMS).vi
04-20-2009 08:14 AM
when ive opened it on other computers i normally just navigate to it. It's normally in program files > National Intrumets > Labview 8.x > Examples > DAQmx > then look at the path it's trying to find and navigate to that.
If you don't have the examples installed I can post the file later when I have access to it
04-20-2009 08:22 AM
Robbo13,
I don't seem to have that particular example. Any chance you changed the original name?
04-20-2009 09:09 AM
04-20-2009 09:12 AM
Robbo13,
I did finally locate the sub vi. Monday AM DUH ! I can't find anything in your vi that would keep it from working. Suggest that you double check connections to sensors. You could also graph the waveform that is being written to the TDMS file and make sure it looks ok before the file write.
04-20-2009 09:37 AM
04-20-2009 10:29 AM
In your VI you are collecting 2 channels, but in your TDMS Display VI you are trying to read 3 channelsfrom the TDMS file. Obviously this won't work, and you will get an error.
For your TDMS Display VI:
04-20-2009 11:31 AM
Hi again smercurio_fc. Sorry that was confusing I had been trying to work on 2 different things at once and at the time they weren't very closely related. I've attached the actual program which I will be using to load, format and display my results. I've used the state machine structure to build this, and have based it on my 1st program so hopefully its not a million miles away from being workable.
This program is going to run a mathscript simulation, and plot the results. These can then be compared to the results obtained from the TDMS file. At the moment this program is trying to extract 3 channels of data, whereas the daq program is only collecting 2 channels, as you said. I will eventually change the DAQ program so that it collects 3 channels aswell, however at the moment it isn't working properly when trying to collect 2 channels.
So the areas i'm stuck with are currently:
Within my DAQ SM mod.vi (version from post #21):
Within the deceleration1.vi program (i've not tried actually loading a .tdms file yet so havent come across the 3 channel error yet)
I'm so nearly finished now thanks to all you helpful people, i just need to sort these last few errors out. The sad thing is our PDA hasn't been delivered yet so we might not get any actual data from the car to include in our project report if that doesn't arrive this week.
04-21-2009 10:16 AM
I don't have your hardware so I can only run your code using simulated DAQ hardware. Using this, I could see that it was collecting (2 channels) and saving the data correctly.
As for your "Deceleration" VI: