Measurement Studio for VC++

cancel
Showing results for 
Search instead for 
Did you mean: 

DAQ device simulation and VC++

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 

0 Kudos
Message 1 of 4
(6,266 Views)

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,

Message Edited by B.E.Z. on 04-26-2010 05:58 PM
0 Kudos
Message 2 of 4
(6,244 Views)

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

 

0 Kudos
Message 3 of 4
(6,233 Views)

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

 

0 Kudos
Message 4 of 4
(6,227 Views)