08-10-2020 04:05 AM
Dear all,
while transferring my program from Win7 to Win10 I encountered a problem I have not been able to solve yet:
"Error -50012 occurred at StartAcquisition.vi" after the "Analog 2D DBL NChan NSamp" SubVI. "Possible reasons: The specified mode is not supported for write operations. The operation could not be completed as specified." I attach an excerpt of the program as zip-file.
Software: LabView SP1 2014 64-bit, NI Max 20.0, NI-DAQmx 17.6
Hardware: PCIe 6343
Thanks in advance for any help,
Daniel
08-10-2020 04:15 AM
Hi Daniel,
how did you define the AO DAQmx task?
How does the content of this CSV file looks like?
Edit:
It really helps to provide a lvproj file, and to correctly indicate the MainVI of your project!
It seems the AO task is created with 2 channels and without any sampe timing, so just "1 sample on demand" would be ok. But in the acquisition you want to output a large (?) 2D array, so you need to provide some timing information first!
08-10-2020 05:20 AM
Thank you for the quick response!
Sorry for not having put it together as a project.
The "ReducedTestFile.vi" is the main program. An exemplary VA.txt spreadsheet I attached now. The AO DAQmx task is defined in "SEMPA Initial Beam Poistion_test.vi" with two channels (X and Y control) and the timing is defined before writing the 2D array by synchronisation with the counter output in "SEMPA Sync Counters to Analog Out_CtrOut_test.vi".
Kind regards,
Daniel
08-10-2020 05:45 AM
Hi Daniel,
first you create the AO task using two channels without specifying any timing. Then you start the task.
Later on you want to set sample timing and some other properties of this task - even though the task is already started!
Later on you want to output an array of samples…
Why do you split the task creation into two VIs?
Why don't you create the task with it's full specification right from the beginning?
08-10-2020 05:55 AM
Since I have not written the program myself, I can just guess.
The AO serves to control the deflection voltage of a scanning electron microscope to scan a certain area.
It might be a matter of timing, that in a first step the initial position of the beam is written and as soon as the user presses the start botton (not included in this mini program) the scan starts.