06-19-2012 08:43 PM
I'm attempting to use the nisDMM driver to simulate a DMM IVI session. I can setup MAX to simulate my DMM and return default numbers, however I cannot get the interactive simulation feature to work at all, i.e. I want a dialog box to popup and prompt the user for a value whenever I take a simulated measurement from the IVI driver.
I've read all the posts and white papers on this but still can't get the interactive simulation feature working. The documentation indicates this feature exists with the class driver and the specific simulation driver. I've tried with both the specific simulation driver and the class simulation driver, and neither will present this edit dialog box.
I've setup the configurable setting INTERACTIVE_SIMULATION=TRUE and placed it into the "initial settings" table in the simulation driver sessions tab for the nisDMM driver. This seems to have no effect.
I've also tried passing INTERACTIVE_SIMULATION=1 as an option string to the initialisewithoptions VI for my DMM, and this just gives an error saying invalid setup string.
I'm using Max 4.4.1f0, Labview 8.5.1, IVI compliance pack 3.2, windows XP professional.
06-20-2012 01:25 AM - edited 06-20-2012 01:29 AM
I used to manipulate the simulation driver successfully on MAX 5.1.0, LabVIEW 2009SP1 and ICP 4.4 on Win XP sp3.
Here are some notes according to my experience. Wish they could be helpful to you.
1. Althought you are using simulation driver, we should still install a IVI Spcific driver in proper type e.g. IviDmm, hp34401a.
2. In MAX, create a logical name that point to that driver session you just installed (e.g. hp34401a)
3. Active the nisFgen simulation driver in Driver Session's 'Simulate With' editor
4. Open LabVIEW, and in the Help >> Find Example... dialog, enter “IVI”, get the IviDmm class driver example and run it.
5. The interactive dialog will appear when you invoke IviDmm_initialize.vi
06-26-2012 03:20 PM
Sorry for the slow reply - been working on another job. Thankyou for the excellent detailed response :-)
I've tried similar method to your description, except I'm using the nisDMM as the specific simulation driver because I'm using the pxi-4070. I've also tried initialising the simulation mode using both the "InitialiseWithOptions" VI, or by setting the Max nisDMM simulation driver session "INTERACTIVE_SIMULATION" initial settings to TRUE. Neither setup shows the interactive dialog box. However I know the simulation driver is loading correctly because it returns the default random number reading results.
06-27-2012 10:06 PM
Could you verify following settings in your machine? (Use MAX to check the settings)
1. A Logical Name node is created and "Driver Session" is set to your pxi-4070 driver session.
2. In your pxi-4070 driver session, "Simulate With" is set to nisDMM.
3. You are using IviDmm Initialize VI to run your program.
(Make sure you clicked Save IVI Configuration button after you changed your settings in MAX)
No further settings are required..
If the problem remains, could you send us your IviConfigurationStore.xml file? It's located in:
08-28-2012 06:35 PM
Very sorry for the late reply - been called onto another job for a few months. I've partly solved my problem with interactive simulation.
I have now been experimenting with an ni scope card, and using the niScope IVI class causes simulation to return a random waveform. However if I switch the to the IVIScope class the interactive simulation dialog boxes appear as expected. Is it possible that the ni IVI drivers are not designed to run interactive simulations?
08-28-2012 08:43 PM
08-28-2012 08:51 PM
What you see makes sence.
IVIScope class driver is providing fundamental functions for all scopes that comply with IVI.
NIScope class driver is more specific for NIScope, which have more advanced functions and have their own simulation. There is possibility that they do not support interactive simulation or, they are providing another method(rather than UI) for interactivity.
We need further confirm about this.