04-26-2012 04:41 PM
Hello to all
I am new to this forum so please help if I am posting in wrong forum. I thought this one is suitable.So the problem is I am acquiring data using a Tinius -Olsen Uniaxial machine ( which is the VISTA part ) in the program and I have USB camera to record the marker postion on the sample. Now I have another force trasnducer ( I am using DAQMx for that) which I cannot synchronize with the VISTA and the camera. So I am missing some data . I am enlcosing the porgram.I will be happy to clarify if I have missed anything.
Please help me.
Shamik
04-26-2012 05:30 PM
How synchronous do you need it to be and do you have any sort of trigger output that can be used to start the DAQmx read? As you programmed it, you do not start the DAQmx Read until after the VISA Write and VISA Read both complete. Putting the DAQmx Read inside the same case statement as your VISA Write might improve things if you have no hardware synchronization.
04-26-2012 07:06 PM
Can you please elaborate a little, I am very rookie at this. Anothe rthing is I only added the DAqMx part into this program which was not written by me. The thing is when I start the program, the data from DaqMx is not recorded at that very instant. It only records some data at the end.And I do not have any HArdware trigger. Whatever I have to do inside the program. I just want as I start the program, the data from DaqMax gets recorded in the spreadsheet like other data and as I stop the program the the recording stops.
Hoping to hear from you.
Shamik
04-27-2012 02:39 PM
Here is the new thing I tried. But no progress.
Any help ,please.
S
04-27-2012 02:49 PM
@shamik wrote:
Here is the new thing I tried. But no progress.
Any help ,please.
S
Please answer the question Dennis asked regarding "how syncronous" or in other words, "How closely in time" do the mesurement and other stuff have to be?
The answer to that question will help us guide to HOW to do it.... IF POSSIBLE.
"If Possible" can only be determined if we know what the requirements are. If the timing requirments are very tight, then you have to have an appropriate set of hardware that is capable of sharing or using triggers.
In addition, posting images of your code will let people that do not have the same version of LV as you, see your code. Case in point; This mahince only has LV 7.1.
Ben
04-27-2012 03:20 PM
That acquires as soon as the program starts, runs independently of everything else, and then you strip all of the timing information away. As Ben said, please answer what you are trying to be synchronous to and how closely do you need it to be.
04-27-2012 03:27 PM
Hello Ben
I need the data from DaqMx ,in the same speed with the camera.I hope this helps.Its a big program . So pic was not good.
04-27-2012 03:37 PM
So what is that supposed to mean? You want to capture at the same frame rate as the camera?
04-27-2012 03:45 PM
yes the same frame rate as the camera.
S
04-27-2012 05:49 PM
Then set the sample rate accordingly. I have no idea what your camera is and I don't have IMAQ.