Quantcast
Channel: Instrument Control (GPIB, Serial, VISA, IVI) topics
Viewing all articles
Browse latest Browse all 5565

IVI Simulation Driver

$
0
0

Hello everybody,

 

I try to make a simulation driver for a DC power so I look at the exemple from CVI called "ividcpwr" which worked well. 

But now, what I want to do is trying to generate simulated return data with "simulation drive software module" that I could find in NI MAX. There is a way to display a sort of plug-in to decide which data return during a measurement according to this :

 

forum.png

 

Did I have to just call the measurement function from IviDCPwr and enable simulation to display this window ? I try to add this function in the example:

 

"IviDCPwr_Measure (instrumentHandle, chanName, IVIDCPWR_VAL_MEASURE_VOLTAGE, &testvolt);"

 

The measure works but I don't decide which data return.

Moreover, when I choose "specific driver" in MAX for drive session, I have no problem, but when I try with "nisDCPwr", i have a new error in Labwindows :

 

"Function IviDCPwr_InitWithOptions: (return value == -1074130544 [0xbffa1190]). (0xbffa1190) The session handle is not valid."

 

I don't really know the reason why I have this error because I just change "Simulate with nisDCPwr" in MAX.

So, how to display the measurement panel and generate the desire measurement base is not clear in my mind so if you could help me it would be nice Smiley Wink

 

Thanks.


Viewing all articles
Browse latest Browse all 5565

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>