10-10-2005 09:38 PM
10-11-2005 04:04 PM
Error -200587 occurred at DAQmx Start Task.vi
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.
[more stuff]
10-11-2005 05:12 PM
Hi Matt,
Thanks for coming back to me so soon.
Probably screenshots will not come through this window, see attached Word document with full my reply.
Actually the problem is different.
I'm only trying to read the PORT-0 (which is input port on PCI-6515), I'm not writing to it.
I'm using one of the C++ samples (without modification) included in NI-DAQmx: ReadDigPort.c - only reading !
And it works fine !
... Until I try to simulate the input signal on port0 by starting "Test panels" in MAX.
See attached document with full screenshots
May be I'm doing something wrong. Please explain me how can I simulate a PCI-6515 input to test my VC++ program. I' need ONLY INPUTS
Thank you10-12-2005 03:56 PM
Hi Jurijus,
Once again, this is the same issue that you were running into earlier.
You can only read or write from one bank at any one point in time. When
you try open a test panel from the simulated 6515 in MAX it automatically makes
ports 0-3 as read ports and ports 4-7 as write ports.
What is happening in your situation is that you are trying to run two
iterations of the read task on the same port on the same board at the same
time. That creates the error that you are seeing.
Once again, the simulated devices are just for diagnostics and you will not be
able to send a simulated signal out on one line and then read it on another
line. The simulation allows you to test your code for any errors that
would occur. In this case the errors are occurring because of the reasons
stated in the error codes. If you want to avoid the errors then either
read the port in MAX or in LabVIEW, but don't try to do both at the same time
or you will keep seeing the errors.
Regards,
10-12-2005 08:24 PM
Hmmm, strange kind of simulation... I thought simulator can be used for testing my software without having the card ?
If I got it right, there is no way to simulate single digital input line on "simulated PCI-6515" so that my software could detect for example 0 to 1 transition. Right ?
10-13-2005 04:24 PM