12-01-2014 05:06 AM
Hallo,
I just received the VirtualBench and I could use it as I connect it for the first time. I then downloaded and run the program for Window7, so that I would be able to run the program from my PC.
Since then, I cannot work anymore more with the virtualbench. It always give the same error: device error: sequence contains no matching element.....
What it wronf what shall I do?
Note: I read a similar question, but it seemed that the error disppeared somehow for unexplained reason. So, there were actually no solution mentionned for this problem.
Thanks in advance for any support.
Solved! Go to Solution.
12-01-2014 09:47 AM
From the other thread (http://forums.ni.com/t5/VirtualBench/virtual-bench-quot-system-error-quot-Sequence-contains-no/td-p/... these are the steps you should take:
Attach the application preferences file:
%USERPROFILE%\Local Settings\Application Data\
National Instruments\NI-VirtualBench%USERPROFILE%\AppData\Local\
National Instruments\NI-VirtualBench
Once you have done that, you should be able to fix the issue by doing the following
%USERPROFILE%\Local Settings\Application Data\
National Instruments\NI-VirtualBench%USERPROFILE%\AppData\Local\
National Instruments\NI-VirtualBenchPlease let me know how it goes and post your preferences file.
12-02-2014 03:27 AM
Hallo,
thank for your answer.
Please find as attachement the desire file.
Hoping you find what you are looking for.
with my best regards
Pierre
12-02-2014 05:02 AM
Hallo Zach Hindes,
Your idea solved my problem.
After the reset (button on the backside of the virutalbench instrument) I could successfully start again the application. The error message disappeared and I could use interactively the instrument interactively.
I reinstalled the software on my PC (Win7) and it is also running without problem.
The solution is so simple that I wonder I didn't think at it in the first place....
Then, I would suggest that the developers could add the reset suggestion to the error message. I'm sure , this would help a lot of people.
with my best regards
Pierre
12-03-2014 08:58 AM - edited 12-03-2014 08:59 AM
For anybody that has this problem in the future, we'd really like to get to the root of the problem. To help with that I have created a small utility that will pull the configurations from your device and save them to files. These configurations appear to be corrupted in these situations.
The easiest way to use the utility is to run it from the command line. It will find the first USB VirtualBench on your system and save any configuration files it has to your temporary directory. For example:
C:\Users\User\Desktop>nivb_cfgutil.exe
Saving files to C:\Users\User\AppData\Local\Temp\
Connecting to device 'vbzach'
Found config: ni-virtualbench-preferences.vbconfig
Wrote config to file C:\Users\User\AppData\Local\Temp\ni-virtualbench-preference
s.vbconfig
Found config: test_cfg.vbconfig
Wrote config to file C:\Users\User\AppData\Local\Temp\test_cfg.vbconfig
Found config: test_cfg2.vbconfig
Wrote config to file C:\Users\User\AppData\Local\Temp\test_cfg2.vbconfig
It also has some options that allow you to specify the device to connect to (either by name, IP address, or hostname), where to put the files, and whether or not to overwrite existing files on your PC. For example:
C:\Users\User\Desktop>nivb_cfgutil.exe --help
Usage: nivb_cfgutil.exe [options]
Main options:
-h, --help
Shows help.
-d, --dev=device
Device name to target.
-o, --out=directory
Output directory to save config files. If not specified, the temporary di
rectory is used.
-w, --overwrite
Overwrite existing files.
What we would like is that when people run into this issue they perform the following steps:
Attach the application preferences files:
%USERPROFILE%\Local Settings\Application Data\
National Instruments\NI-VirtualBench%USERPROFILE%\AppData\Local\
National Instruments\NI-VirtualBench
Once you have done that, you should be able to fix the issue by doing the following:
%USERPROFILE%\Local Settings\Application Data\
National Instruments\NI-VirtualBench%USERPROFILE%\AppData\Local\
National Instruments\NI-VirtualBench