Subversion Repositories f9daq

Compare Revisions

Ignore whitespace Rev 352 → Rev 353

/cvi/apps/fourier.exe
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes:
Deleted: svn:mime-type
## -1 +0,0 ##
-application/octet-stream
\ No newline at end of property
Index: apps/fourier.c
===================================================================
--- apps/fourier.c (revision 352)
+++ apps/fourier.c (nonexistent)
@@ -1,343 +0,0 @@
-#include <cvirte.h>
-#include <userint.h>
-#include "fourier.h"
-#include <utility.h>
-#include <ansi_c.h>
-#include <rs232.h>
-
-int read_term_index;
-int read_term;
-int read_cnt;
-int bytes_read;
-
-int pCOM1;
-int pCOM2;
-
-
-#define TEXT_LENGTH 2000
-char read_data[TEXT_LENGTH];
-char read_data2[TEXT_LENGTH];
-
-static int panel;
-#define MAX_THREADS 10
-
-static CmtThreadPoolHandle poolHandle = 0;
-void SetDimming(int state) {
-
- SetCtrlAttribute (panel, p1_START, ATTR_DIMMED, state);
- SetCtrlAttribute (panel, p1_EXIT, ATTR_DIMMED, state);
- SetCtrlAttribute (panel, p1_STOP, ATTR_DIMMED, state);
-
-}
-
-
-
-
-
-
-
-
-
-int main (int argc, char *argv[])
-{
- SetStdioPort (CVI_STDIO_WINDOW);
- SetStdioWindowOptions (10000, 0, 0);
- SetStdioWindowVisibility(1);
- if (InitCVIRTE (0, argv, 0) == 0)
- return -1; /* out of memory */
- if ((panel= LoadPanel (0, "fourier.uir", p1)) < 0)
- return -1;
- //CmtNewThreadPool (MAX_THREADS, &poolHandle);
- DisplayPanel (panel);
- SetDimming(0);
- //StartCB(panel, 0, EVENT_COMMIT, NULL, 0 ,0);
- RunUserInterface ();
- DiscardPanel (panel);
- 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:
- CloseCom(pCOM1);
- CloseCom(pCOM2);
- break;
- }
- return 0;
-}
-
-
-
-/* Callback Function */
-void ComCallback1(int portNumber, int eventMask, void *callbackdata) {
-
- if (eventMask & LWRS_RXFLAG) {
-//printf("Received specified character\n");
- int strLen = GetInQLen (pCOM1);
- bytes_read = ComRd (pCOM1, read_data, strLen);
- float voltage;
- sscanf(read_data,"%f",&voltage);
- //printf("%f %d %d#%s#", temp,state[0], state[1], read_data);
- int RS232Error = ReturnRS232Err ();
- if (ReturnRS232Err ()) {
- sprintf(read_data,"#%s\n", GetRS232ErrorString(RS232Error));
- MessagePopup("RS232Err",read_data);
- } else {
- //float ohm;
- //double tset;
-
- //char onoff;
- //double Voltage, Current;
- //char cres[200];
- //int i=0;
- //int onoff1 = 0;
- SetCtrlVal(panel, p1_VMON, voltage);
-
-
-
- //Voltage =K617_vsource_get();
- //Current =K617_get(cres,&i);
- //K617_vsource_set(vset);
- //K617_vsource_operate(onoff1);
- //SetCtrlVal(pa,PA_VOLTAGE,Voltage);
- //SetCtrlVal(pa,PA_CURRENT,Current);
-
- PlotStripChart (panel, p1_GRAPH, &voltage, 1, 0, 0, VAL_FLOAT);
-
-
-
-
-
- }
- }
-
- if (eventMask & LWRS_TXEMPTY) printf("Transmit queue now empty\n");
-
- if (eventMask & LWRS_RECEIVE) {
-
- printf("50 or more bytes in input queue\n");
-
- }
-
-}
-
-int pozicija = 0;
-
-int SetPosition(int pos){
- int nb=0;
- char str[20];
- sprintf(str, "X%d\n", pos);
- int len = strlen(str);
- nb = ComWrt (pCOM2, str, len);
- return nb;
-}
-
-float vx = 100.0;
-
-int SetSpeed(float v){
- int nb = 0;
- char vxset[20];
- sprintf(vxset, "$110=%.2f\n", v);
-
- printf("Speed %s", vxset);
- int len1 = strlen(vxset);
- nb = ComWrt (pCOM2, vxset, len1);
- return nb;
-}
-
-
-int first = 1;
-
-
-
-/* Callback Function */
-void ComCallback2(int portNumber, int eventMask, void *callbackdata) {
-
- if (eventMask & LWRS_RXFLAG) {
-//printf("Received specified character\n");
- int strLen = GetInQLen (pCOM2);
- bytes_read = ComRd (pCOM2, read_data2, strLen);
- printf("%s\n", read_data2);
-
-
- if(first){
- SetSpeed(100.00);
-
-
- first = 0;
- }
-
-
-
-
- GetCtrlVal(panel,p1_POZICIJA, &pozicija);
-
- SetPosition(pozicija);
-
-
-
-
-
- //printf("%f %d %d#%s#", temp,state[0], state[1], read_data);
- int RS232Error = ReturnRS232Err ();
- if (ReturnRS232Err ()) {
- sprintf(read_data2,"#%s\n", GetRS232ErrorString(RS232Error));
- MessagePopup("RS232Err",read_data2);
- } else {
- //float ohm;
- //double tset;
-
- //char onoff;
- //double Voltage, Current;
- //char cres[200];
- //int i=0;
- //int onoff1 = 0;
- //SetCtrlVal(panel, p1_VMON, voltage);
-
-
-
- //Voltage =K617_vsource_get();
- //Current =K617_get(cres,&i);
- //K617_vsource_set(vset);
- //K617_vsource_operate(onoff1);
- //SetCtrlVal(pa,PA_VOLTAGE,Voltage);
- //SetCtrlVal(pa,PA_CURRENT,Current);
-
- //PlotStripChart (panel, p1_GRAPH, &voltage, 1, 0, 0, VAL_FLOAT);
-
-
-
-
-
- }
- }
-
- //if (eventMask & LWRS_TXEMPTY) printf("Transmit queue now empty\n");
-
- if (eventMask & LWRS_RECEIVE) {
-
- printf("50 or more bytes in input queue\n");
-
- }
-
-}
-
-
-int CVICALLBACK StartCB (int panel, int control, int event,
- void *callbackData, int eventData1, int eventData2)
-{
-int ierr;
-int ierr2;
-
- switch (event) {
- case EVENT_COMMIT:
-
-
- first = 1;
- GetCtrlVal(panel,p1_COM1,&pCOM1);
- GetCtrlVal(panel,p1_COM2,&pCOM2);
-
-
- //printf("%d %d\n", pCOM1, pCOM2);
- ierr = OpenComConfig (pCOM1, "", 115200, 0, 8, 1, 512, 512);
- /* Turn off Hardware handshaking (loopback test will not function with it on) */
- SetCTSMode (pCOM1, LWRS_HWHANDSHAKE_OFF);
-
- /* Make sure Serial buffers are empty */
- FlushInQ (pCOM1);
- FlushOutQ (pCOM1);
-
- int notifyCount1 = 50; /* Wait for at least 50 bytes in queue. */
- int eventChar1 = 10; /* Wait for LF. */
- int eventMask1 = LWRS_RXFLAG | LWRS_TXEMPTY | LWRS_RECEIVE;
-
- ierr2 = OpenComConfig (pCOM2, "", 115200, 0, 8, 1, 512, 512);
- /* Turn off Hardware handshaking (loopback test will not function with it on) */
- SetCTSMode (pCOM2, LWRS_HWHANDSHAKE_OFF);
-
- printf("ierr %d %d\n", ierr, ierr2);
-
-
- /* Make sure Serial buffers are empty */
- FlushInQ (pCOM2);
- FlushOutQ (pCOM2);
-
- int notifyCount2 = 50; /* Wait for at least 50 bytes in queue. */
- int eventChar2 = 10; /* Wait for LF. */
- int eventMask2 = LWRS_RXFLAG | LWRS_TXEMPTY | LWRS_RECEIVE;
-
-
-
-
-
- //InstallComCallback (pCOM1, eventMask1, notifyCount1, eventChar1, ComCallback1, NULL);
- InstallComCallback (pCOM2, eventMask2, notifyCount2, eventChar2, ComCallback2, NULL);
-
-
-
-
- break;
- }
- return 0;
-}
-
-
-
-
-
-int CVICALLBACK GoToEndCB (int panel, int control, int event,
- void *callbackData, int eventData1, int eventData2)
-{
- switch (event)
- {
- case EVENT_COMMIT:
-
- break;
- }
- return 0;
-}
-
-int CVICALLBACK GoToZeroCB (int panel, int control, int event,
- void *callbackData, int eventData1, int eventData2)
-{
- switch (event)
- {
- case EVENT_COMMIT:
- int nb = 0;
-
- nb = ComWrt (pCOM2, "X0\n", 4);
- return nb;
- break;
- }
- return 0;
-}
-
-int CVICALLBACK ResetCB (int panel, int control, int event,
- void *callbackData, int eventData1, int eventData2)
-{
- switch (event)
- {
- case EVENT_COMMIT:
-
- break;
- }
- return 0;
-}
-
-
Index: apps/fourier.h
===================================================================
--- apps/fourier.h (revision 352)
+++ apps/fourier.h (nonexistent)
@@ -1,59 +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 p1 1
-#define p1_EXIT 2 /* control type: command, callback function: ExitCB */
-#define p1_STOP 3 /* control type: command, callback function: StopCB */
-#define p1_GOTOEND 4 /* control type: command, callback function: GoToEndCB */
-#define p1_GOTOZERO 5 /* control type: command, callback function: GoToZeroCB */
-#define p1_RESET 6 /* control type: command, callback function: ResetCB */
-#define p1_START 7 /* control type: command, callback function: StartCB */
-#define p1_COM1 8 /* control type: numeric, callback function: (none) */
-#define p1_VMON 9 /* control type: numeric, callback function: (none) */
-#define p1_COM2 10 /* control type: numeric, callback function: (none) */
-#define p1_GRAPH 11 /* control type: strip, callback function: (none) */
-#define p1_SPLITTER_2 12 /* control type: splitter, callback function: (none) */
-#define p1_SPLITTER 13 /* control type: splitter, callback function: (none) */
-#define p1_SPLITTER_4 14 /* control type: splitter, callback function: (none) */
-#define p1_SPLITTER_3 15 /* control type: splitter, callback function: (none) */
-#define p1_RAZDALJA 16 /* control type: numeric, callback function: (none) */
-#define p1_HITROSTX 17 /* control type: numeric, callback function: (none) */
-#define p1_STOPPOS 18 /* control type: numeric, callback function: (none) */
-#define p1_STARTPOS 19 /* control type: numeric, callback function: (none) */
-#define p1_POZICIJA 20 /* control type: numeric, callback function: (none) */
-
-
- /* Control Arrays: */
-
-#define CTRLARRAY 1
-
- /* 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 GoToEndCB(int panel, int control, int event, void *callbackData, int eventData1, int eventData2);
-int CVICALLBACK GoToZeroCB(int panel, int control, int event, void *callbackData, int eventData1, int eventData2);
-int CVICALLBACK ResetCB(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: apps/fourier.prj
===================================================================
--- apps/fourier.prj (revision 352)
+++ apps/fourier.prj (nonexistent)
@@ -1,419 +0,0 @@
-[Project Header]
-Version = 1302
-Pathname = "/c/home/Fourier/fourier.prj"
-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 = 2
-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]
-Include Files Folder Not Added Yet = True
-Instrument Files Folder Not Added Yet = True
-Library Files Folder Not Added Yet = True
-Folder 0 = "User Interface Files"
-FolderEx 0 = "User Interface Files"
-Folder 1 = "Source Files"
-FolderEx 1 = "Source Files"
-
-[File 0001]
-File Type = "User Interface Resource"
-Res Id = 1
-Path Is Rel = True
-Path Rel To = "Project"
-Path Rel Path = "fourier.uir"
-Path = "/c/home/Fourier/fourier.uir"
-Exclude = False
-Project Flags = 0
-Folder = "User Interface Files"
-Folder Id = 0
-
-[File 0002]
-File Type = "CSource"
-Res Id = 2
-Path Is Rel = True
-Path Rel To = "Project"
-Path Rel Path = "fourier.c"
-Path = "/c/home/Fourier/fourier.c"
-Exclude = False
-Compile Into Object File = False
-Project Flags = 0
-Folder = "Source Files"
-Folder Id = 1
-
-[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
-Numeric File Version = "1,0,0,0"
-Numeric Prod Version = "1,0,0,0"
-Comments = ""
-Comments Ex = ""
-Company Name = ""
-Company Name Ex = "%company"
-File Description = "fourier (Debug x86)"
-File Description Ex = "%application (%rel_dbg %arch)"
-File Version = "1.0"
-File Version Ex = "%f1.%f2"
-Internal Name = "fourier"
-Internal Name Ex = "%basename"
-Legal Copyright = "Copyright © 2018"
-Legal Copyright Ex = "Copyright © %company %Y"
-Legal Trademarks = ""
-Legal Trademarks Ex = ""
-Original Filename = "fourier.exe"
-Original Filename Ex = "%filename"
-Private Build = ""
-Private Build Ex = ""
-Product Name = " fourier"
-Product Name Ex = "%company %application"
-Product Version = "1.0"
-Product Version Ex = "%p1.%p2"
-Special Build = ""
-Special Build Ex = ""
-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 = False
-Enable Pointer Mismatch Warning = False
-Enable Unreachable Code Warning = False
-Enable Unreferenced Identifiers Warning = False
-Enable Assignment In Conditional Warning = False
-O Option Compatible With 5.0 = False
-Enable C99 Extensions = True
-Uninitialized Locals Compile Warning = "Disabled"
-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 = "fourier.exe"
-Executable File_Debug = "/c/home/Fourier/fourier.exe"
-Executable File_Release Is Rel = True
-Executable File_Release Rel To = "Project"
-Executable File_Release Rel Path = "fourier.exe"
-Executable File_Release = "/c/home/Fourier/fourier.exe"
-Executable File_Debug64 Is Rel = True
-Executable File_Debug64 Rel To = "Project"
-Executable File_Debug64 Rel Path = "fourier.exe"
-Executable File_Debug64 = "/c/home/Fourier/fourier.exe"
-Executable File_Release64 Is Rel = True
-Executable File_Release64 Rel To = "Project"
-Executable File_Release64 Rel Path = "fourier.exe"
-Executable File_Release64 = "/c/home/Fourier/fourier.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: apps/fourier.cws
===================================================================
--- apps/fourier.cws (revision 352)
+++ apps/fourier.cws (nonexistent)
@@ -1,205 +0,0 @@
-[Workspace Header]
-Version = 1302
-Pathname = "/c/home/Fourier/fourier.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 = 1
-Active Project = 1
-Project 0001 = "fourier.prj"
-Drag Bar Left = 320
-Window Top = 147
-Window Left = 287
-Window Bottom = 936
-Window Right = 1979
-Maximized = True
-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 = 6
-Window Confinement Region Enabled = True
-MainColumnWidth = 303
-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
-
-[File 0001]
-Path = "/c/home/Fourier/fourier.uir"
-File Type = "User Interface Resource"
-Disk Date = 3629705820
-In Projects = "1,"
-Window Top = 33
-Window Left = 10
-Window Height = 427
-Window Width = 768
-Window Z-Order = 2
-
-[File 0002]
-Path = "/c/home/Fourier/fourier.c"
-File Type = "CSource"
-Disk Date = 3629707155
-In Projects = "1,"
-Window Top = 405
-Window Left = 202
-Window Z-Order = 1
-Source Window State = "1,248,249,248,66,66,66,0,0,173,0,161,0,0,0,46,155,0,182,36,427,768,1,40,"
-
-[File 0003]
-Path = "/c/home/cvi/apps/TempCtrl/TempCtrl.c"
-File Type = "CSource"
-Disk Date = 3615354561
-In Projects = ""
-Window Top = 157
-Window Left = 74
-Window Z-Order = 5
-Source Window State = "1,0,0,0,0,0,0,0,0,80,0,0,0,0,0,25,124,0,246,36,427,768,1,0,"
-
-[File 0004]
-Path = "/c/home/cvi/apps/TempCtrl/TempCtrl.uir"
-File Type = "User Interface Resource"
-Disk Date = 3615354561
-In Projects = ""
-Window Top = 188
-Window Left = 90
-Window Height = 427
-Window Width = 768
-Window Z-Order = 6
-
-[File 0005]
-Path = "/c/home/cvi/instr/TempControllerSwitch/arduino_monitor.c"
-File Type = "CSource"
-Disk Date = 3627898504
-In Projects = ""
-Window Top = 281
-Window Left = 138
-Window Z-Order = 3
-Source Window State = "1,611,613,611,15,29,15,0,0,80,0,0,0,0,0,25,592,0,612,38,427,768,1,0,"
-
-[File 0006]
-Path = "/c/Program Files (x86)/National Instruments/CVI2013/include/rs232.h"
-File Type = "Include"
-Disk Date = 3486495600
-In Projects = ""
-Window Top = 95
-Window Left = 42
-Window Z-Order = 4
-Source Window State = "1,60,60,60,12,21,21,0,3,80,0,0,0,0,0,25,48,0,60,12,427,768,1,0,"
-
-[Tab Order]
-Tab 0001 = "/c/home/Fourier/fourier.uir"
-Tab 0002 = "/c/home/Fourier/fourier.c"
-Tab 0003 = "/c/home/cvi/apps/TempCtrl/TempCtrl.c"
-Tab 0004 = "/c/home/cvi/apps/TempCtrl/TempCtrl.uir"
-Tab 0005 = "/c/home/cvi/instr/TempControllerSwitch/arduino_monitor.c"
-Tab 0006 = "/c/Program Files (x86)/National Instruments/CVI2013/include/rs232.h"
-
-[Default Build Config 0001 Debug]
-Generate Browse Info = True
-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 = True
-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 = True
-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 = True
-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 = True
-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 = ""
-
Index: apps/fourier.uir
===================================================================
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
/apps/fourier.uir
Property changes:
Deleted: svn:mime-type
## -1 +0,0 ##
-application/octet-stream
\ No newline at end of property
Index: apps/FMF-FFT-P5/fourier.c
===================================================================
--- apps/FMF-FFT-P5/fourier.c (nonexistent)
+++ apps/FMF-FFT-P5/fourier.c (revision 353)
@@ -0,0 +1,343 @@
+#include <cvirte.h>
+#include <userint.h>
+#include "fourier.h"
+#include <utility.h>
+#include <ansi_c.h>
+#include <rs232.h>
+
+int read_term_index;
+int read_term;
+int read_cnt;
+int bytes_read;
+
+int pCOM1;
+int pCOM2;
+
+
+#define TEXT_LENGTH 2000
+char read_data[TEXT_LENGTH];
+char read_data2[TEXT_LENGTH];
+
+static int panel;
+#define MAX_THREADS 10
+
+static CmtThreadPoolHandle poolHandle = 0;
+void SetDimming(int state) {
+
+ SetCtrlAttribute (panel, p1_START, ATTR_DIMMED, state);
+ SetCtrlAttribute (panel, p1_EXIT, ATTR_DIMMED, state);
+ SetCtrlAttribute (panel, p1_STOP, ATTR_DIMMED, state);
+
+}
+
+
+
+
+
+
+
+
+
+int main (int argc, char *argv[])
+{
+ SetStdioPort (CVI_STDIO_WINDOW);
+ SetStdioWindowOptions (10000, 0, 0);
+ SetStdioWindowVisibility(1);
+ if (InitCVIRTE (0, argv, 0) == 0)
+ return -1; /* out of memory */
+ if ((panel= LoadPanel (0, "fourier.uir", p1)) < 0)
+ return -1;
+ //CmtNewThreadPool (MAX_THREADS, &poolHandle);
+ DisplayPanel (panel);
+ SetDimming(0);
+ //StartCB(panel, 0, EVENT_COMMIT, NULL, 0 ,0);
+ RunUserInterface ();
+ DiscardPanel (panel);
+ 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:
+ CloseCom(pCOM1);
+ CloseCom(pCOM2);
+ break;
+ }
+ return 0;
+}
+
+
+
+/* Callback Function */
+void ComCallback1(int portNumber, int eventMask, void *callbackdata) {
+
+ if (eventMask & LWRS_RXFLAG) {
+//printf("Received specified character\n");
+ int strLen = GetInQLen (pCOM1);
+ bytes_read = ComRd (pCOM1, read_data, strLen);
+ float voltage;
+ sscanf(read_data,"%f",&voltage);
+ //printf("%f %d %d#%s#", temp,state[0], state[1], read_data);
+ int RS232Error = ReturnRS232Err ();
+ if (ReturnRS232Err ()) {
+ sprintf(read_data,"#%s\n", GetRS232ErrorString(RS232Error));
+ MessagePopup("RS232Err",read_data);
+ } else {
+ //float ohm;
+ //double tset;
+
+ //char onoff;
+ //double Voltage, Current;
+ //char cres[200];
+ //int i=0;
+ //int onoff1 = 0;
+ SetCtrlVal(panel, p1_VMON, voltage);
+
+
+
+ //Voltage =K617_vsource_get();
+ //Current =K617_get(cres,&i);
+ //K617_vsource_set(vset);
+ //K617_vsource_operate(onoff1);
+ //SetCtrlVal(pa,PA_VOLTAGE,Voltage);
+ //SetCtrlVal(pa,PA_CURRENT,Current);
+
+ PlotStripChart (panel, p1_GRAPH, &voltage, 1, 0, 0, VAL_FLOAT);
+
+
+
+
+
+ }
+ }
+
+ if (eventMask & LWRS_TXEMPTY) printf("Transmit queue now empty\n");
+
+ if (eventMask & LWRS_RECEIVE) {
+
+ printf("50 or more bytes in input queue\n");
+
+ }
+
+}
+
+int pozicija = 0;
+
+int SetPosition(int pos){
+ int nb=0;
+ char str[20];
+ sprintf(str, "X%d\n", pos);
+ int len = strlen(str);
+ nb = ComWrt (pCOM2, str, len);
+ return nb;
+}
+
+float vx = 100.0;
+
+int SetSpeed(float v){
+ int nb = 0;
+ char vxset[20];
+ sprintf(vxset, "$110=%.2f\n", v);
+
+ printf("Speed %s", vxset);
+ int len1 = strlen(vxset);
+ nb = ComWrt (pCOM2, vxset, len1);
+ return nb;
+}
+
+
+int first = 1;
+
+
+
+/* Callback Function */
+void ComCallback2(int portNumber, int eventMask, void *callbackdata) {
+
+ if (eventMask & LWRS_RXFLAG) {
+//printf("Received specified character\n");
+ int strLen = GetInQLen (pCOM2);
+ bytes_read = ComRd (pCOM2, read_data2, strLen);
+ printf("%s\n", read_data2);
+
+
+ if(first){
+ SetSpeed(100.00);
+
+
+ first = 0;
+ }
+
+
+
+
+ GetCtrlVal(panel,p1_POZICIJA, &pozicija);
+
+ SetPosition(pozicija);
+
+
+
+
+
+ //printf("%f %d %d#%s#", temp,state[0], state[1], read_data);
+ int RS232Error = ReturnRS232Err ();
+ if (ReturnRS232Err ()) {
+ sprintf(read_data2,"#%s\n", GetRS232ErrorString(RS232Error));
+ MessagePopup("RS232Err",read_data2);
+ } else {
+ //float ohm;
+ //double tset;
+
+ //char onoff;
+ //double Voltage, Current;
+ //char cres[200];
+ //int i=0;
+ //int onoff1 = 0;
+ //SetCtrlVal(panel, p1_VMON, voltage);
+
+
+
+ //Voltage =K617_vsource_get();
+ //Current =K617_get(cres,&i);
+ //K617_vsource_set(vset);
+ //K617_vsource_operate(onoff1);
+ //SetCtrlVal(pa,PA_VOLTAGE,Voltage);
+ //SetCtrlVal(pa,PA_CURRENT,Current);
+
+ //PlotStripChart (panel, p1_GRAPH, &voltage, 1, 0, 0, VAL_FLOAT);
+
+
+
+
+
+ }
+ }
+
+ //if (eventMask & LWRS_TXEMPTY) printf("Transmit queue now empty\n");
+
+ if (eventMask & LWRS_RECEIVE) {
+
+ printf("50 or more bytes in input queue\n");
+
+ }
+
+}
+
+
+int CVICALLBACK StartCB (int panel, int control, int event,
+ void *callbackData, int eventData1, int eventData2)
+{
+int ierr;
+int ierr2;
+
+ switch (event) {
+ case EVENT_COMMIT:
+
+
+ first = 1;
+ GetCtrlVal(panel,p1_COM1,&pCOM1);
+ GetCtrlVal(panel,p1_COM2,&pCOM2);
+
+
+ //printf("%d %d\n", pCOM1, pCOM2);
+ ierr = OpenComConfig (pCOM1, "", 115200, 0, 8, 1, 512, 512);
+ /* Turn off Hardware handshaking (loopback test will not function with it on) */
+ SetCTSMode (pCOM1, LWRS_HWHANDSHAKE_OFF);
+
+ /* Make sure Serial buffers are empty */
+ FlushInQ (pCOM1);
+ FlushOutQ (pCOM1);
+
+ int notifyCount1 = 50; /* Wait for at least 50 bytes in queue. */
+ int eventChar1 = 10; /* Wait for LF. */
+ int eventMask1 = LWRS_RXFLAG | LWRS_TXEMPTY | LWRS_RECEIVE;
+
+ ierr2 = OpenComConfig (pCOM2, "", 115200, 0, 8, 1, 512, 512);
+ /* Turn off Hardware handshaking (loopback test will not function with it on) */
+ SetCTSMode (pCOM2, LWRS_HWHANDSHAKE_OFF);
+
+ printf("ierr %d %d\n", ierr, ierr2);
+
+
+ /* Make sure Serial buffers are empty */
+ FlushInQ (pCOM2);
+ FlushOutQ (pCOM2);
+
+ int notifyCount2 = 50; /* Wait for at least 50 bytes in queue. */
+ int eventChar2 = 10; /* Wait for LF. */
+ int eventMask2 = LWRS_RXFLAG | LWRS_TXEMPTY | LWRS_RECEIVE;
+
+
+
+
+
+ //InstallComCallback (pCOM1, eventMask1, notifyCount1, eventChar1, ComCallback1, NULL);
+ InstallComCallback (pCOM2, eventMask2, notifyCount2, eventChar2, ComCallback2, NULL);
+
+
+
+
+ break;
+ }
+ return 0;
+}
+
+
+
+
+
+int CVICALLBACK GoToEndCB (int panel, int control, int event,
+ void *callbackData, int eventData1, int eventData2)
+{
+ switch (event)
+ {
+ case EVENT_COMMIT:
+
+ break;
+ }
+ return 0;
+}
+
+int CVICALLBACK GoToZeroCB (int panel, int control, int event,
+ void *callbackData, int eventData1, int eventData2)
+{
+ switch (event)
+ {
+ case EVENT_COMMIT:
+ int nb = 0;
+
+ nb = ComWrt (pCOM2, "X0\n", 4);
+ return nb;
+ break;
+ }
+ return 0;
+}
+
+int CVICALLBACK ResetCB (int panel, int control, int event,
+ void *callbackData, int eventData1, int eventData2)
+{
+ switch (event)
+ {
+ case EVENT_COMMIT:
+
+ break;
+ }
+ return 0;
+}
+
+
Index: apps/FMF-FFT-P5/fourier.cws
===================================================================
--- apps/FMF-FFT-P5/fourier.cws (nonexistent)
+++ apps/FMF-FFT-P5/fourier.cws (revision 353)
@@ -0,0 +1,205 @@
+[Workspace Header]
+Version = 1302
+Pathname = "/c/home/Fourier/fourier.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 = 1
+Active Project = 1
+Project 0001 = "fourier.prj"
+Drag Bar Left = 320
+Window Top = 147
+Window Left = 287
+Window Bottom = 936
+Window Right = 1979
+Maximized = True
+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 = 6
+Window Confinement Region Enabled = True
+MainColumnWidth = 303
+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
+
+[File 0001]
+Path = "/c/home/Fourier/fourier.uir"
+File Type = "User Interface Resource"
+Disk Date = 3629705820
+In Projects = "1,"
+Window Top = 33
+Window Left = 10
+Window Height = 427
+Window Width = 768
+Window Z-Order = 2
+
+[File 0002]
+Path = "/c/home/Fourier/fourier.c"
+File Type = "CSource"
+Disk Date = 3629707155
+In Projects = "1,"
+Window Top = 405
+Window Left = 202
+Window Z-Order = 1
+Source Window State = "1,248,249,248,66,66,66,0,0,173,0,161,0,0,0,46,155,0,182,36,427,768,1,40,"
+
+[File 0003]
+Path = "/c/home/cvi/apps/TempCtrl/TempCtrl.c"
+File Type = "CSource"
+Disk Date = 3615354561
+In Projects = ""
+Window Top = 157
+Window Left = 74
+Window Z-Order = 5
+Source Window State = "1,0,0,0,0,0,0,0,0,80,0,0,0,0,0,25,124,0,246,36,427,768,1,0,"
+
+[File 0004]
+Path = "/c/home/cvi/apps/TempCtrl/TempCtrl.uir"
+File Type = "User Interface Resource"
+Disk Date = 3615354561
+In Projects = ""
+Window Top = 188
+Window Left = 90
+Window Height = 427
+Window Width = 768
+Window Z-Order = 6
+
+[File 0005]
+Path = "/c/home/cvi/instr/TempControllerSwitch/arduino_monitor.c"
+File Type = "CSource"
+Disk Date = 3627898504
+In Projects = ""
+Window Top = 281
+Window Left = 138
+Window Z-Order = 3
+Source Window State = "1,611,613,611,15,29,15,0,0,80,0,0,0,0,0,25,592,0,612,38,427,768,1,0,"
+
+[File 0006]
+Path = "/c/Program Files (x86)/National Instruments/CVI2013/include/rs232.h"
+File Type = "Include"
+Disk Date = 3486495600
+In Projects = ""
+Window Top = 95
+Window Left = 42
+Window Z-Order = 4
+Source Window State = "1,60,60,60,12,21,21,0,3,80,0,0,0,0,0,25,48,0,60,12,427,768,1,0,"
+
+[Tab Order]
+Tab 0001 = "/c/home/Fourier/fourier.uir"
+Tab 0002 = "/c/home/Fourier/fourier.c"
+Tab 0003 = "/c/home/cvi/apps/TempCtrl/TempCtrl.c"
+Tab 0004 = "/c/home/cvi/apps/TempCtrl/TempCtrl.uir"
+Tab 0005 = "/c/home/cvi/instr/TempControllerSwitch/arduino_monitor.c"
+Tab 0006 = "/c/Program Files (x86)/National Instruments/CVI2013/include/rs232.h"
+
+[Default Build Config 0001 Debug]
+Generate Browse Info = True
+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 = True
+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 = True
+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 = True
+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 = True
+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 = ""
+
Index: apps/FMF-FFT-P5/fourier.exe
===================================================================
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
/apps/FMF-FFT-P5/fourier.exe
Property changes:
Added: svn:mime-type
## -0,0 +1 ##
+application/octet-stream
\ No newline at end of property
Index: apps/FMF-FFT-P5/fourier.h
===================================================================
--- apps/FMF-FFT-P5/fourier.h (nonexistent)
+++ apps/FMF-FFT-P5/fourier.h (revision 353)
@@ -0,0 +1,59 @@
+/**************************************************************************/
+/* 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 p1 1
+#define p1_EXIT 2 /* control type: command, callback function: ExitCB */
+#define p1_STOP 3 /* control type: command, callback function: StopCB */
+#define p1_GOTOEND 4 /* control type: command, callback function: GoToEndCB */
+#define p1_GOTOZERO 5 /* control type: command, callback function: GoToZeroCB */
+#define p1_RESET 6 /* control type: command, callback function: ResetCB */
+#define p1_START 7 /* control type: command, callback function: StartCB */
+#define p1_COM1 8 /* control type: numeric, callback function: (none) */
+#define p1_VMON 9 /* control type: numeric, callback function: (none) */
+#define p1_COM2 10 /* control type: numeric, callback function: (none) */
+#define p1_GRAPH 11 /* control type: strip, callback function: (none) */
+#define p1_SPLITTER_2 12 /* control type: splitter, callback function: (none) */
+#define p1_SPLITTER 13 /* control type: splitter, callback function: (none) */
+#define p1_SPLITTER_4 14 /* control type: splitter, callback function: (none) */
+#define p1_SPLITTER_3 15 /* control type: splitter, callback function: (none) */
+#define p1_RAZDALJA 16 /* control type: numeric, callback function: (none) */
+#define p1_HITROSTX 17 /* control type: numeric, callback function: (none) */
+#define p1_STOPPOS 18 /* control type: numeric, callback function: (none) */
+#define p1_STARTPOS 19 /* control type: numeric, callback function: (none) */
+#define p1_POZICIJA 20 /* control type: numeric, callback function: (none) */
+
+
+ /* Control Arrays: */
+
+#define CTRLARRAY 1
+
+ /* 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 GoToEndCB(int panel, int control, int event, void *callbackData, int eventData1, int eventData2);
+int CVICALLBACK GoToZeroCB(int panel, int control, int event, void *callbackData, int eventData1, int eventData2);
+int CVICALLBACK ResetCB(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: apps/FMF-FFT-P5/fourier.prj
===================================================================
--- apps/FMF-FFT-P5/fourier.prj (nonexistent)
+++ apps/FMF-FFT-P5/fourier.prj (revision 353)
@@ -0,0 +1,419 @@
+[Project Header]
+Version = 1302
+Pathname = "/c/home/Fourier/fourier.prj"
+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 = 2
+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]
+Include Files Folder Not Added Yet = True
+Instrument Files Folder Not Added Yet = True
+Library Files Folder Not Added Yet = True
+Folder 0 = "User Interface Files"
+FolderEx 0 = "User Interface Files"
+Folder 1 = "Source Files"
+FolderEx 1 = "Source Files"
+
+[File 0001]
+File Type = "User Interface Resource"
+Res Id = 1
+Path Is Rel = True
+Path Rel To = "Project"
+Path Rel Path = "fourier.uir"
+Path = "/c/home/Fourier/fourier.uir"
+Exclude = False
+Project Flags = 0
+Folder = "User Interface Files"
+Folder Id = 0
+
+[File 0002]
+File Type = "CSource"
+Res Id = 2
+Path Is Rel = True
+Path Rel To = "Project"
+Path Rel Path = "fourier.c"
+Path = "/c/home/Fourier/fourier.c"
+Exclude = False
+Compile Into Object File = False
+Project Flags = 0
+Folder = "Source Files"
+Folder Id = 1
+
+[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
+Numeric File Version = "1,0,0,0"
+Numeric Prod Version = "1,0,0,0"
+Comments = ""
+Comments Ex = ""
+Company Name = ""
+Company Name Ex = "%company"
+File Description = "fourier (Debug x86)"
+File Description Ex = "%application (%rel_dbg %arch)"
+File Version = "1.0"
+File Version Ex = "%f1.%f2"
+Internal Name = "fourier"
+Internal Name Ex = "%basename"
+Legal Copyright = "Copyright © 2018"
+Legal Copyright Ex = "Copyright © %company %Y"
+Legal Trademarks = ""
+Legal Trademarks Ex = ""
+Original Filename = "fourier.exe"
+Original Filename Ex = "%filename"
+Private Build = ""
+Private Build Ex = ""
+Product Name = " fourier"
+Product Name Ex = "%company %application"
+Product Version = "1.0"
+Product Version Ex = "%p1.%p2"
+Special Build = ""
+Special Build Ex = ""
+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 = False
+Enable Pointer Mismatch Warning = False
+Enable Unreachable Code Warning = False
+Enable Unreferenced Identifiers Warning = False
+Enable Assignment In Conditional Warning = False
+O Option Compatible With 5.0 = False
+Enable C99 Extensions = True
+Uninitialized Locals Compile Warning = "Disabled"
+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 = "fourier.exe"
+Executable File_Debug = "/c/home/Fourier/fourier.exe"
+Executable File_Release Is Rel = True
+Executable File_Release Rel To = "Project"
+Executable File_Release Rel Path = "fourier.exe"
+Executable File_Release = "/c/home/Fourier/fourier.exe"
+Executable File_Debug64 Is Rel = True
+Executable File_Debug64 Rel To = "Project"
+Executable File_Debug64 Rel Path = "fourier.exe"
+Executable File_Debug64 = "/c/home/Fourier/fourier.exe"
+Executable File_Release64 Is Rel = True
+Executable File_Release64 Rel To = "Project"
+Executable File_Release64 Rel Path = "fourier.exe"
+Executable File_Release64 = "/c/home/Fourier/fourier.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: apps/FMF-FFT-P5/fourier.uir
===================================================================
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
/apps/FMF-FFT-P5/fourier.uir
Property changes:
Added: svn:mime-type
## -0,0 +1 ##
+application/octet-stream
\ No newline at end of property