04-26-2010
05:04 AM
- last edited on
07-01-2024
08:33 AM
by
Content Cleaner
Hello,
I want to test an application written in VC++ which should read and manipulate the output data from a PCIe 6537. We still do not have the hardware so I decided to simulate its output. I used the instructions used in https://knowledge.ni.com/KnowledgeArticleDetails?id=kA03q000000x0PxCAI&l=en-US#toc3 and also http://forums.ni.com/ni/board/message?board.id=250&message.id=40246&query.id=2742048#M40246. But I do not have LABview, so I try to read the output through the program written in VC++. But actually it doesn't read anything even when I use NI's example to read digital outputs. Is it beacause I don't have LABview?
thank you for your help,
Leily
04-26-2010 05:57 PM - edited 04-26-2010 05:58 PM
Hello Leily,
I'm a little confused as to what it is you are trying to do. You are simulating a PCIe-6537, but are you trying to generate an output using this simulated device? I'm not really sure what you mean when you say "I try to read the output" in your post. Are you trying to perform a loopback test? The problem with simulated devices is that anytime you try to read data there isn't any real data available to read so you will just get a bunch of random samples. Please let me know exactly what it is you are trying to do so that I can help you with the best way possible to get it done.
Regards,
04-27-2010 02:37 AM
Hello,
thanks for the answer and sorry for my confusing question.
I want to read the data out of this simulated device in the C++ program without Labview. (with
DAQmxCreateDIChan and
DAQmxReadDigitalLines )
But I read nothing as if there were no data, what should I do?
thank you for your help,
Leily
04-27-2010
06:01 AM
- last edited on
07-01-2024
08:33 AM
by
Content Cleaner
In this link : https://knowledge.ni.com/KnowledgeArticleDetails?id=kA03q000000x0PxCAI&l=en-US
it is explained how to aquire data from a DAQmx simulated device in LABview. I want to know if I can read data from a DAQmx simulated device with C++ and if yes how? Should I use DAQmxCreateDIChan and DAQmxReadDigitalLines?
thanks again,
Leily