Good day everybody,
I'm currently doing the final touch to a project I did for my 3-month traineechip abroad (I'm a French student engineer). I'm getting the date from a axial flux motor my supervisor wants to drive so as to reduce noise, therefore vibrations : 4 piezo sensors under the housing, another force sensor for measuring the torque, 3 PWM current converters, and a 12bit gray encoder for speed & position.
Everything is eventually working, after months trying to understand the DAQmx philosophy
. However, I'm acquiring the position using port0, thus getting a number, which I log in a spreadsheet for a later conversion via a lookup table. It's the only way I found to log it, as I couldn't log directly the gray code (don't know how to work with that data type). This is not a real issue.
What's missing now, is a real time display for the speed. I previously drew a diagram that converts gray code into binary and finally decimal, but this used a express VI gathering 12 digital lines that I could isolate to do some logic. This worked pretty well, but once I include it to my master VI an error appears :
Error -200587 occurred at DAQmx Start Task.v
Possible reason(s):
Requested operation could not be performed, because the specified digital lines are either reserved or the device is not present in NI-DAQmx. It is possible that these lines are reserved by another task, the device is being used through the Traditional NI-DAQ interface, or the device is being reset.
If you are using these lines with another task, wait for the task to complete. If you are using the device through the Traditional NI-DAQ interface, and you want to use it with NI-DAQmx, reset (initialize) the device using the Traditional NI-DAQ interface. If you are resetting the device, wait for the reset to finish.
Device: Dev1
Task Name: _unnamedTask<0>
I undestand the conflict between these 2 tasks that use the same inputs. But using port0 as a task input, I can't islolate the different lines to do the logic that could convert it to binary/decimal.
Thanks for your help,
Gabriel
PS : I'm using a NI 6259.