05-13-2008 04:44 AM
05-13-2008 09:56 AM - edited 05-13-2008 09:57 AM
05-14-2008 03:07 AM
Hi Ruzz,
there is nothing wrong in your code, this is the expected behaviour of a simulated device. Since there is not a physical digital port you cannot read physical data from the port. Always when you read a simulated device you read simulated sets of data; no metter if you do or not a write before the read; in other words there's no memory for simulated device. In the case of digital chennels the simulation start always with 00000000, so it's correct that you read 00000000 even if you write something before.
As a test you can try to open Measurement and Automation Explorer, go to the simulated PCI 6503 and open the test Panel. If you test a digital port as input you'll see that the simulation always starts with 00000000 than 00000001, 00000010, 00000011 and so on...
Clara
05-14-2008 03:26 AM
05-14-2008 03:40 AM
"If i want to know if im "really" sending data to a device, i need to use a real board on my computer?" yes!
The purpose of simulated device is to offer the possibility to start program without hardware; also with a simulated device you can check if the syntax of your program is correct and verify if he data you are writing meets specification for your board.
If you are interested in this there are some usefull information at this link:
http://zone.ni.com/devzone/cda/tut/p/id/3698#toc3
Bye
Clara
05-14-2008 03:49 AM