01-30-2014 08:28 AM
Hi everyone,
I wrote a Labview Instrument VI that I use later in my simulation in Multisim. The problem is, after stopping the simulation and restarting it again, some important parameters of the VI are not initialized again and therefore all my calculations in the Labview Instrument file are messed up.
Is there any option to set the params back to their default values after the simulation has been restarted?
Has that something to do with Serialize/Deserialize Data in the VI?
Thanks in advance!
Ussr123
01-31-2014 05:56 AM
Hi,
I am not sure but maybe this link provides the information you are looking for:
http://digital.ni.com/public.nsf/allkb/86256F0E001DA9FE86256CE8006FED7A
If not can you give us some additional information. Do you run the code as executable? Are this parameters set via numeric controls on the front panel?
Regards,
Michael
01-31-2014 06:02 AM
Hi,
I am saving it in a .dll and then I use that dll to be able to connect the Labview Instrument to my Multisim circuit.
I set these parameters by numeric controls.
Could the solution work also for .dll -s?
Thanks,
Ussr123
01-31-2014 06:04 AM
Have you set the desired parameters as default in the numeric controls? You can do this if you enter the desired value, then "right-click..data operations...make current value default". Save the VI.
02-03-2014 01:24 AM
Hi,
Yes, I did that. It doesn't help...
Ussr123
02-03-2014 01:30 AM
ussr123 wrote:The problem is, after stopping the simulation and restarting it again, some important parameters of the VI are not initialized again and therefore all my calculations in the Labview Instrument file are messed up.
Is there any option to set the params back to their default values after the simulation has been restarted?
Where is the data held inside the LabVIEW code (local variables, uninitialized shift registers, etc.)?
02-03-2014 01:59 AM
Mostly in initialized shift registeres. When I run the simulation again, I would like that my shift registers to be initialized again with the same values...