12-19-2008 03:34 PM - edited 12-19-2008 03:35 PM
Rod,
One more! I just had the opportunity to test the system with the attached test setup "write_no_header.vi" - the daq vi "SyncTrig.vi" executes the loop only once because the "DAQmx Is Task Done.vi" says the task is done!? The input buffers are 4800 samples deep, sampling frequency is 1000 S/s. I have 2 indicators confirming that loop executes only once - number_of_chunks = 1, and acquired samples = 1000. The loop is supposed to execute 5 times for this example!?!
Can you track the reason for this? It seems to me that 6713 is not really synchronized and fires off all its samples...? BTW, I have left triggers #1 and #2 to route "Away from slot 1" for theTraitional NI-DAQ based application that is normally exploited, but defined triggers #3 to #8 to route "Dynamic" for the NI-DAQmx based applications - and all is fine on this field.
I hope this is an easy one and I won't bother you again, thanks in advance.
Roman
12-22-2008 11:50 AM - edited 12-22-2008 11:53 AM
Hi golubovski,
Good catch! It looks like we are never specifying the buffer size for our Analog Output task. We need to do this at the DAQmx Timing.vi (see screenshot below).
As you can see, we have left the samples per channel input unwired. If you create a constant on this input, you will see that the default is 1000.
So even though we are connecting 4800 samples to DAQmx Write, we are only writing out the first 1000 samples. If you wire Number of Scans (where you specify 4800) to the samples per channel input, you will get the behavior you desire.
12-24-2008 05:21 PM
Hi again Rod,
This seems redundant to me as I expected that I have buffer of 1000 S/channel as default...
Thank you again!
12-26-2008 10:46 AM - edited 12-26-2008 10:49 AM
12-26-2008 07:14 PM
Hi Rod,
You are right! I have no doubts or dilemmas anymore.
Thanks again,
01-22-2009 08:14 AM
Hi Rod,
Me again. First time to use the system but it seems that there is no signal generation from 6713? I guess I was focused on other things and had not noticed that. The acquisition works, I have tested it with signal generator. I cannot sense neither of the two AO channels. Does it really receive clock from DSA master in slot #2? Can you test the attached "write_no_header.vi"?
Roman
01-23-2009 05:10 PM
Hello Golubovski,
I think that the easiest way to determine the exact cause of this behavior is to compare your code to the example program that synchronizes multiple DSA cards with AI and AO. To access this example open LabVIEW and go to Help» Find Examples» Hardware Input and Output» DAQmx» Synchronization» Multi-Device» Multi-Device.llb\Multi-Device Sync-AI and AO-Shared Timebase & Trig-DSA.vi. This VI implements the exact synchronization you're doing so it should be helpful.
I think your diagnosis of the issue is correct--I do not think the AO channels in your program are receiving the clock. I believe the issue is with the source you're specifying for the timebase in your AO task.
Let me know if you have any questions after looking at the example program--I would first get the example program running to make sure everything is working correctly.
Cheers,
01-23-2009 07:50 PM
Hello Brooks,
I have already tried that and all toher examples. This one reports error -200452 for both clocks (methods of synchronization). Rod assured me that NI-DAmx somehow divides down the ADC clock I am sending via the PXI Star Trigger! I cannot make this example work because both properties are not supported by my device (the 6713 I guess). This is really too much for a problem of a simple nature - I just need to send clock from the DSA master for firing samples by the AO device in slot #11 in a PXI-1006 (three busses chassis).
I can see 2 possibilities:
1.
To send the ADC timebase via PXI ST bus (as in my example) to a counter of the 6713 and somehow divide it down by CTR means - can you help me and wire this in my example (synctrig.vi) and show me how to do this?
2.
To just send Start AO trigger and let the 6713 generate my excitations without synchronization with its own clock - even this does not work for my example??? Can you at least wire this for me if option (1) cannot be achieved?
I have reserved triggers #1 & #2 for my Traditional NI-DAQ based applications and left triggers #3 through #8 as "dynamic" for the NI-DAQmx.
Thanking you in advance Isincerely look forward to an affirmative response,
01-24-2009 12:29 PM - edited 01-24-2009 12:30 PM
Hi golubovski,
What exactly do you mean when you say "I cannot sense neither of the two AO channels"? If we were not receiving either the trigger or clock, I would expect to see a timeout error. You are saying that there is no signal generation, so I am guessing that you see a flat line when you probe the AO channels?
You are correct that the DSA synch example would not work out-of-the-box, since your 6713 device is not DSA. If we wanted to test whether we can simply use the AO device's own clock, and use the trigger from the master DSA we could test that easily. Simply remove the Get Device Name with Prefix.vi and the DAQmx Timing Property node in your AO task (between the Timing and Triggering VIs). Also, there is no need for the DAQmx Timing property.
If you could give a bit more info about what you are actually seeing from the AO device, this would help us pinpoint the problem. It may be something simple that we missed, but let's at least verify that we can start the DSA and AO tasks together and succesfully output the data from the 6713.
01-24-2009 05:16 PM
Rod & Brooks,
Please forgive me, everything has been working fine! I have messed up the channel selection, I was looking at the wrong DSA card. The truth is, the DAQ setup is on a remote location and I am working via Remote Desktop and started tackling my communications problems and messed up the channel selection.
I hope I am not wasting my credit with you guys.
My deepest apologies once again!
Sincerely,