Subversion Repositories f9daq

Compare Revisions

Ignore whitespace Rev 225 → Rev 226

/cvi/RedPitaya/soccli/redpitaya_gui.h
0,0 → 1,67
/**************************************************************************/
/* LabWindows/CVI User Interface Resource (UIR) Include File */
/* */
/* WARNING: Do not add to, delete from, or otherwise modify the contents */
/* of this include file. */
/**************************************************************************/
 
#include <userint.h>
 
#ifdef __cplusplus
extern "C" {
#endif
 
/* Panels and Controls: */
 
#define PANEL 1
#define PANEL_OPENGUI 2 /* control type: command, callback function: OpenGuiCB */
#define PANEL_EXIT 3 /* control type: command, callback function: ExitCB */
#define PANEL_STOP 4 /* control type: command, callback function: StopCB */
#define PANEL_CONNECT 5 /* control type: command, callback function: StartCB */
#define PANEL_INIT 6 /* control type: command, callback function: StartCB */
#define PANEL_START 7 /* control type: command, callback function: StartCB */
#define PANEL_END 8 /* control type: command, callback function: StartCB */
#define PANEL_IP 9 /* control type: string, callback function: (none) */
#define PANEL_FILENAME 10 /* control type: string, callback function: (none) */
#define PANEL_TIMER 11 /* control type: timer, callback function: (none) */
#define PANEL_TWIN1 12 /* control type: numeric, callback function: (none) */
#define PANEL_TWIN0 13 /* control type: numeric, callback function: (none) */
#define PANEL_TRGLEVEL 14 /* control type: numeric, callback function: (none) */
#define PANEL_TRGDELAY 15 /* control type: numeric, callback function: (none) */
#define PANEL_RANGE 16 /* control type: numeric, callback function: (none) */
#define PANEL_PFREQ 17 /* control type: numeric, callback function: (none) */
#define PANEL_SAMPLES 18 /* control type: numeric, callback function: (none) */
#define PANEL_NEVE 19 /* control type: numeric, callback function: (none) */
#define PANEL_CEVE 20 /* control type: numeric, callback function: (none) */
#define PANEL_DECIMATION 21 /* control type: ring, callback function: (none) */
#define PANEL_TRIGGER 22 /* control type: ring, callback function: (none) */
#define PANEL_ENABLEDOUTPUT 23 /* control type: radioButton, callback function: (none) */
#define PANEL_DEBUG 24 /* control type: radioButton, callback function: (none) */
#define PANEL_CH1 25 /* control type: radioButton, callback function: (none) */
#define PANEL_GRAPH 26 /* control type: graph, callback function: (none) */
#define PANEL_CH0 27 /* control type: radioButton, callback function: (none) */
#define PANEL_TEXTMSG 28 /* control type: textMsg, callback function: (none) */
#define PANEL_STDIO 29 /* control type: textBox, callback function: (none) */
 
 
/* Control Arrays: */
 
/* (no control arrays in the resource file) */
 
 
/* Menu Bars, Menus, and Menu Items: */
 
/* (no menu bars in the resource file) */
 
 
/* Callback Prototypes: */
 
int CVICALLBACK ExitCB(int panel, int control, int event, void *callbackData, int eventData1, int eventData2);
int CVICALLBACK OpenGuiCB(int panel, int control, int event, void *callbackData, int eventData1, int eventData2);
int CVICALLBACK StartCB(int panel, int control, int event, void *callbackData, int eventData1, int eventData2);
int CVICALLBACK StopCB(int panel, int control, int event, void *callbackData, int eventData1, int eventData2);
 
 
#ifdef __cplusplus
}
#endif
/cvi/RedPitaya/soccli/redpitaya_gui.uir
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes:
Added: svn:mime-type
## -0,0 +1 ##
+application/octet-stream
\ No newline at end of property
Index: RedPitaya/soccli/soccli.c
===================================================================
--- RedPitaya/soccli/soccli.c (nonexistent)
+++ RedPitaya/soccli/soccli.c (revision 226)
@@ -0,0 +1,292 @@
+#include "redpitaya_gui.h"
+#include <ansi_c.h>
+#include <tcpsupp.h>
+#include <utility.h>
+#include <cvirte.h>
+#include <userint.h>
+#include "redpitaya_gui.h"
+
+#define NBEFORE 150
+#define MAXSAMPLES 16384
+#define MINTRGDELAY -8192
+
+
+static int panelHandle;
+
+static unsigned int chandle = 0;
+static int tfID;
+int pfreq;
+static int plothandle[2]= {0,0};
+int debug ;
+int initialized = 0;
+#define MAX_THREADS 10
+int nsamples=0;
+float timebins[0XFFFF];
+static CmtThreadPoolHandle poolHandle = 0;
+int ctrl_c=0;
+
+
+int CVICALLBACK SocketCB (unsigned handle, int xType, int errCode, void *callbackData);
+
+
+int main (int argc, char *argv[]) {
+ if (InitCVIRTE (0, argv, 0) == 0)
+ return -1; /* out of memory */
+ if ((panelHandle = LoadPanel (0, "redpitaya_gui.uir", PANEL)) < 0)
+ return -1;
+
+
+ SetStdioPort (CVI_STDIO_WINDOW);
+ SetSleepPolicy(VAL_SLEEP_MORE);
+ CmtNewThreadPool (MAX_THREADS, &poolHandle);
+
+ DisplayPanel (panelHandle);
+ RunUserInterface ();
+ DiscardPanel (panelHandle);
+ CmtDiscardThreadPool (poolHandle);
+ if (chandle!=0) DisconnectFromTCPServer (chandle);
+ return 0;
+}
+
+char strbuf[0xFF];
+
+int gLog=0;
+
+int printf(const char *format, ...) {
+ va_list aptr;
+ int ret;
+ FILE *flog;
+
+ va_start(aptr, format);
+ ret = vsprintf(strbuf, format, aptr);
+ va_end(aptr);
+ SetCtrlVal(panelHandle,PANEL_STDIO,strbuf);
+
+ if (gLog) {
+ flog = fopen ("stdio.log", "a");
+ fprintf (flog, "%s", strbuf);
+ fclose (flog);
+ }
+ return(ret);
+}
+
+
+int analyse(int neve, unsigned char *cdata) {
+
+ int *data = (int *) cdata;
+ for (int i=0; i<neve; i++) {
+
+ int recid = *data++;
+ int chmask = *data++;
+ if (recid!=0x2) continue;
+ for (int id=0;id<2;id++){
+ if ( !(chmask & (1 << id)) ) {
+ if (i % pfreq == 0)
+ if (plothandle[id]) {
+ DeleteGraphPlot (panelHandle, PANEL_GRAPH, plothandle[id], VAL_IMMEDIATE_DRAW);
+ plothandle[id] = 0;
+ }
+ continue;
+ }
+ if ( id != *(data++) ) printf("Error\n");
+ int nsamples = *(data++);
+ //printf("nsamples %d\n", nsamples);
+
+ if (i % pfreq == 0) {
+ const int col[4]= {VAL_RED,VAL_GREEN,VAL_BLUE,VAL_WHITE};
+ if (plothandle[id]) DeleteGraphPlot (panelHandle, PANEL_GRAPH, plothandle[id], VAL_IMMEDIATE_DRAW);
+ //plothandle[id] = PlotXY (panelHandle, PANEL_GRAPH, timebins, (float *) data, nsamples, VAL_FLOAT, VAL_FLOAT, VAL_THIN_LINE, VAL_NO_POINT, VAL_SOLID, 1, col[id]);
+
+ plothandle[id] = PlotXY (panelHandle, PANEL_GRAPH, timebins, data, nsamples, VAL_FLOAT, VAL_INTEGER, VAL_THIN_LINE, VAL_NO_POINT, VAL_SOLID, 1, col[id]);
+
+ if (debug) for (int k=0; k<10; k++) printf("%d %d (%f , %d)\n", id,k, timebins[k],data[k]);
+ }
+ data+=nsamples;
+
+ }
+ recid = *data++;
+ int event = *data++;
+ //printf("recid %d event %d\n",recid, event );
+ }
+
+ return 0;
+}
+
+unsigned char data[100000000];
+int *idata = (int *) &data[0];
+
+static int ncalls = 0;
+
+int CVICALLBACK SocketCB (unsigned handle, int xType, int errCode, void *callbackData) {
+
+ int nb = 0 ;
+ static int event = 0;
+ unsigned char cmd;
+ switch (xType) {
+ case TCP_DISCONNECT:
+ printf("TCP_DISCONNECT ErrorString %s\n",GetTCPErrorString(errCode));
+ printf("TCP_DISCONNECT SystemErrorString %s\n",GetTCPSystemErrorString());
+ //DisconnectFromTCPServer (&chandle);
+ chandle = 0;
+ break;
+ case TCP_DATAREADY: {
+ printf("Data Ready \n");
+ nb = ClientTCPRead(handle,&cmd,1,1000);
+ printf("Server Response = %d\n", cmd);
+ int hdr[3]= {0,0,0};
+
+ switch (cmd) {
+ case 1: // init finished
+ initialized = 1;
+ break;
+ case 2:
+ break;
+ case 3: // data ready
+ cmd = 4;
+ ClientTCPWrite(handle,&cmd,1,5000); // read
+ break;
+ case 4:// read
+ {
+ ClientTCPRead(handle,&hdr[0],12,5000);
+ int neve = hdr[1];
+ printf("Client: Data received: %d, %d, %d\n", hdr[0], neve, hdr[2]);
+ int size = hdr[0]-12;
+ nb = 0;
+ while (nb < size) {
+ int retval = ClientTCPRead(handle,&data[nb],size-nb,5000);
+ if (retval<1) break;
+ nb += retval;
+ }
+ printf("Read nb = %d size %d\n", nb, size);
+ analyse(neve, data);
+ if (ctrl_c==0) StartCB (panelHandle, PANEL_START,EVENT_COMMIT,NULL, 0, 0 );
+
+ }
+
+ break;
+ default:
+ printf("Unknown command = %d\n", cmd);
+ break;
+ }
+ break;
+
+ }
+ }
+ return 0;
+}
+
+
+
+int CVICALLBACK StartCB (int panel, int control, int event,
+ void *callbackData, int eventData1, int eventData2) {
+ char msg[0xFF];
+ char ip[0xFF];
+ int *hdr = (int *)&msg[1] ;
+ unsigned short *sbuff = (unsigned short *)&msg[1] ;
+ unsigned char *cbuff = (unsigned char *)&msg[1] ;
+ int imask[2];
+ unsigned char mask;
+ unsigned char trigger;
+ unsigned short nsamples;
+ unsigned short delay;
+ unsigned short decimation;
+ unsigned short neve;
+ switch (event) {
+ case EVENT_COMMIT: {
+ ncalls = 0;
+ GetCtrlVal(panel,PANEL_IP, ip);
+ GetCtrlVal(panel,PANEL_TRIGGER, &trigger);
+ GetCtrlVal(panel,PANEL_SAMPLES, &nsamples);
+ GetCtrlVal(panel,PANEL_DECIMATION,&decimation);
+ GetCtrlVal(panel,PANEL_NEVE , &neve);
+ GetCtrlVal(panel,PANEL_CH0 , &imask[0] );
+ GetCtrlVal(panel,PANEL_CH1 , &imask[1] );
+ GetCtrlVal(panel,PANEL_PFREQ , &pfreq);
+ GetCtrlVal(panel,PANEL_DEBUG , &debug);
+ delay= MINTRGDELAY + nsamples - NBEFORE + 1;
+ delay= nsamples - NBEFORE + 1;
+ mask = 0;
+ for (int i=0; i<2; i++) {
+ if (imask[i]) mask |= (1<<i);
+ }
+
+ double level =0;
+ GetCtrlVal(panel,PANEL_TRGLEVEL , &level);
+
+
+ switch (control) {
+ case PANEL_CONNECT:
+ ConnectToTCPServerEx (&chandle, 9930, ip, SocketCB, NULL, 0, TCP_ANY_LOCAL_PORT);
+ break;
+ case PANEL_INIT:
+ ctrl_c=0;
+ msg[0] = 1;
+ hdr[0] = delay;
+ hdr[1] = decimation;
+ hdr[2] = level * 1000;
+ ClientTCPWrite(chandle,&msg[0],13,5000); // init
+ break;
+ case PANEL_START:
+ msg[0] = 3;
+ sbuff[0] = neve;
+ sbuff[1] = nsamples;
+ sbuff[2] = 1000; //tout
+ cbuff[6] = trigger;
+ cbuff[7] = mask;
+ ClientTCPWrite(chandle,&msg[0],9,5000); // acquire
+
+ break;
+
+ case PANEL_END:
+ msg[0] = 0;
+
+ ClientTCPWrite(chandle,&msg[0],1,5000); // disconnect
+ chandle = 0;
+ break;
+ default:
+ printf("Unknown command\n");
+ break;
+ }
+
+
+ for (int i=0; i<nsamples; i++) timebins[i]=i*8*decimation/1000.;
+
+ ProcessSystemEvents ();
+ break;
+ }
+ }
+ return 0;
+}
+
+
+
+int CVICALLBACK OpenGuiCB (int panel, int control, int event,
+ void *callbackData, int eventData1, int eventData2) {
+ switch (event) {
+ case EVENT_COMMIT:
+
+ break;
+ }
+ return 0;
+}
+
+int CVICALLBACK ExitCB (int panel, int control, int event,
+ void *callbackData, int eventData1, int eventData2) {
+ switch (event) {
+ case EVENT_COMMIT:
+ QuitUserInterface(0);
+ break;
+ }
+ return 0;
+}
+
+int CVICALLBACK StopCB (int panel, int control, int event,
+ void *callbackData, int eventData1, int eventData2) {
+ switch (event) {
+ case EVENT_COMMIT:
+ //if (chandle != 0)
+ ctrl_c=1;
+ break;
+ }
+ return 0;
+}
Index: RedPitaya/soccli/soccli.cws
===================================================================
--- RedPitaya/soccli/soccli.cws (nonexistent)
+++ RedPitaya/soccli/soccli.cws (revision 226)
@@ -0,0 +1,287 @@
+[Workspace Header]
+Version = 1302
+Pathname = "/c/Users/rok/Documents/rok/lab/redpitaya/soccli/soccli.cws"
+CVI Dir = "/c/program files (x86)/national instruments/cvi2013"
+CVI Shared Dir = "/C/Program Files (x86)/National Instruments/Shared/CVI"
+CVI Pub Local Dir = "/C/ProgramData/National Instruments/CVI2013"
+CVI Pub Global Dir = "/C/ProgramData/National Instruments/CVI"
+IVI Standard Root Dir = "/C/Program Files (x86)/IVI Foundation/IVI"
+IVI Standard Root 64-bit Dir = "/C/Program Files/IVI Foundation/IVI"
+VXIplug&play Framework Dir = "/C/Program Files (x86)/IVI Foundation/VISA/winnt"
+VXIplug&play Framework 64-bit Dir = "/C/Program Files/IVI Foundation/VISA/win64"
+Number of Projects = 2
+Active Project = 1
+Project 0001 = "soccli.prj"
+Project 0002 = "/c/home/CVI/RedPitaya/RedPitaya.prj"
+Drag Bar Left = 360
+Window Top = 83
+Window Left = 143
+Window Bottom = 792
+Window Right = 1455
+Maximized = False
+Maximized Children = True
+Max32 Number Of Errors = 20
+Track Include File Dependencies = True
+Prompt For Missing Includes = True
+Stop On First Error File = False
+Bring Up Err Win At Start = True
+Bring Up Err Win For Errors = False
+Save Changes Before Running = "Always"
+Save Changes Before Compiling = "Always"
+Hide Windows = False
+Break At First Statement = False
+Sort Type = "File Name"
+Number of Opened Files = 0
+Window Confinement Region Enabled = True
+MainColumnWidth = 343
+FileDateColumnWidth = 70
+FileSizeColumnWidth = 70
+
+[Project Header 0001]
+Version = 1302
+Don't Update DistKit = False
+Platform Code = 4
+Build Configuration = "Debug"
+Warn User If Debugging Release = 1
+Batch Build Release = False
+Batch Build Debug = False
+
+[Project Header 0002]
+Version = 1302
+Don't Update DistKit = False
+Platform Code = 4
+Build Configuration = "Debug"
+Warn User If Debugging Release = 1
+Batch Build Release = False
+Batch Build Debug = False
+
+[File 0001]
+Path = "/c/Users/rok/Documents/rok/lab/redpitaya/soccli/soccli.c"
+File Type = "CSource"
+Disk Date = 3572526558
+In Projects = "1,"
+Window Top = 33
+Window Left = 10
+Source Window State = "1,217,217,217,19,23,23,0,0,0,0,0,0,0,0,0,203,0,224,79,349,595,1,0,"
+
+[File 0002]
+Path = "/c/Users/rok/Documents/rok/lab/redpitaya/soccli/redpitaya_gui.uir"
+File Type = "User Interface Resource"
+Disk Date = 3572500974
+In Projects = "1,"
+Window Top = 64
+Window Left = 26
+Window Height = 232
+Window Width = 595
+
+[File 0003]
+Path = "/c/home/CVI/RedPitaya/RedPitaya.c"
+File Type = "CSource"
+Disk Date = 3572432069
+In Projects = "2,"
+Window Top = 126
+Window Left = 58
+Source Window State = "1,129,129,129,56,66,66,0,0,80,0,0,0,0,0,18,120,0,139,44,258,683,1,0,"
+
+[File 0004]
+Path = "/c/Users/rok/Documents/rok/lab/redpitaya/soccli/soccli.h"
+File Type = "Include"
+Disk Date = 3572249558
+In Projects = "1,"
+Source Window State = "0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,"
+
+[File 0005]
+Path = "/c/home/CVI/RedPitaya/RedPitaya_ui.uir"
+File Type = "User Interface Resource"
+Disk Date = 3570147178
+In Projects = "2,"
+
+[File 0006]
+Path = "/c/home/CVI/RedPitaya/RedPitaya_ui.h"
+File Type = "Include"
+Disk Date = 3570144632
+In Projects = "2,"
+Source Window State = "0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,"
+
+[File 0007]
+Path = "/c/home/CVI/RedPitaya/plottdc.cxx"
+File Type = "Unknown"
+Disk Date = 3570148039
+In Projects = "2,"
+
+[Default Build Config 0001 Debug]
+Generate Browse Info = False
+Enable Uninitialized Locals Runtime Warning = True
+Batch Build = False
+Profile = "Disabled"
+Debugging Level = "Standard"
+Execution Trace = "Disabled"
+Command Line Args = ""
+Working Directory = ""
+Environment Options = ""
+External Process Path = ""
+
+[Default Build Config 0001 Release]
+Generate Browse Info = False
+Enable Uninitialized Locals Runtime Warning = True
+Batch Build = False
+Profile = "Disabled"
+Debugging Level = "Standard"
+Execution Trace = "Disabled"
+Command Line Args = ""
+Working Directory = ""
+Environment Options = ""
+External Process Path = ""
+
+[Default Build Config 0001 Debug64]
+Generate Browse Info = False
+Enable Uninitialized Locals Runtime Warning = True
+Batch Build = False
+Profile = "Disabled"
+Debugging Level = "Standard"
+Execution Trace = "Disabled"
+Command Line Args = ""
+Working Directory = ""
+Environment Options = ""
+External Process Path = ""
+
+[Default Build Config 0001 Release64]
+Generate Browse Info = False
+Enable Uninitialized Locals Runtime Warning = True
+Batch Build = False
+Profile = "Disabled"
+Debugging Level = "Standard"
+Execution Trace = "Disabled"
+Command Line Args = ""
+Working Directory = ""
+Environment Options = ""
+External Process Path = ""
+
+[Build Dependencies 0001]
+Number of Dependencies = 0
+
+[Build Options 0001]
+Generate Browse Info = False
+Enable Uninitialized Locals Runtime Warning = True
+Execution Trace = "Disabled"
+Profile = "Disabled"
+Debugging Level = "Standard"
+Break On Library Errors = True
+Break On First Chance Exceptions = False
+
+[Execution Target 0001]
+Execution Target Address = "Local desktop computer"
+Execution Target Port = 0
+Execution Target Type = 0
+
+[SCC Options 0001]
+Use global settings = True
+SCC Provider = ""
+SCC Project = ""
+Local Path = ""
+Auxiliary Path = ""
+Perform Same Action For .h File As For .uir File = "Ask"
+Perform Same Action For .cds File As For .prj File = "Ask"
+Username = ""
+Comment = ""
+Use Default Username = False
+Use Default Comment = False
+Suppress CVI Error Messages = False
+Always show confirmation dialog = True
+
+[DLL Debugging Support 0001]
+External Process Path = ""
+
+[Command Line Args 0001]
+Command Line Args = ""
+Working Directory = ""
+Environment Options = ""
+
+[Default Build Config 0002 Debug]
+Generate Browse Info = False
+Enable Uninitialized Locals Runtime Warning = True
+Batch Build = False
+Profile = "Disabled"
+Debugging Level = "Standard"
+Execution Trace = "Disabled"
+Command Line Args = ""
+Working Directory = ""
+Environment Options = ""
+External Process Path = ""
+
+[Default Build Config 0002 Release]
+Generate Browse Info = False
+Enable Uninitialized Locals Runtime Warning = True
+Batch Build = False
+Profile = "Disabled"
+Debugging Level = "Standard"
+Execution Trace = "Disabled"
+Command Line Args = ""
+Working Directory = ""
+Environment Options = ""
+External Process Path = ""
+
+[Default Build Config 0002 Debug64]
+Generate Browse Info = False
+Enable Uninitialized Locals Runtime Warning = True
+Batch Build = False
+Profile = "Disabled"
+Debugging Level = "Standard"
+Execution Trace = "Disabled"
+Command Line Args = ""
+Working Directory = ""
+Environment Options = ""
+External Process Path = ""
+
+[Default Build Config 0002 Release64]
+Generate Browse Info = False
+Enable Uninitialized Locals Runtime Warning = True
+Batch Build = False
+Profile = "Disabled"
+Debugging Level = "Standard"
+Execution Trace = "Disabled"
+Command Line Args = ""
+Working Directory = ""
+Environment Options = ""
+External Process Path = ""
+
+[Build Dependencies 0002]
+Number of Dependencies = 0
+
+[Build Options 0002]
+Generate Browse Info = False
+Enable Uninitialized Locals Runtime Warning = True
+Execution Trace = "Disabled"
+Profile = "Disabled"
+Debugging Level = "Standard"
+Break On Library Errors = True
+Break On First Chance Exceptions = False
+
+[Execution Target 0002]
+Execution Target Address = "Local desktop computer"
+Execution Target Port = 0
+Execution Target Type = 0
+
+[SCC Options 0002]
+Use global settings = True
+SCC Provider = ""
+SCC Project = ""
+Local Path = ""
+Auxiliary Path = ""
+Perform Same Action For .h File As For .uir File = "Ask"
+Perform Same Action For .cds File As For .prj File = "Ask"
+Username = ""
+Comment = ""
+Use Default Username = False
+Use Default Comment = False
+Suppress CVI Error Messages = False
+Always show confirmation dialog = True
+
+[DLL Debugging Support 0002]
+External Process Path = ""
+
+[Command Line Args 0002]
+Command Line Args = ""
+Working Directory = ""
+Environment Options = ""
+
Index: RedPitaya/soccli/soccli.h
===================================================================
--- RedPitaya/soccli/soccli.h (nonexistent)
+++ RedPitaya/soccli/soccli.h (revision 226)
@@ -0,0 +1,41 @@
+//==============================================================================
+//
+// Title: soccli.h
+// Purpose: A short description of the interface.
+//
+// Created on: 3/13/2017 at 12:32:38 PM by rok.
+// Copyright: . All Rights Reserved.
+//
+//==============================================================================
+
+#ifndef __soccli_H__
+#define __soccli_H__
+
+#ifdef __cplusplus
+ extern "C" {
+#endif
+
+//==============================================================================
+// Include files
+
+#include "cvidef.h"
+
+//==============================================================================
+// Constants
+
+//==============================================================================
+// Types
+
+//==============================================================================
+// External variables
+
+//==============================================================================
+// Global functions
+
+int Declare_Your_Functions_Here (int x);
+
+#ifdef __cplusplus
+ }
+#endif
+
+#endif /* ndef __soccli_H__ */
Index: RedPitaya/soccli/soccli.prj
===================================================================
--- RedPitaya/soccli/soccli.prj (nonexistent)
+++ RedPitaya/soccli/soccli.prj (revision 226)
@@ -0,0 +1,407 @@
+[Project Header]
+Version = 1302
+Pathname = "/c/Users/rok/Documents/rok/lab/redpitaya/soccli.prj"
+Project Label = "soccli"
+CVI Dir = "/c/program files (x86)/national instruments/cvi2013"
+CVI Shared Dir = "/C/Program Files (x86)/National Instruments/Shared/CVI"
+CVI Pub Local Dir = "/C/ProgramData/National Instruments/CVI2013"
+CVI Pub Global Dir = "/C/ProgramData/National Instruments/CVI"
+IVI Standard Root Dir = "/C/Program Files (x86)/IVI Foundation/IVI"
+VXIplug&play Framework Dir = "/C/Program Files (x86)/IVI Foundation/VISA/winnt"
+IVI Standard Root 64-bit Dir = "/C/Program Files/IVI Foundation/IVI"
+VXIplug&play Framework 64-bit Dir = "/C/Program Files/IVI Foundation/VISA/win64"
+Number of Files = 3
+Target Type = "Executable"
+Flags = 2064
+Copied From Locked InstrDrv Directory = False
+Copied from VXIPNP Directory = False
+Locked InstrDrv Name = ""
+Don't Display Deploy InstrDrv Dialog = False
+
+[Folders]
+Instrument Files Folder Not Added Yet = True
+Library Files Folder Not Added Yet = True
+Folder 0 = "Source Files"
+FolderEx 0 = "Source Files"
+Folder 1 = "Include Files"
+FolderEx 1 = "Include Files"
+Folder 2 = "User Interface Files"
+FolderEx 2 = "User Interface Files"
+
+[File 0001]
+File Type = "CSource"
+Res Id = 1
+Path Is Rel = True
+Path Rel To = "Project"
+Path Rel Path = "soccli.c"
+Path = "/c/Users/rok/Documents/rok/lab/redpitaya/soccli.c"
+Exclude = False
+Compile Into Object File = False
+Project Flags = 0
+Folder = "Source Files"
+Folder Id = 0
+
+[File 0002]
+File Type = "Include"
+Res Id = 2
+Path Is Rel = True
+Path Rel To = "Project"
+Path Rel Path = "soccli.h"
+Path = "/c/Users/rok/Documents/rok/lab/redpitaya/soccli.h"
+Exclude = False
+Project Flags = 0
+Folder = "Include Files"
+Folder Id = 1
+
+[File 0003]
+File Type = "User Interface Resource"
+Res Id = 3
+Path Is Rel = True
+Path Rel To = "Project"
+Path Rel Path = "redpitaya_gui.uir"
+Path = "/c/Users/rok/Documents/rok/lab/redpitaya/redpitaya_gui.uir"
+Exclude = False
+Project Flags = 0
+Folder = "User Interface Files"
+Folder Id = 2
+
+[Custom Build Configs]
+Num Custom Build Configs = 0
+
+[Default Build Config Debug]
+Config Name = "Debug"
+Is 64-Bit = False
+Is Release = False
+Default Calling Convention = "cdecl"
+Optimization Level = "Optimize for speed (level 2)"
+Require Prototypes = True
+Show Warning IDs in Build Output = False
+Selected Warning Level = "Common"
+Warning List None = ""
+Warning List Common = ""
+Warning List Extended = ""
+Warning List All = ""
+Warning Mode = 0
+Enable Unreferenced Identifiers Warning = True
+Enable Pointer Mismatch Warning = True
+Enable Unreachable Code Warning = True
+Enable Assignment In Conditional Warning = True
+Uninitialized Locals Compile Warning = "Aggressive"
+Require Return Values = True
+Enable C99 Extensions = True
+Enable OpenMP Extensions = False
+Stack Size = 250000
+Stack Reserve = 1048576
+Stack Commit = 4096
+Image Base Address = 4194304
+Image Base Address x64 = 4194304
+Compiler Defines = "/DWIN32_LEAN_AND_MEAN"
+Sign = False
+Sign Store = ""
+Sign Certificate = ""
+Sign Timestamp URL = ""
+Sign URL = ""
+Manifest Embed = False
+Icon File Is Rel = False
+Icon File = ""
+Application Title = ""
+Use IVI Subdirectories for Import Libraries = False
+Use VXIPNP Subdirectories for Import Libraries = False
+Use Dflt Import Lib Base Name = True
+Where to Copy DLL = "Do not copy"
+Custom Directory to Copy DLL Is Rel = False
+Custom Directory to Copy DLL = ""
+Generate Source Documentation = "None"
+Runtime Support = "Full Runtime Support"
+Runtime Binding = "Shared"
+Embed Project .UIRs = False
+Generate Map File = False
+Embed Timestamp = True
+Create Console Application = False
+Using LoadExternalModule = False
+DLL Exports = "Include File Symbols"
+Register ActiveX Server = False
+Add Type Lib To DLL = False
+Include Type Lib Help Links = False
+TLB Help Style = "HLP"
+Type Lib FP File Is Rel = False
+Type Lib FP File = ""
+
+[Default Build Config Release]
+Config Name = "Release"
+Is 64-Bit = False
+Is Release = True
+Default Calling Convention = "cdecl"
+Optimization Level = "Optimize for speed (level 2)"
+Require Prototypes = True
+Show Warning IDs in Build Output = False
+Selected Warning Level = "Common"
+Warning List None = ""
+Warning List Common = ""
+Warning List Extended = ""
+Warning List All = ""
+Warning Mode = 0
+Enable Unreferenced Identifiers Warning = True
+Enable Pointer Mismatch Warning = True
+Enable Unreachable Code Warning = True
+Enable Assignment In Conditional Warning = True
+Uninitialized Locals Compile Warning = "Aggressive"
+Require Return Values = True
+Enable C99 Extensions = True
+Enable OpenMP Extensions = False
+Stack Size = 250000
+Stack Reserve = 1048576
+Stack Commit = 4096
+Image Base Address = 4194304
+Image Base Address x64 = 4194304
+Compiler Defines = "/DWIN32_LEAN_AND_MEAN"
+Sign = False
+Sign Store = ""
+Sign Certificate = ""
+Sign Timestamp URL = ""
+Sign URL = ""
+Manifest Embed = False
+Icon File Is Rel = False
+Icon File = ""
+Application Title = ""
+Use IVI Subdirectories for Import Libraries = False
+Use VXIPNP Subdirectories for Import Libraries = False
+Use Dflt Import Lib Base Name = True
+Where to Copy DLL = "Do not copy"
+Custom Directory to Copy DLL Is Rel = False
+Custom Directory to Copy DLL = ""
+Generate Source Documentation = "None"
+Runtime Support = "Full Runtime Support"
+Runtime Binding = "Shared"
+Embed Project .UIRs = False
+Generate Map File = False
+Embed Timestamp = True
+Create Console Application = False
+Using LoadExternalModule = False
+DLL Exports = "Include File Symbols"
+Register ActiveX Server = False
+Add Type Lib To DLL = False
+Include Type Lib Help Links = False
+TLB Help Style = "HLP"
+Type Lib FP File Is Rel = False
+Type Lib FP File = ""
+
+[Default Build Config Debug64]
+Config Name = "Debug64"
+Is 64-Bit = True
+Is Release = False
+Default Calling Convention = "cdecl"
+Optimization Level = "Optimize for speed (level 2)"
+Require Prototypes = True
+Show Warning IDs in Build Output = False
+Selected Warning Level = "Common"
+Warning List None = ""
+Warning List Common = ""
+Warning List Extended = ""
+Warning List All = ""
+Warning Mode = 0
+Enable Unreferenced Identifiers Warning = True
+Enable Pointer Mismatch Warning = True
+Enable Unreachable Code Warning = True
+Enable Assignment In Conditional Warning = True
+Uninitialized Locals Compile Warning = "Aggressive"
+Require Return Values = True
+Enable C99 Extensions = True
+Enable OpenMP Extensions = False
+Stack Size = 250000
+Stack Reserve = 1048576
+Stack Commit = 4096
+Image Base Address = 4194304
+Image Base Address x64 = 4194304
+Compiler Defines = "/DWIN32_LEAN_AND_MEAN"
+Sign = False
+Sign Store = ""
+Sign Certificate = ""
+Sign Timestamp URL = ""
+Sign URL = ""
+Manifest Embed = False
+Icon File Is Rel = False
+Icon File = ""
+Application Title = ""
+Use IVI Subdirectories for Import Libraries = False
+Use VXIPNP Subdirectories for Import Libraries = False
+Use Dflt Import Lib Base Name = True
+Where to Copy DLL = "Do not copy"
+Custom Directory to Copy DLL Is Rel = False
+Custom Directory to Copy DLL = ""
+Generate Source Documentation = "None"
+Runtime Support = "Full Runtime Support"
+Runtime Binding = "Shared"
+Embed Project .UIRs = False
+Generate Map File = False
+Embed Timestamp = True
+Create Console Application = False
+Using LoadExternalModule = False
+DLL Exports = "Include File Symbols"
+Register ActiveX Server = False
+Add Type Lib To DLL = False
+Include Type Lib Help Links = False
+TLB Help Style = "HLP"
+Type Lib FP File Is Rel = False
+Type Lib FP File = ""
+
+[Default Build Config Release64]
+Config Name = "Release64"
+Is 64-Bit = True
+Is Release = True
+Default Calling Convention = "cdecl"
+Optimization Level = "Optimize for speed (level 2)"
+Require Prototypes = True
+Show Warning IDs in Build Output = False
+Selected Warning Level = "Common"
+Warning List None = ""
+Warning List Common = ""
+Warning List Extended = ""
+Warning List All = ""
+Warning Mode = 0
+Enable Unreferenced Identifiers Warning = True
+Enable Pointer Mismatch Warning = True
+Enable Unreachable Code Warning = True
+Enable Assignment In Conditional Warning = True
+Uninitialized Locals Compile Warning = "Aggressive"
+Require Return Values = True
+Enable C99 Extensions = True
+Enable OpenMP Extensions = False
+Stack Size = 250000
+Stack Reserve = 1048576
+Stack Commit = 4096
+Image Base Address = 4194304
+Image Base Address x64 = 4194304
+Compiler Defines = "/DWIN32_LEAN_AND_MEAN"
+Sign = False
+Sign Store = ""
+Sign Certificate = ""
+Sign Timestamp URL = ""
+Sign URL = ""
+Manifest Embed = False
+Icon File Is Rel = False
+Icon File = ""
+Application Title = ""
+Use IVI Subdirectories for Import Libraries = False
+Use VXIPNP Subdirectories for Import Libraries = False
+Use Dflt Import Lib Base Name = True
+Where to Copy DLL = "Do not copy"
+Custom Directory to Copy DLL Is Rel = False
+Custom Directory to Copy DLL = ""
+Generate Source Documentation = "None"
+Runtime Support = "Full Runtime Support"
+Runtime Binding = "Shared"
+Embed Project .UIRs = False
+Generate Map File = False
+Embed Timestamp = True
+Create Console Application = False
+Using LoadExternalModule = False
+DLL Exports = "Include File Symbols"
+Register ActiveX Server = False
+Add Type Lib To DLL = False
+Include Type Lib Help Links = False
+TLB Help Style = "HLP"
+Type Lib FP File Is Rel = False
+Type Lib FP File = ""
+
+[Compiler Options]
+Default Calling Convention = "cdecl"
+Require Prototypes = True
+Require Return Values = True
+Enable Pointer Mismatch Warning = True
+Enable Unreachable Code Warning = True
+Enable Unreferenced Identifiers Warning = True
+Enable Assignment In Conditional Warning = True
+O Option Compatible With 5.0 = False
+Enable C99 Extensions = True
+Uninitialized Locals Compile Warning = "Aggressive"
+Precompile Prefix Header = False
+Prefix Header File = ""
+
+[Run Options]
+Stack Size = 250000
+Stack Commit = 4096
+Image Base Address = 4194304
+Image Base Address x64 = 4194304
+
+[Compiler Defines]
+Compiler Defines = "/DWIN32_LEAN_AND_MEAN"
+
+[Create Executable]
+Executable File_Debug Is Rel = True
+Executable File_Debug Rel To = "Project"
+Executable File_Debug Rel Path = "soccli.exe"
+Executable File_Debug = "/c/Users/rok/Documents/rok/lab/redpitaya/soccli.exe"
+Executable File_Release Is Rel = True
+Executable File_Release Rel To = "Project"
+Executable File_Release Rel Path = "soccli.exe"
+Executable File_Release = "/c/Users/rok/Documents/rok/lab/redpitaya/soccli.exe"
+Executable File_Debug64 Is Rel = True
+Executable File_Debug64 Rel To = "Project"
+Executable File_Debug64 Rel Path = "soccli.exe"
+Executable File_Debug64 = "/c/Users/rok/Documents/rok/lab/redpitaya/soccli.exe"
+Executable File_Release64 Is Rel = True
+Executable File_Release64 Rel To = "Project"
+Executable File_Release64 Rel Path = "soccli.exe"
+Executable File_Release64 = "/c/Users/rok/Documents/rok/lab/redpitaya/soccli.exe"
+Icon File Is Rel = False
+Icon File = ""
+Application Title = ""
+DLL Exports = "Include File Symbols"
+Use IVI Subdirectories for Import Libraries = False
+Use VXIPNP Subdirectories for Import Libraries = False
+Use Dflt Import Lib Base Name = True
+Where to Copy DLL = "Do not copy"
+Custom Directory to Copy DLL Is Rel = False
+Custom Directory to Copy DLL = ""
+Generate Source Documentation = "None"
+Add Type Lib To DLL = False
+Include Type Lib Help Links = False
+TLB Help Style = "HLP"
+Type Lib FP File Is Rel = False
+Type Lib FP File = ""
+Type Lib Guid = ""
+Runtime Support = "Full Runtime Support"
+Instrument Driver Support Only = False
+Embed Project .UIRs = False
+Generate Map File = False
+
+[External Compiler Support]
+UIR Callbacks File Option = 0
+Using LoadExternalModule = False
+Create Project Symbols File = True
+UIR Callbacks Obj File Is Rel = False
+UIR Callbacks Obj File = ""
+Project Symbols H File Is Rel = False
+Project Symbols H File = ""
+Project Symbols Obj File Is Rel = False
+Project Symbols Obj File = ""
+
+[ActiveX Server Options]
+Specification File Is Rel = False
+Specification File = ""
+Source File Is Rel = False
+Source File = ""
+Include File Is Rel = False
+Include File = ""
+IDL File Is Rel = False
+IDL File = ""
+Register ActiveX Server = False
+
+[Signing Info]
+Sign = False
+Sign Debug Build = False
+Store = ""
+Certificate = ""
+Timestamp URL = ""
+URL = ""
+
+[Manifest Info]
+Embed = False
+
+[tpcSection]
+tpcEnabled = 0
+tpcOverrideEnvironment = 0
+tpcEnabled x64 = 0
+tpcOverrideEnvironment x64 = 0
+
Index: instr/RedPitaya/soccli/redpitaya_gui.uir
===================================================================
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
/instr/RedPitaya/soccli/redpitaya_gui.uir
Property changes:
Deleted: svn:mime-type
## -1 +0,0 ##
-application/octet-stream
\ No newline at end of property
Index: instr/RedPitaya/soccli/soccli.prj
===================================================================
--- instr/RedPitaya/soccli/soccli.prj (revision 225)
+++ instr/RedPitaya/soccli/soccli.prj (nonexistent)
@@ -1,407 +0,0 @@
-[Project Header]
-Version = 1302
-Pathname = "/c/Users/rok/Documents/rok/lab/redpitaya/soccli.prj"
-Project Label = "soccli"
-CVI Dir = "/c/program files (x86)/national instruments/cvi2013"
-CVI Shared Dir = "/C/Program Files (x86)/National Instruments/Shared/CVI"
-CVI Pub Local Dir = "/C/ProgramData/National Instruments/CVI2013"
-CVI Pub Global Dir = "/C/ProgramData/National Instruments/CVI"
-IVI Standard Root Dir = "/C/Program Files (x86)/IVI Foundation/IVI"
-VXIplug&play Framework Dir = "/C/Program Files (x86)/IVI Foundation/VISA/winnt"
-IVI Standard Root 64-bit Dir = "/C/Program Files/IVI Foundation/IVI"
-VXIplug&play Framework 64-bit Dir = "/C/Program Files/IVI Foundation/VISA/win64"
-Number of Files = 3
-Target Type = "Executable"
-Flags = 2064
-Copied From Locked InstrDrv Directory = False
-Copied from VXIPNP Directory = False
-Locked InstrDrv Name = ""
-Don't Display Deploy InstrDrv Dialog = False
-
-[Folders]
-Instrument Files Folder Not Added Yet = True
-Library Files Folder Not Added Yet = True
-Folder 0 = "Source Files"
-FolderEx 0 = "Source Files"
-Folder 1 = "Include Files"
-FolderEx 1 = "Include Files"
-Folder 2 = "User Interface Files"
-FolderEx 2 = "User Interface Files"
-
-[File 0001]
-File Type = "CSource"
-Res Id = 1
-Path Is Rel = True
-Path Rel To = "Project"
-Path Rel Path = "soccli.c"
-Path = "/c/Users/rok/Documents/rok/lab/redpitaya/soccli.c"
-Exclude = False
-Compile Into Object File = False
-Project Flags = 0
-Folder = "Source Files"
-Folder Id = 0
-
-[File 0002]
-File Type = "Include"
-Res Id = 2
-Path Is Rel = True
-Path Rel To = "Project"
-Path Rel Path = "soccli.h"
-Path = "/c/Users/rok/Documents/rok/lab/redpitaya/soccli.h"
-Exclude = False
-Project Flags = 0
-Folder = "Include Files"
-Folder Id = 1
-
-[File 0003]
-File Type = "User Interface Resource"
-Res Id = 3
-Path Is Rel = True
-Path Rel To = "Project"
-Path Rel Path = "redpitaya_gui.uir"
-Path = "/c/Users/rok/Documents/rok/lab/redpitaya/redpitaya_gui.uir"
-Exclude = False
-Project Flags = 0
-Folder = "User Interface Files"
-Folder Id = 2
-
-[Custom Build Configs]
-Num Custom Build Configs = 0
-
-[Default Build Config Debug]
-Config Name = "Debug"
-Is 64-Bit = False
-Is Release = False
-Default Calling Convention = "cdecl"
-Optimization Level = "Optimize for speed (level 2)"
-Require Prototypes = True
-Show Warning IDs in Build Output = False
-Selected Warning Level = "Common"
-Warning List None = ""
-Warning List Common = ""
-Warning List Extended = ""
-Warning List All = ""
-Warning Mode = 0
-Enable Unreferenced Identifiers Warning = True
-Enable Pointer Mismatch Warning = True
-Enable Unreachable Code Warning = True
-Enable Assignment In Conditional Warning = True
-Uninitialized Locals Compile Warning = "Aggressive"
-Require Return Values = True
-Enable C99 Extensions = True
-Enable OpenMP Extensions = False
-Stack Size = 250000
-Stack Reserve = 1048576
-Stack Commit = 4096
-Image Base Address = 4194304
-Image Base Address x64 = 4194304
-Compiler Defines = "/DWIN32_LEAN_AND_MEAN"
-Sign = False
-Sign Store = ""
-Sign Certificate = ""
-Sign Timestamp URL = ""
-Sign URL = ""
-Manifest Embed = False
-Icon File Is Rel = False
-Icon File = ""
-Application Title = ""
-Use IVI Subdirectories for Import Libraries = False
-Use VXIPNP Subdirectories for Import Libraries = False
-Use Dflt Import Lib Base Name = True
-Where to Copy DLL = "Do not copy"
-Custom Directory to Copy DLL Is Rel = False
-Custom Directory to Copy DLL = ""
-Generate Source Documentation = "None"
-Runtime Support = "Full Runtime Support"
-Runtime Binding = "Shared"
-Embed Project .UIRs = False
-Generate Map File = False
-Embed Timestamp = True
-Create Console Application = False
-Using LoadExternalModule = False
-DLL Exports = "Include File Symbols"
-Register ActiveX Server = False
-Add Type Lib To DLL = False
-Include Type Lib Help Links = False
-TLB Help Style = "HLP"
-Type Lib FP File Is Rel = False
-Type Lib FP File = ""
-
-[Default Build Config Release]
-Config Name = "Release"
-Is 64-Bit = False
-Is Release = True
-Default Calling Convention = "cdecl"
-Optimization Level = "Optimize for speed (level 2)"
-Require Prototypes = True
-Show Warning IDs in Build Output = False
-Selected Warning Level = "Common"
-Warning List None = ""
-Warning List Common = ""
-Warning List Extended = ""
-Warning List All = ""
-Warning Mode = 0
-Enable Unreferenced Identifiers Warning = True
-Enable Pointer Mismatch Warning = True
-Enable Unreachable Code Warning = True
-Enable Assignment In Conditional Warning = True
-Uninitialized Locals Compile Warning = "Aggressive"
-Require Return Values = True
-Enable C99 Extensions = True
-Enable OpenMP Extensions = False
-Stack Size = 250000
-Stack Reserve = 1048576
-Stack Commit = 4096
-Image Base Address = 4194304
-Image Base Address x64 = 4194304
-Compiler Defines = "/DWIN32_LEAN_AND_MEAN"
-Sign = False
-Sign Store = ""
-Sign Certificate = ""
-Sign Timestamp URL = ""
-Sign URL = ""
-Manifest Embed = False
-Icon File Is Rel = False
-Icon File = ""
-Application Title = ""
-Use IVI Subdirectories for Import Libraries = False
-Use VXIPNP Subdirectories for Import Libraries = False
-Use Dflt Import Lib Base Name = True
-Where to Copy DLL = "Do not copy"
-Custom Directory to Copy DLL Is Rel = False
-Custom Directory to Copy DLL = ""
-Generate Source Documentation = "None"
-Runtime Support = "Full Runtime Support"
-Runtime Binding = "Shared"
-Embed Project .UIRs = False
-Generate Map File = False
-Embed Timestamp = True
-Create Console Application = False
-Using LoadExternalModule = False
-DLL Exports = "Include File Symbols"
-Register ActiveX Server = False
-Add Type Lib To DLL = False
-Include Type Lib Help Links = False
-TLB Help Style = "HLP"
-Type Lib FP File Is Rel = False
-Type Lib FP File = ""
-
-[Default Build Config Debug64]
-Config Name = "Debug64"
-Is 64-Bit = True
-Is Release = False
-Default Calling Convention = "cdecl"
-Optimization Level = "Optimize for speed (level 2)"
-Require Prototypes = True
-Show Warning IDs in Build Output = False
-Selected Warning Level = "Common"
-Warning List None = ""
-Warning List Common = ""
-Warning List Extended = ""
-Warning List All = ""
-Warning Mode = 0
-Enable Unreferenced Identifiers Warning = True
-Enable Pointer Mismatch Warning = True
-Enable Unreachable Code Warning = True
-Enable Assignment In Conditional Warning = True
-Uninitialized Locals Compile Warning = "Aggressive"
-Require Return Values = True
-Enable C99 Extensions = True
-Enable OpenMP Extensions = False
-Stack Size = 250000
-Stack Reserve = 1048576
-Stack Commit = 4096
-Image Base Address = 4194304
-Image Base Address x64 = 4194304
-Compiler Defines = "/DWIN32_LEAN_AND_MEAN"
-Sign = False
-Sign Store = ""
-Sign Certificate = ""
-Sign Timestamp URL = ""
-Sign URL = ""
-Manifest Embed = False
-Icon File Is Rel = False
-Icon File = ""
-Application Title = ""
-Use IVI Subdirectories for Import Libraries = False
-Use VXIPNP Subdirectories for Import Libraries = False
-Use Dflt Import Lib Base Name = True
-Where to Copy DLL = "Do not copy"
-Custom Directory to Copy DLL Is Rel = False
-Custom Directory to Copy DLL = ""
-Generate Source Documentation = "None"
-Runtime Support = "Full Runtime Support"
-Runtime Binding = "Shared"
-Embed Project .UIRs = False
-Generate Map File = False
-Embed Timestamp = True
-Create Console Application = False
-Using LoadExternalModule = False
-DLL Exports = "Include File Symbols"
-Register ActiveX Server = False
-Add Type Lib To DLL = False
-Include Type Lib Help Links = False
-TLB Help Style = "HLP"
-Type Lib FP File Is Rel = False
-Type Lib FP File = ""
-
-[Default Build Config Release64]
-Config Name = "Release64"
-Is 64-Bit = True
-Is Release = True
-Default Calling Convention = "cdecl"
-Optimization Level = "Optimize for speed (level 2)"
-Require Prototypes = True
-Show Warning IDs in Build Output = False
-Selected Warning Level = "Common"
-Warning List None = ""
-Warning List Common = ""
-Warning List Extended = ""
-Warning List All = ""
-Warning Mode = 0
-Enable Unreferenced Identifiers Warning = True
-Enable Pointer Mismatch Warning = True
-Enable Unreachable Code Warning = True
-Enable Assignment In Conditional Warning = True
-Uninitialized Locals Compile Warning = "Aggressive"
-Require Return Values = True
-Enable C99 Extensions = True
-Enable OpenMP Extensions = False
-Stack Size = 250000
-Stack Reserve = 1048576
-Stack Commit = 4096
-Image Base Address = 4194304
-Image Base Address x64 = 4194304
-Compiler Defines = "/DWIN32_LEAN_AND_MEAN"
-Sign = False
-Sign Store = ""
-Sign Certificate = ""
-Sign Timestamp URL = ""
-Sign URL = ""
-Manifest Embed = False
-Icon File Is Rel = False
-Icon File = ""
-Application Title = ""
-Use IVI Subdirectories for Import Libraries = False
-Use VXIPNP Subdirectories for Import Libraries = False
-Use Dflt Import Lib Base Name = True
-Where to Copy DLL = "Do not copy"
-Custom Directory to Copy DLL Is Rel = False
-Custom Directory to Copy DLL = ""
-Generate Source Documentation = "None"
-Runtime Support = "Full Runtime Support"
-Runtime Binding = "Shared"
-Embed Project .UIRs = False
-Generate Map File = False
-Embed Timestamp = True
-Create Console Application = False
-Using LoadExternalModule = False
-DLL Exports = "Include File Symbols"
-Register ActiveX Server = False
-Add Type Lib To DLL = False
-Include Type Lib Help Links = False
-TLB Help Style = "HLP"
-Type Lib FP File Is Rel = False
-Type Lib FP File = ""
-
-[Compiler Options]
-Default Calling Convention = "cdecl"
-Require Prototypes = True
-Require Return Values = True
-Enable Pointer Mismatch Warning = True
-Enable Unreachable Code Warning = True
-Enable Unreferenced Identifiers Warning = True
-Enable Assignment In Conditional Warning = True
-O Option Compatible With 5.0 = False
-Enable C99 Extensions = True
-Uninitialized Locals Compile Warning = "Aggressive"
-Precompile Prefix Header = False
-Prefix Header File = ""
-
-[Run Options]
-Stack Size = 250000
-Stack Commit = 4096
-Image Base Address = 4194304
-Image Base Address x64 = 4194304
-
-[Compiler Defines]
-Compiler Defines = "/DWIN32_LEAN_AND_MEAN"
-
-[Create Executable]
-Executable File_Debug Is Rel = True
-Executable File_Debug Rel To = "Project"
-Executable File_Debug Rel Path = "soccli.exe"
-Executable File_Debug = "/c/Users/rok/Documents/rok/lab/redpitaya/soccli.exe"
-Executable File_Release Is Rel = True
-Executable File_Release Rel To = "Project"
-Executable File_Release Rel Path = "soccli.exe"
-Executable File_Release = "/c/Users/rok/Documents/rok/lab/redpitaya/soccli.exe"
-Executable File_Debug64 Is Rel = True
-Executable File_Debug64 Rel To = "Project"
-Executable File_Debug64 Rel Path = "soccli.exe"
-Executable File_Debug64 = "/c/Users/rok/Documents/rok/lab/redpitaya/soccli.exe"
-Executable File_Release64 Is Rel = True
-Executable File_Release64 Rel To = "Project"
-Executable File_Release64 Rel Path = "soccli.exe"
-Executable File_Release64 = "/c/Users/rok/Documents/rok/lab/redpitaya/soccli.exe"
-Icon File Is Rel = False
-Icon File = ""
-Application Title = ""
-DLL Exports = "Include File Symbols"
-Use IVI Subdirectories for Import Libraries = False
-Use VXIPNP Subdirectories for Import Libraries = False
-Use Dflt Import Lib Base Name = True
-Where to Copy DLL = "Do not copy"
-Custom Directory to Copy DLL Is Rel = False
-Custom Directory to Copy DLL = ""
-Generate Source Documentation = "None"
-Add Type Lib To DLL = False
-Include Type Lib Help Links = False
-TLB Help Style = "HLP"
-Type Lib FP File Is Rel = False
-Type Lib FP File = ""
-Type Lib Guid = ""
-Runtime Support = "Full Runtime Support"
-Instrument Driver Support Only = False
-Embed Project .UIRs = False
-Generate Map File = False
-
-[External Compiler Support]
-UIR Callbacks File Option = 0
-Using LoadExternalModule = False
-Create Project Symbols File = True
-UIR Callbacks Obj File Is Rel = False
-UIR Callbacks Obj File = ""
-Project Symbols H File Is Rel = False
-Project Symbols H File = ""
-Project Symbols Obj File Is Rel = False
-Project Symbols Obj File = ""
-
-[ActiveX Server Options]
-Specification File Is Rel = False
-Specification File = ""
-Source File Is Rel = False
-Source File = ""
-Include File Is Rel = False
-Include File = ""
-IDL File Is Rel = False
-IDL File = ""
-Register ActiveX Server = False
-
-[Signing Info]
-Sign = False
-Sign Debug Build = False
-Store = ""
-Certificate = ""
-Timestamp URL = ""
-URL = ""
-
-[Manifest Info]
-Embed = False
-
-[tpcSection]
-tpcEnabled = 0
-tpcOverrideEnvironment = 0
-tpcEnabled x64 = 0
-tpcOverrideEnvironment x64 = 0
-
Index: instr/RedPitaya/soccli/soccli.cws
===================================================================
--- instr/RedPitaya/soccli/soccli.cws (revision 225)
+++ instr/RedPitaya/soccli/soccli.cws (nonexistent)
@@ -1,287 +0,0 @@
-[Workspace Header]
-Version = 1302
-Pathname = "/c/Users/rok/Documents/rok/lab/redpitaya/soccli/soccli.cws"
-CVI Dir = "/c/program files (x86)/national instruments/cvi2013"
-CVI Shared Dir = "/C/Program Files (x86)/National Instruments/Shared/CVI"
-CVI Pub Local Dir = "/C/ProgramData/National Instruments/CVI2013"
-CVI Pub Global Dir = "/C/ProgramData/National Instruments/CVI"
-IVI Standard Root Dir = "/C/Program Files (x86)/IVI Foundation/IVI"
-IVI Standard Root 64-bit Dir = "/C/Program Files/IVI Foundation/IVI"
-VXIplug&play Framework Dir = "/C/Program Files (x86)/IVI Foundation/VISA/winnt"
-VXIplug&play Framework 64-bit Dir = "/C/Program Files/IVI Foundation/VISA/win64"
-Number of Projects = 2
-Active Project = 1
-Project 0001 = "soccli.prj"
-Project 0002 = "/c/home/CVI/RedPitaya/RedPitaya.prj"
-Drag Bar Left = 360
-Window Top = 83
-Window Left = 143
-Window Bottom = 792
-Window Right = 1455
-Maximized = False
-Maximized Children = True
-Max32 Number Of Errors = 20
-Track Include File Dependencies = True
-Prompt For Missing Includes = True
-Stop On First Error File = False
-Bring Up Err Win At Start = True
-Bring Up Err Win For Errors = False
-Save Changes Before Running = "Always"
-Save Changes Before Compiling = "Always"
-Hide Windows = False
-Break At First Statement = False
-Sort Type = "File Name"
-Number of Opened Files = 0
-Window Confinement Region Enabled = True
-MainColumnWidth = 343
-FileDateColumnWidth = 70
-FileSizeColumnWidth = 70
-
-[Project Header 0001]
-Version = 1302
-Don't Update DistKit = False
-Platform Code = 4
-Build Configuration = "Debug"
-Warn User If Debugging Release = 1
-Batch Build Release = False
-Batch Build Debug = False
-
-[Project Header 0002]
-Version = 1302
-Don't Update DistKit = False
-Platform Code = 4
-Build Configuration = "Debug"
-Warn User If Debugging Release = 1
-Batch Build Release = False
-Batch Build Debug = False
-
-[File 0001]
-Path = "/c/Users/rok/Documents/rok/lab/redpitaya/soccli/soccli.c"
-File Type = "CSource"
-Disk Date = 3572526558
-In Projects = "1,"
-Window Top = 33
-Window Left = 10
-Source Window State = "1,217,217,217,19,23,23,0,0,0,0,0,0,0,0,0,203,0,224,79,349,595,1,0,"
-
-[File 0002]
-Path = "/c/Users/rok/Documents/rok/lab/redpitaya/soccli/redpitaya_gui.uir"
-File Type = "User Interface Resource"
-Disk Date = 3572500974
-In Projects = "1,"
-Window Top = 64
-Window Left = 26
-Window Height = 232
-Window Width = 595
-
-[File 0003]
-Path = "/c/home/CVI/RedPitaya/RedPitaya.c"
-File Type = "CSource"
-Disk Date = 3572432069
-In Projects = "2,"
-Window Top = 126
-Window Left = 58
-Source Window State = "1,129,129,129,56,66,66,0,0,80,0,0,0,0,0,18,120,0,139,44,258,683,1,0,"
-
-[File 0004]
-Path = "/c/Users/rok/Documents/rok/lab/redpitaya/soccli/soccli.h"
-File Type = "Include"
-Disk Date = 3572249558
-In Projects = "1,"
-Source Window State = "0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,"
-
-[File 0005]
-Path = "/c/home/CVI/RedPitaya/RedPitaya_ui.uir"
-File Type = "User Interface Resource"
-Disk Date = 3570147178
-In Projects = "2,"
-
-[File 0006]
-Path = "/c/home/CVI/RedPitaya/RedPitaya_ui.h"
-File Type = "Include"
-Disk Date = 3570144632
-In Projects = "2,"
-Source Window State = "0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,"
-
-[File 0007]
-Path = "/c/home/CVI/RedPitaya/plottdc.cxx"
-File Type = "Unknown"
-Disk Date = 3570148039
-In Projects = "2,"
-
-[Default Build Config 0001 Debug]
-Generate Browse Info = False
-Enable Uninitialized Locals Runtime Warning = True
-Batch Build = False
-Profile = "Disabled"
-Debugging Level = "Standard"
-Execution Trace = "Disabled"
-Command Line Args = ""
-Working Directory = ""
-Environment Options = ""
-External Process Path = ""
-
-[Default Build Config 0001 Release]
-Generate Browse Info = False
-Enable Uninitialized Locals Runtime Warning = True
-Batch Build = False
-Profile = "Disabled"
-Debugging Level = "Standard"
-Execution Trace = "Disabled"
-Command Line Args = ""
-Working Directory = ""
-Environment Options = ""
-External Process Path = ""
-
-[Default Build Config 0001 Debug64]
-Generate Browse Info = False
-Enable Uninitialized Locals Runtime Warning = True
-Batch Build = False
-Profile = "Disabled"
-Debugging Level = "Standard"
-Execution Trace = "Disabled"
-Command Line Args = ""
-Working Directory = ""
-Environment Options = ""
-External Process Path = ""
-
-[Default Build Config 0001 Release64]
-Generate Browse Info = False
-Enable Uninitialized Locals Runtime Warning = True
-Batch Build = False
-Profile = "Disabled"
-Debugging Level = "Standard"
-Execution Trace = "Disabled"
-Command Line Args = ""
-Working Directory = ""
-Environment Options = ""
-External Process Path = ""
-
-[Build Dependencies 0001]
-Number of Dependencies = 0
-
-[Build Options 0001]
-Generate Browse Info = False
-Enable Uninitialized Locals Runtime Warning = True
-Execution Trace = "Disabled"
-Profile = "Disabled"
-Debugging Level = "Standard"
-Break On Library Errors = True
-Break On First Chance Exceptions = False
-
-[Execution Target 0001]
-Execution Target Address = "Local desktop computer"
-Execution Target Port = 0
-Execution Target Type = 0
-
-[SCC Options 0001]
-Use global settings = True
-SCC Provider = ""
-SCC Project = ""
-Local Path = ""
-Auxiliary Path = ""
-Perform Same Action For .h File As For .uir File = "Ask"
-Perform Same Action For .cds File As For .prj File = "Ask"
-Username = ""
-Comment = ""
-Use Default Username = False
-Use Default Comment = False
-Suppress CVI Error Messages = False
-Always show confirmation dialog = True
-
-[DLL Debugging Support 0001]
-External Process Path = ""
-
-[Command Line Args 0001]
-Command Line Args = ""
-Working Directory = ""
-Environment Options = ""
-
-[Default Build Config 0002 Debug]
-Generate Browse Info = False
-Enable Uninitialized Locals Runtime Warning = True
-Batch Build = False
-Profile = "Disabled"
-Debugging Level = "Standard"
-Execution Trace = "Disabled"
-Command Line Args = ""
-Working Directory = ""
-Environment Options = ""
-External Process Path = ""
-
-[Default Build Config 0002 Release]
-Generate Browse Info = False
-Enable Uninitialized Locals Runtime Warning = True
-Batch Build = False
-Profile = "Disabled"
-Debugging Level = "Standard"
-Execution Trace = "Disabled"
-Command Line Args = ""
-Working Directory = ""
-Environment Options = ""
-External Process Path = ""
-
-[Default Build Config 0002 Debug64]
-Generate Browse Info = False
-Enable Uninitialized Locals Runtime Warning = True
-Batch Build = False
-Profile = "Disabled"
-Debugging Level = "Standard"
-Execution Trace = "Disabled"
-Command Line Args = ""
-Working Directory = ""
-Environment Options = ""
-External Process Path = ""
-
-[Default Build Config 0002 Release64]
-Generate Browse Info = False
-Enable Uninitialized Locals Runtime Warning = True
-Batch Build = False
-Profile = "Disabled"
-Debugging Level = "Standard"
-Execution Trace = "Disabled"
-Command Line Args = ""
-Working Directory = ""
-Environment Options = ""
-External Process Path = ""
-
-[Build Dependencies 0002]
-Number of Dependencies = 0
-
-[Build Options 0002]
-Generate Browse Info = False
-Enable Uninitialized Locals Runtime Warning = True
-Execution Trace = "Disabled"
-Profile = "Disabled"
-Debugging Level = "Standard"
-Break On Library Errors = True
-Break On First Chance Exceptions = False
-
-[Execution Target 0002]
-Execution Target Address = "Local desktop computer"
-Execution Target Port = 0
-Execution Target Type = 0
-
-[SCC Options 0002]
-Use global settings = True
-SCC Provider = ""
-SCC Project = ""
-Local Path = ""
-Auxiliary Path = ""
-Perform Same Action For .h File As For .uir File = "Ask"
-Perform Same Action For .cds File As For .prj File = "Ask"
-Username = ""
-Comment = ""
-Use Default Username = False
-Use Default Comment = False
-Suppress CVI Error Messages = False
-Always show confirmation dialog = True
-
-[DLL Debugging Support 0002]
-External Process Path = ""
-
-[Command Line Args 0002]
-Command Line Args = ""
-Working Directory = ""
-Environment Options = ""
-
Index: instr/RedPitaya/soccli/redpitaya_gui.h
===================================================================
--- instr/RedPitaya/soccli/redpitaya_gui.h (revision 225)
+++ instr/RedPitaya/soccli/redpitaya_gui.h (nonexistent)
@@ -1,67 +0,0 @@
-/**************************************************************************/
-/* LabWindows/CVI User Interface Resource (UIR) Include File */
-/* */
-/* WARNING: Do not add to, delete from, or otherwise modify the contents */
-/* of this include file. */
-/**************************************************************************/
-
-#include <userint.h>
-
-#ifdef __cplusplus
- extern "C" {
-#endif
-
- /* Panels and Controls: */
-
-#define PANEL 1
-#define PANEL_OPENGUI 2 /* control type: command, callback function: OpenGuiCB */
-#define PANEL_EXIT 3 /* control type: command, callback function: ExitCB */
-#define PANEL_STOP 4 /* control type: command, callback function: StopCB */
-#define PANEL_CONNECT 5 /* control type: command, callback function: StartCB */
-#define PANEL_INIT 6 /* control type: command, callback function: StartCB */
-#define PANEL_START 7 /* control type: command, callback function: StartCB */
-#define PANEL_END 8 /* control type: command, callback function: StartCB */
-#define PANEL_IP 9 /* control type: string, callback function: (none) */
-#define PANEL_FILENAME 10 /* control type: string, callback function: (none) */
-#define PANEL_TIMER 11 /* control type: timer, callback function: (none) */
-#define PANEL_TWIN1 12 /* control type: numeric, callback function: (none) */
-#define PANEL_TWIN0 13 /* control type: numeric, callback function: (none) */
-#define PANEL_TRGLEVEL 14 /* control type: numeric, callback function: (none) */
-#define PANEL_TRGDELAY 15 /* control type: numeric, callback function: (none) */
-#define PANEL_RANGE 16 /* control type: numeric, callback function: (none) */
-#define PANEL_PFREQ 17 /* control type: numeric, callback function: (none) */
-#define PANEL_SAMPLES 18 /* control type: numeric, callback function: (none) */
-#define PANEL_NEVE 19 /* control type: numeric, callback function: (none) */
-#define PANEL_CEVE 20 /* control type: numeric, callback function: (none) */
-#define PANEL_DECIMATION 21 /* control type: ring, callback function: (none) */
-#define PANEL_TRIGGER 22 /* control type: ring, callback function: (none) */
-#define PANEL_ENABLEDOUTPUT 23 /* control type: radioButton, callback function: (none) */
-#define PANEL_DEBUG 24 /* control type: radioButton, callback function: (none) */
-#define PANEL_CH1 25 /* control type: radioButton, callback function: (none) */
-#define PANEL_GRAPH 26 /* control type: graph, callback function: (none) */
-#define PANEL_CH0 27 /* control type: radioButton, callback function: (none) */
-#define PANEL_TEXTMSG 28 /* control type: textMsg, callback function: (none) */
-#define PANEL_STDIO 29 /* control type: textBox, callback function: (none) */
-
-
- /* Control Arrays: */
-
- /* (no control arrays in the resource file) */
-
-
- /* Menu Bars, Menus, and Menu Items: */
-
- /* (no menu bars in the resource file) */
-
-
- /* Callback Prototypes: */
-
-int CVICALLBACK ExitCB(int panel, int control, int event, void *callbackData, int eventData1, int eventData2);
-int CVICALLBACK OpenGuiCB(int panel, int control, int event, void *callbackData, int eventData1, int eventData2);
-int CVICALLBACK StartCB(int panel, int control, int event, void *callbackData, int eventData1, int eventData2);
-int CVICALLBACK StopCB(int panel, int control, int event, void *callbackData, int eventData1, int eventData2);
-
-
-#ifdef __cplusplus
- }
-#endif
Index: instr/RedPitaya/soccli/soccli.c
===================================================================
--- instr/RedPitaya/soccli/soccli.c (revision 225)
+++ instr/RedPitaya/soccli/soccli.c (nonexistent)
@@ -1,292 +0,0 @@
-#include "redpitaya_gui.h"
-#include <ansi_c.h>
-#include <tcpsupp.h>
-#include <utility.h>
-#include <cvirte.h>
-#include <userint.h>
-#include "redpitaya_gui.h"
-
-#define NBEFORE 150
-#define MAXSAMPLES 16384
-#define MINTRGDELAY -8192
-
-
-static int panelHandle;
-
-static unsigned int chandle = 0;
-static int tfID;
-int pfreq;
-static int plothandle[2]= {0,0};
-int debug ;
-int initialized = 0;
-#define MAX_THREADS 10
-int nsamples=0;
-float timebins[0XFFFF];
-static CmtThreadPoolHandle poolHandle = 0;
-int ctrl_c=0;
-
-
-int CVICALLBACK SocketCB (unsigned handle, int xType, int errCode, void *callbackData);
-
-
-int main (int argc, char *argv[]) {
- if (InitCVIRTE (0, argv, 0) == 0)
- return -1; /* out of memory */
- if ((panelHandle = LoadPanel (0, "redpitaya_gui.uir", PANEL)) < 0)
- return -1;
-
-
- SetStdioPort (CVI_STDIO_WINDOW);
- SetSleepPolicy(VAL_SLEEP_MORE);
- CmtNewThreadPool (MAX_THREADS, &poolHandle);
-
- DisplayPanel (panelHandle);
- RunUserInterface ();
- DiscardPanel (panelHandle);
- CmtDiscardThreadPool (poolHandle);
- if (chandle!=0) DisconnectFromTCPServer (chandle);
- return 0;
-}
-
-char strbuf[0xFF];
-
-int gLog=0;
-
-int printf(const char *format, ...) {
- va_list aptr;
- int ret;
- FILE *flog;
-
- va_start(aptr, format);
- ret = vsprintf(strbuf, format, aptr);
- va_end(aptr);
- SetCtrlVal(panelHandle,PANEL_STDIO,strbuf);
-
- if (gLog) {
- flog = fopen ("stdio.log", "a");
- fprintf (flog, "%s", strbuf);
- fclose (flog);
- }
- return(ret);
-}
-
-
-int analyse(int neve, unsigned char *cdata) {
-
- int *data = (int *) cdata;
- for (int i=0; i<neve; i++) {
-
- int recid = *data++;
- int chmask = *data++;
- if (recid!=0x2) continue;
- for (int id=0;id<2;id++){
- if ( !(chmask & (1 << id)) ) {
- if (i % pfreq == 0)
- if (plothandle[id]) {
- DeleteGraphPlot (panelHandle, PANEL_GRAPH, plothandle[id], VAL_IMMEDIATE_DRAW);
- plothandle[id] = 0;
- }
- continue;
- }
- if ( id != *(data++) ) printf("Error\n");
- int nsamples = *(data++);
- //printf("nsamples %d\n", nsamples);
-
- if (i % pfreq == 0) {
- const int col[4]= {VAL_RED,VAL_GREEN,VAL_BLUE,VAL_WHITE};
- if (plothandle[id]) DeleteGraphPlot (panelHandle, PANEL_GRAPH, plothandle[id], VAL_IMMEDIATE_DRAW);
- //plothandle[id] = PlotXY (panelHandle, PANEL_GRAPH, timebins, (float *) data, nsamples, VAL_FLOAT, VAL_FLOAT, VAL_THIN_LINE, VAL_NO_POINT, VAL_SOLID, 1, col[id]);
-
- plothandle[id] = PlotXY (panelHandle, PANEL_GRAPH, timebins, data, nsamples, VAL_FLOAT, VAL_INTEGER, VAL_THIN_LINE, VAL_NO_POINT, VAL_SOLID, 1, col[id]);
-
- if (debug) for (int k=0; k<10; k++) printf("%d %d (%f , %d)\n", id,k, timebins[k],data[k]);
- }
- data+=nsamples;
-
- }
- recid = *data++;
- int event = *data++;
- //printf("recid %d event %d\n",recid, event );
- }
-
- return 0;
-}
-
-unsigned char data[100000000];
-int *idata = (int *) &data[0];
-
-static int ncalls = 0;
-
-int CVICALLBACK SocketCB (unsigned handle, int xType, int errCode, void *callbackData) {
-
- int nb = 0 ;
- static int event = 0;
- unsigned char cmd;
- switch (xType) {
- case TCP_DISCONNECT:
- printf("TCP_DISCONNECT ErrorString %s\n",GetTCPErrorString(errCode));
- printf("TCP_DISCONNECT SystemErrorString %s\n",GetTCPSystemErrorString());
- //DisconnectFromTCPServer (&chandle);
- chandle = 0;
- break;
- case TCP_DATAREADY: {
- printf("Data Ready \n");
- nb = ClientTCPRead(handle,&cmd,1,1000);
- printf("Server Response = %d\n", cmd);
- int hdr[3]= {0,0,0};
-
- switch (cmd) {
- case 1: // init finished
- initialized = 1;
- break;
- case 2:
- break;
- case 3: // data ready
- cmd = 4;
- ClientTCPWrite(handle,&cmd,1,5000); // read
- break;
- case 4:// read
- {
- ClientTCPRead(handle,&hdr[0],12,5000);
- int neve = hdr[1];
- printf("Client: Data received: %d, %d, %d\n", hdr[0], neve, hdr[2]);
- int size = hdr[0]-12;
- nb = 0;
- while (nb < size) {
- int retval = ClientTCPRead(handle,&data[nb],size-nb,5000);
- if (retval<1) break;
- nb += retval;
- }
- printf("Read nb = %d size %d\n", nb, size);
- analyse(neve, data);
- if (ctrl_c==0) StartCB (panelHandle, PANEL_START,EVENT_COMMIT,NULL, 0, 0 );
-
- }
-
- break;
- default:
- printf("Unknown command = %d\n", cmd);
- break;
- }
- break;
-
- }
- }
- return 0;
-}
-
-
-
-int CVICALLBACK StartCB (int panel, int control, int event,
- void *callbackData, int eventData1, int eventData2) {
- char msg[0xFF];
- char ip[0xFF];
- int *hdr = (int *)&msg[1] ;
- unsigned short *sbuff = (unsigned short *)&msg[1] ;
- unsigned char *cbuff = (unsigned char *)&msg[1] ;
- int imask[2];
- unsigned char mask;
- unsigned char trigger;
- unsigned short nsamples;
- unsigned short delay;
- unsigned short decimation;
- unsigned short neve;
- switch (event) {
- case EVENT_COMMIT: {
- ncalls = 0;
- GetCtrlVal(panel,PANEL_IP, ip);
- GetCtrlVal(panel,PANEL_TRIGGER, &trigger);
- GetCtrlVal(panel,PANEL_SAMPLES, &nsamples);
- GetCtrlVal(panel,PANEL_DECIMATION,&decimation);
- GetCtrlVal(panel,PANEL_NEVE , &neve);
- GetCtrlVal(panel,PANEL_CH0 , &imask[0] );
- GetCtrlVal(panel,PANEL_CH1 , &imask[1] );
- GetCtrlVal(panel,PANEL_PFREQ , &pfreq);
- GetCtrlVal(panel,PANEL_DEBUG , &debug);
- delay= MINTRGDELAY + nsamples - NBEFORE + 1;
- delay= nsamples - NBEFORE + 1;
- mask = 0;
- for (int i=0; i<2; i++) {
- if (imask[i]) mask |= (1<<i);
- }
-
- double level =0;
- GetCtrlVal(panel,PANEL_TRGLEVEL , &level);
-
-
- switch (control) {
- case PANEL_CONNECT:
- ConnectToTCPServerEx (&chandle, 9930, ip, SocketCB, NULL, 0, TCP_ANY_LOCAL_PORT);
- break;
- case PANEL_INIT:
- ctrl_c=0;
- msg[0] = 1;
- hdr[0] = delay;
- hdr[1] = decimation;
- hdr[2] = level * 1000;
- ClientTCPWrite(chandle,&msg[0],13,5000); // init
- break;
- case PANEL_START:
- msg[0] = 3;
- sbuff[0] = neve;
- sbuff[1] = nsamples;
- sbuff[2] = 1000; //tout
- cbuff[6] = trigger;
- cbuff[7] = mask;
- ClientTCPWrite(chandle,&msg[0],9,5000); // acquire
-
- break;
-
- case PANEL_END:
- msg[0] = 0;
-
- ClientTCPWrite(chandle,&msg[0],1,5000); // disconnect
- chandle = 0;
- break;
- default:
- printf("Unknown command\n");
- break;
- }
-
-
- for (int i=0; i<nsamples; i++) timebins[i]=i*8*decimation/1000.;
-
- ProcessSystemEvents ();
- break;
- }
- }
- return 0;
-}
-
-
-
-int CVICALLBACK OpenGuiCB (int panel, int control, int event,
- void *callbackData, int eventData1, int eventData2) {
- switch (event) {
- case EVENT_COMMIT:
-
- break;
- }
- return 0;
-}
-
-int CVICALLBACK ExitCB (int panel, int control, int event,
- void *callbackData, int eventData1, int eventData2) {
- switch (event) {
- case EVENT_COMMIT:
- QuitUserInterface(0);
- break;
- }
- return 0;
-}
-
-int CVICALLBACK StopCB (int panel, int control, int event,
- void *callbackData, int eventData1, int eventData2) {
- switch (event) {
- case EVENT_COMMIT:
- //if (chandle != 0)
- ctrl_c=1;
- break;
- }
- return 0;
-}
Index: instr/RedPitaya/soccli/soccli.h
===================================================================
--- instr/RedPitaya/soccli/soccli.h (revision 225)
+++ instr/RedPitaya/soccli/soccli.h (nonexistent)
@@ -1,41 +0,0 @@
-//==============================================================================
-//
-// Title: soccli.h
-// Purpose: A short description of the interface.
-//
-// Created on: 3/13/2017 at 12:32:38 PM by rok.
-// Copyright: . All Rights Reserved.
-//
-//==============================================================================
-
-#ifndef __soccli_H__
-#define __soccli_H__
-
-#ifdef __cplusplus
- extern "C" {
-#endif
-
-//==============================================================================
-// Include files
-
-#include "cvidef.h"
-
-//==============================================================================
-// Constants
-
-//==============================================================================
-// Types
-
-//==============================================================================
-// External variables
-
-//==============================================================================
-// Global functions
-
-int Declare_Your_Functions_Here (int x);
-
-#ifdef __cplusplus
- }
-#endif
-
-#endif /* ndef __soccli_H__ */