04-19-2012 01:20 PM
If you could show that data was being lost when you built the array, I would be very suprised.
Super easy test would be to replace the Current Position output with the iteratation count of the while loop. I'm betting that the TDMS iterates up one at a time. Can you benchmark the time it takes to execute the Move Absolute and the Tell Current Postion parts of the code with the DAQmx calls disabled?
Thanks
04-20-2012 07:57 AM
Ok Justin_P , thank you again for reply,
The equipments are in the university's lab. i will do what you asked me to do toworrow.
Kind Regards and Best wishes.
04-21-2012 08:22 AM - edited 04-21-2012 08:23 AM
Dear Justin_P,
I replaced the Current Position output with the iteratation count of the while loop as you said. And when i open the tdms excel file, it is still 4 samples per second.
I also benchmarked the time it takes to execute the Move Absolute and the Tell Current Postion parts of the code with the DAQmx calls disabled. I still get 4 samples per second from the motor position. But i used the "initialize array" function both of them.
So is that mean it is true that while using initializing array.vi function some data are being lost or "initializing array.vi" decreases the samples which are taken per second??
If it is true then how can i turn an element type of wire to a 1-D array type of wire except using "initializing array.vi" , because to connect an item to "TDMS Write" , the item should be "1-D array" type of wire.
Kind Regards From Turkey.
04-21-2012 09:15 AM
04-21-2012 10:53 AM - edited 04-21-2012 10:58 AM
Dear Dennis_Knutson,
As you can see from the "PrintScreenLoopTime" attachment above, the loop iteration is arranged for 1ms (which means 1000 samples per sec.) then could you please tell me that why i am still reading 4 samples per sec. although i connect a constant(loop's wait.vi's constant) not the hardware's output.
*I also used "build array" and result is the same(4 samples per sec.)
Thanks for your consideration.
Kind Regards.
04-21-2012 11:29 AM
04-23-2012 03:36 AM
Dear all,
If we suppose that Motor Controller has this limited communication speed then:
I am communicating with the motor controller with USB cable which is also connected to a RS-232 cable . Is it possible that this converting to USB causing slower communication?
Thanks for your consideration.
Kind Regards from Turkey.
04-23-2012 05:48 AM
04-23-2012 06:37 AM
Dear Albert.Geven,
here the pic. : I already did WithoutDAQmx involved, Still the TDMS writes "current position data" 4 samples per sec. But the real question is when i connect an another element wire(constant) to the TDMS file(after converting to 1-D array) , it is also writes 4 samples per sec.
Thank you,
Kind Wishes from Turkey.
04-23-2012 09:33 AM
Are you saying that you eliminate the code for the motor controller and just have tdms write, that you only get 4 iterations per second? I find that very hard to believe.