How to use IVI-C instruments-drivers (not IVI-COM) - visual-studio-2012

I want to use IVI-C instruments-drivers (not IVI-COM) in Visual Studio 2012
Someone ever did this?
I only found examples for Visual Basic.
Drivers are downloadable on keysight.com-website which are free to use.
For VISA i installed Keysight IO-Libraries.

I'm doing something similar in Visual Studio 2013 using VB, but the basic principles will be similar for all languages. You probably know all of this already, but the question is a bit vague so here goes:
You need to install the drivers plus an SDK (which comes as a dll). Hopefully the SDK will come with a manual of commands in your language of choice, but if not study the manufacturer's coding examples in VB or whatever.
It is easiest to use the languages provided in the SDK (usually VB and C#, maybe C++) otherwise you will have to write an interface between your language and the actual command syntax and work in a multi-language environment.
The drivers and the SDK need to be referenced in your project after you have installed them. (MyProject, Reference Tab, use the Add command and Browse for the files.) Sometimes its hard to find the correct files but VS 2013 is quite good at telling you when you get the wrong ones.
You may have to target your build (Build|Configuration Manager) on x86 processors because there are no x64 drivers for much of this kit - check with Keysight.
Then, in your code you will need to:
instantiate a copy of the driver for the specific instrument:
Dim MyDriver As New InstrumentManufacturersDriverName
initialize it using the manufacturer's commands (on my kit initialization connects the driver to the physical interface via USB):
MyDriver.Initialize(ParametersIfAny),
set up the ports you want to use (very dependent on the specific hardware)
program your commands.
Use a lot of patience and trial and error at first.
Best of luck - it's not so difficult.

Related

Does Visual Studio 2022 have the same ability to open a javascript/nodejs project folder in a WSL2 Linux as VS Code is able to do?

If I'm in my WSL2 Ubuntu filesystem I can simply navigate to a javascript/nodejs folder and type code . to open that project folder and thanks to VS Code's Remote extensions, I'm essentially remoting into the Linux environment and ready to code.
Now Visual Studio 2022 has been released, I was wondering if it too supports the same level of cross-platform IDE capability as VS Code?
How, for instance, when in my WSL2 Ubuntu project in Windows Terminal, can I open my javascript/nodejs project in the Linux filesystem using VS2022, or is this not supported because VS Code is the only cross-platform IDE that can do this?
So its not really possible to do how your thinking. The problem here is that you your not understanding the difference between a "Code Editor", and an "Integrated Development Environment (IDE)", which is totally understandable, as the line that separates the two has become blurred in recent years, and also a topic of debate. There was a far more explicit distinction between the 2 10-15 years ago, however, Microsoft has done a good job at separating the two, where JetBrains will release a piece of software that can be used as an IDE, but is more often than not, used as an editor, but will still call it an IDE, even though its not an IDE in a pure sense.
How is all this related to your question?
When you open your Node.js project in VSCode via the code . command, you are opening it in an editor that implements Intelli-code, as well as a wealth of other tools, but essentially, the editor, and all the tools extract the names & file extensions of your documents, parse them (usually turning much of the info into an AST, where many extensions will make use of that info to offer the various tooling capabilities/features. The point is at the end of the day, the editor just parses all of your code, gives you info, and you make any changes as needed to your code. And again, this is what your doing with code .
With Visual Studio 2022, you can't open a project with it, unless its a project type the IDE supports, and enables the IDE, to embed its-self into your project. This includes things like built in environment, built in cache, built in build system, the files needed to bootstrap its-self. With an IDE, the IDE is part of the project.
So then why does Visual Stdio 2022 work with Node?
It works with node, to create Node.js applications within a windows environment, and it offers the ability to access different Windows SDK features via Node. These are things you could never do using server-side Linux builds with Node. When you build a Cpp application for windows, you package the entire thing in a .sin file, I haven't built a windows app in node, but I know that Node also uses the .sin file build system, which requires Visual Studio & Windows SDK to do, and parts of Visual Studio/Windows to be embedded into the project, for the project to be able to work in a Windows OS, and take advantage of MS Windows features.
Long story short, V.S. Code is the right tool for what your doing, why would Microsoft invest in two identical tools any way? If you ever want to build something for Windows, or for MS mobile device using Node, you will probably want to change your environment, to VS2022.

Application Development for Windows CE

I have a POS software and need to develop a collecting module for windows CE to run on a Honeywell Dolphin 6100 device.
I need to develop a simple application to run on a Honeywell 6100 device. This application should:
Get a list of products (code, description and price) from my POS software
Process Sales reading product's barcode showing Total due and number of items
Upload that sale to my POS software (via network, files, or something like that)
What are my options? Are there any Application builder for Windows CE? If not what could I use to develop such application?
You have a few options, but few (if any) of them will allow you to create the application without writing code. I'm aware of no "application builder" products that will get you there in Windows CE, and I've been working with CE for some time. That's not to say some obscure thing might not exist, but I am not aware of one.
You can write your application in .NET - either C# or VB.NET are supported - using the .NET Compact Framework (CF). For that you will need Visual Studio 2008 Professional and really little else, other than a device. There are lots of tutorials and online resources for CF development, so I won't put in a list of them here.
You can write your application in C/C++. For this, again you'd want to use Visual Studio 2008 Professional. Yes, there are options that use other compilers, but if you want to spend time actually writing the app and not building up a development tool chain and figuring out how to get it connected and debugging, then Visual Studio is the route you want.
If you'd like a non-Microsoft solution, there are others that are supported to more or less of a degree. NS Basic has been around a long time, so it's probably pretty robust and has reasonable support. I've never used it, but I've heard good things about it from those who have.
Anything else and you're a bit off the reservation. Support will likely be minimal at best, tooling will likely not be robust, support, tutorials and all of the other goodness that developers often rely on to move forward will be scant. You can likely get any language working under CE, given enough time and resources, but the options above are the most likely to lead to success.
Since you said you know Delphi and didn't want to learn another language, you can use Delphi Prism to write a client app to run on windows CE, pull the data you need, and post it to a webservice:
Is Delphi Prism a new version of Delphi .net?
http://en.wikipedia.org/wiki/Oxygene_(programming_language)
(edit) Just checked and it's now a part of this package:
http://www.embarcadero.com/products/rad-studio/faq

Develop Windows applications with Linux tools

I like the Linux operating system and vim editor, but there are many companies that develop under Windows environment in Visual studio etc. There is a possibility that I will have to work for such a company in about a month.
I'd like to do my work on my Linux system and copy the files to them. I have experience with both developments and I found out that I don't want to work with MS products but I like programming and writing MS code is not such a pain.
Are you a similar developer? Could you give me some advice about your methodology to be most of the time on Linux platform, to create code and debug everything in vim on Linux and only when neccessary open Visual Studio with Windows forms and similar things and test the things that weren't possible to test in Linux environment?
I would see the work in creating small peaces of code on Linux, testing them and then move it to MS platform and integrate to the whole system. How do you debug and test your code? The development will be probably in C# or C++. I can't imagine Visual Basic.
Please write here your experience, style of work, if this has sence or there are too many troubles and I should rather give up.
So the question is: How to develop applications that run on Windows with Linux tools, without touching Visual Studio and browsing with Windows file manager etc.
thank you
Not sure, if this will help you or not but there is a Vim Emulation layer for Visual Studio 2010 called VsVim.
Check out : http://visualstudiogallery.msdn.microsoft.com/59ca71b3-a4a3-46ca-8fe1-0e90e3f79329
If I were you I'd install MinGW or Cygwin on your windows machine and just use gvim/vim anyway (or maybe just use the Win32 vim).
VS is just a big editor. You'll be building with the microsoft compilers ( perhaps using msbuild or nmake ) but probably are going to have to accept that you can only debug windows things with VS ( unless you build for MinGW or Cygwin and use gcc and gdb)
You can use vim as a code editor, you can even stick on Linux when developing software for the .NET platform. The people behind the Mono make this happen. Mono is a software platform designed to allow developers to easily create cross platform applications. It is an open source implementation of Microsoft's .Net Framework based on the ECMA standards for C# and the Common Language Runtime.
You can stick to the editor of your liking and use the tools that come with Mono to compile your stuff. There is a IDE called Mono Develop, but compared to Visual Studio it is pretty basic... and compared to VIM it lacks simplicity.
C# projects are plain text files so it's easy enough to edit them over an SMB share in whatever editor you wish from anywhere the sysadmins let you.
Testing however will be difficult without going back to the windows machine, and while Mono implements the framework, it's still a different environment if you're targeting Windows.

is it possible to use a visual studio 2010 c++ code on a linux machine?

Newbie here. I made a project in visual studio 2010, and it works perfectly. Now i need to compile and run this code in a machine that runs ubuntu. Is there some export/import method, or how does it work (of course assuming such thing is possible).
What i am thinking is making a makefile in visual studio, then take the code and compile it in ubuntu? does such thing make sense?
Thank you in advance.
In an ideal world, the code is independent of any IDE or build chain, which keeps its own metadata saparate. Windows doesn't play nice with Linux.
On the other hand if you set up your project with CMake or something like that, then you can generate Visual Studio projects for a given code base just as easily as Linux makefiles.
You shouldn't need to change much code itself. Or, at least you should be aware of what is windows-specific. You probably will have to expend some effort in creating your CMakeList.txt or whatever you end up using, but it's pretty easy once you're familiar with it.
If you mean take Visual Studio source code and compile it on Linux: the answer is yes, though there may be anywhere from zero to a lot of work to make the code compile properly and run. It all depends on programming choices. Unfortunately, standard practice with Visual Studio generally is to use the most Microsoft-specific API features, thus greatly complicating porting to a POSIX or Linux environment. It is possible to make most non-GUI choices very portable, however a GUI intensive program is the least portable unless a cross-platform GUI API is used.
If you mean take the resulting .exe file output from Visual Studio and run that on Linux, that is usually much easier. Install the Wine package, (yum install wine or whatever the Ubuntu equivalent is) and fire up the program with wine program.exe. I have had very good luck (98+%) running Windows programs this way. The major exceptions are Microsoft software: in particular Visual Studio uses many non-standard Windows API operations, so much so that the Wine developers call VS's support level "garbage", a surprising outlier considering the number of Windows games which are well behaved and run under Wine straight out of the box.

Uses of VC++ these days?

Can someone give examples of some good applications / project that are made in VC++ commercial and non-commercial.
What do you use VC++ for these(2008...) days ?
Do enterprise application three tier i.e get written in VC++
Is there any use in leaning MFC these days?
Computer games are mostly still written in C++ on Windows using Visual Studio. Enterprise applications do usually use c# or java as enterprises have more money to buy hardware to make up for the difference in performance where games need to run on a significant amount of devices such as the PS3, Xbox 360, PS3, Windows, Mac etc. with limitations on memory.
Also embedded products, system utilities and software that makes extensive use of several low level API's are still written in C++. It definitely still has uses.
For low-level stuff, there is still nothing that beats C and C++. For example, I wrote Taekwindow in Visual C++ 2008. It consists mostly of Windows API calls; any other language would be too much of a hassle, and in this case not even possible (hook procedures).
The configuration tool was done in C#, but I am currently redoing that in C++ to make code reuse easier. I did look at MFC briefly, but decided that I didn't like its bloat for such a simple program, so I ended up using only the vanilla Windows API and its dialog manager. Admittedly, I can be a bit of a masochist sometimes.
Microsoft said that they'll improve MSVC because they have customers who have millions of lines of C++ already. For all I know, most well-known, commercial applications for Windows, not to mention Windows itself, are built using MSVC: i.e. applications which have been years in the making.
The most recent time I used MSVC (and MFC) was on a PocketPC/SmartPhone (i.e. Windows Mobile).
The majority of cross platform computer games are always written in VC++ since abstractions are always used anyway. Some platforms such as PS3 even allow for games to be compiled straight out of VC for PS3.
I'd say, anything cross platform that has to run on both Windows, mac and/or linux has a high chance of being written in VC because it's the best IDE out there.
Visual C++ is the ultimate programming tool which is still widely used in Most of the Core Banking and financial products developed by software companies. AS far as I know, adobe products are developed in VC++ and if you want to code anything in windows based pda or phones , vc++ embedded which is also called eVC++ is the way to go. Most of the kernel level rootkits are developed making use of VC++ with DDK functionality. The list goes on like that. There is no reason to consider vc++ as being not used these days.

Resources