11-05-2008 04:25 AM - edited 11-05-2008 04:27 AM
Hello,
I have installed Measurement and Automation Explorer, and I have no phisical NI hardware connected to my PC.
So, I'm trying to use the posibility to simulate a hardware using Measurement and Automation Explorer.
I want to simulate an interaction with a Power Supply.
So in MAX, under IVI Drivers, I've created a Driver Session configured like this:
Simulate with nisDCPwr
Driver Setup Model:41-111-111; <-- I've set this random value
The only Software Module available is pi40iv, with Module Path pi40iv32.dll, and Published API IviDCPwr 1.0
I haven't set any Hardware assets.
So I'm using VC++ to acces a power supply. I found some exemples, and I tried this:
optionString = "Simulate=1,DriverSetup=Model:41-111-111;";
sResName = "PXI4::15::INSTR";
viCheckErr(IviDCPwr_InitWithOptions(rsrcName, VI_TRUE, VI_TRUE,optionString, &vi1));
And it outputs this error:
"The session name or logical name could not be resolved to a session or driver session."
I really have no ideea how to configure MAX in order to be able to simulate a Power Supply.
Is it possible?
Can anyone help?
Thank you,
Alexandra
11-06-2008 01:13 PM
ale_m,
If you install the NI-DCPower 1.2.2 driver, you can create a simulated power supply just like you would with any other DAQ device. Then, you can make the appropriate DCPower calls in C++ to access the simulated device.
You can download the latest driver here: NI-DCPower 1.2.2
This Developer Zone article explains how to create a simulate device: NI-DAQmx Simulated Device