Hey All,
I am attempting to develop a GUI for a program and have downloaded the "Ultimate++" Software to attempt at doing this. I will be using the GUI to control Agilent lab instruments so as to make lab testing more efficient and time effective.
I want to have the user select/enter a Frequency, Power Rating, A Saved Resgister File, and View a screenshot of the Spectrum Analzer screen. From here the image can be saved and the user can select where specifically.
I have already gone into Ultimate++ and created the layout, but the biggest and most important issue is that I am not sure how to properly code these functions as I have never used the software before and am not well versed with it. The largest issue of concern is adding/using the correct library compatible with the Agilent instruments.
The libraries I use are:
#include <"stdafx.h">
#include <"visa.h">
#include <iostream>
#include <fstream>
using namespace std;
After compiling and debugging the initial setup it was reading errors like: " fatal error C1083: Cannot open include file: 'stdafx.h': No such file or directory..."
How should I fix these errors/change the code to allow for the project to compile?
I also am not completely sure how to go about programming the fucntionality of a button to operate as it should be by designation. From SCPI commands to C++ conversion programming a frequency would look like this:
viPrintf(v5182_signal_generator, ":Freq 1400 MHz\n");
and if the library I used previously in MVC++ can no longer be used I am unsure how to go about programming a function button/utility. If this is the case would I need to develop my own driver to do this?
Taking on this project was a challenge from the start with my limited programming experience so any input/feedback/recommendations would be greatly appreciated!
Thanks in Advance!
Here are the code documents:
main.cpp:
#include <stdafx.h>
#include <visa.h>
#include <iostream>
#include <fstream>
using namespace std;
maTest::maTest()
{
CtrlLayout(*this, "Window title");
}
GUI_APP_MAIN
{
maTest().Run();
}
Test.h:
#ifndef _maTest_maTest_h
#define _maTest_maTest_h
#include <CtrlLib/CtrlLib.h>
using namespace Upp;
#define LAYOUTFILE <maTest/maTest.lay>
#include <CtrlCore/lay.h>
class maTest : public WithmaTestLayout<TopWindow> {
public:
typedef maTest CLASSNAME;
maTest();
};
#endif
Layout File:
maTest.lay
class maTestDlg : public WithmaTestLayout<TopWindow> {
typedef maTestDlg CLASSNAME;
public:
maTestDlg();
};
maTestDlg::maTestDlg()
{
CtrlLayout(*this, "");
}