Click here to Skip to main content
15,893,381 members
Home / Discussions / C#
   

C#

 
AnswerRe: how to check if value exists in database from textbox c# Pin
Hailu Worku Obsse26-Nov-19 2:59
professionalHailu Worku Obsse26-Nov-19 2:59 
GeneralRe: how to check if value exists in database from textbox c# Pin
Pete O'Hanlon26-Nov-19 3:28
mvePete O'Hanlon26-Nov-19 3:28 
SuggestionRe: how to check if value exists in database from textbox c# Pin
Eddy Vluggen26-Nov-19 6:15
professionalEddy Vluggen26-Nov-19 6:15 
AnswerRe: how to check if value exists in database from textbox c# Pin
#realJSOP27-Nov-19 0:55
mve#realJSOP27-Nov-19 0:55 
AnswerRe: how to check if value exists in database from textbox c# Pin
Gerry Schmitz27-Nov-19 7:15
mveGerry Schmitz27-Nov-19 7:15 
AnswerRe: how to check if value exists in database from textbox c# Pin
Shraddha_Patel16-Dec-19 22:30
Shraddha_Patel16-Dec-19 22:30 
AnswerRe: how to check if value exists in database from textbox c# Pin
Roland Skeyhill27-Jan-20 19:50
Roland Skeyhill27-Jan-20 19:50 
Questionplotting a point graph for a continuous real time data in c# windows form application Pin
Member 1465244924-Nov-19 22:48
Member 1465244924-Nov-19 22:48 
I have c# windows form application which displays the real time data from a board. I want to plot this data in a point graph in c#. Help me with this. I have given my code below which displays the data from board.

namespace flowboard_v2
{
public partial class flow_click : Form
{

public flow_click()
{
InitializeComponent();
}

[DllImport("C:\\Users\\JivaSci\\Desktop\\fluigent\\bin\\SDK\\FRP\\C++\\Cpp_Windows\\frp_c_64.dll", CallingConvention = CallingConvention.StdCall)]
public static extern UInt64 frp_initialization(ushort serial);
[DllImport("C:\\Users\\JivaSci\\Desktop\\fluigent\\bin\\SDK\\FRP\\C++\\Cpp_Windows\\frp_c_64.dll", CallingConvention = CallingConvention.StdCall)]
public static extern Int64 frp_get_serial(UInt64 handle, ref ushort serial, ref ushort version);
[DllImport("C:\\Users\\JivaSci\\Desktop\\fluigent\\bin\\SDK\\FRP\\C++\\Cpp_Windows\\frp_c_64.dll", CallingConvention = CallingConvention.StdCall)]
public static extern Int64 frp_close(UInt64 handle);
[DllImport("C:\\Users\\JivaSci\\Desktop\\fluigent\\bin\\SDK\\FRP\\C++\\Cpp_Windows\\frp_c_64.dll", CallingConvention = CallingConvention.StdCall)]
public static extern Int64 frp_read_flow(UInt64 handle, byte index, ref byte timestamp, ref float flow);
[DllImport("C:\\Users\\JivaSci\\Desktop\\fluigent\\bin\\SDK\\FRP\\C++\\Cpp_Windows\\frp_c_64.dll", CallingConvention = CallingConvention.StdCall)]
public static extern Int64 frp_data_FU(UInt64 handle, byte index, ref byte cal, ref byte res, ref byte artcod, ref byte sf, ref byte unit, ref byte tb);

public void Test()
{

/* Flow board variable declaration */
UInt64 frpHandle = 0;
ushort Serial = 0;
ushort Version = 0;

/* Flow-rate acquisition variables */
byte sensor_index = 0; // sensor index coresponds to flow-unit port on the flowboard from 0 to 7
byte TimeCheck = 0;
float flow_rate = 0;
uint loop = 0;

frpHandle = frp_initialization(0);

RTBox.Text+=("\n FRP session initialized");


frp_get_serial(frpHandle, ref Serial, ref Version);
RTBox.Text += ("\n FLOWBOARD SN:" + Convert.ToInt32(Serial));


if (Serial != 0)
{

frp_read_flow(frpHandle, sensor_index, ref TimeCheck, ref flow_rate);
RTBox.Text += ("\n Flow-rate:" + Convert.ToSingle(flow_rate) + "\t ul/min");



}

frp_close(frpHandle);
RTBox.Text += ("\n FRP session closed");

}

private void button1_Click(object sender, EventArgs e)
{

Test();

}
QuestionRe: plotting a point graph for a continuous real time data in c# windows form application Pin
Richard MacCutchan24-Nov-19 23:16
mveRichard MacCutchan24-Nov-19 23:16 
AnswerRe: plotting a point graph for a continuous real time data in c# windows form application Pin
Member 1465244925-Nov-19 0:28
Member 1465244925-Nov-19 0:28 
GeneralRe: plotting a point graph for a continuous real time data in c# windows form application Pin
Richard MacCutchan25-Nov-19 1:04
mveRichard MacCutchan25-Nov-19 1:04 
QuestionNeed Help With Syntax Pin
Kevin Marois23-Nov-19 10:01
professionalKevin Marois23-Nov-19 10:01 
AnswerRe: Need Help With Syntax Pin
phil.o23-Nov-19 10:25
professionalphil.o23-Nov-19 10:25 
GeneralRe: Need Help With Syntax Pin
Kevin Marois23-Nov-19 10:40
professionalKevin Marois23-Nov-19 10:40 
GeneralRe: Need Help With Syntax Pin
Kevin Marois23-Nov-19 10:58
professionalKevin Marois23-Nov-19 10:58 
GeneralRe: Need Help With Syntax Pin
phil.o23-Nov-19 11:29
professionalphil.o23-Nov-19 11:29 
RantRe: Need Help With Syntax Pin
Kevin Marois23-Nov-19 12:26
professionalKevin Marois23-Nov-19 12:26 
GeneralRe: Need Help With Syntax Pin
phil.o23-Nov-19 12:45
professionalphil.o23-Nov-19 12:45 
QuestionDeleting textbox created dynamically, using delete key, while there are more than 1 textbox that have been dragged and dropped on a picture box. Pin
Member 443266022-Nov-19 1:14
Member 443266022-Nov-19 1:14 
AnswerRe: Deleting textbox created dynamically, using delete key, while there are more than 1 textbox that have been dragged and dropped on a picture box. Pin
OriginalGriff22-Nov-19 1:31
mveOriginalGriff22-Nov-19 1:31 
GeneralRe: Deleting textbox created dynamically, using delete key, while there are more than 1 textbox that have been dragged and dropped on a picture box. Pin
Member 443266023-Nov-19 3:07
Member 443266023-Nov-19 3:07 
GeneralRe: Deleting textbox created dynamically, using delete key, while there are more than 1 textbox that have been dragged and dropped on a picture box. Pin
OriginalGriff23-Nov-19 4:00
mveOriginalGriff23-Nov-19 4:00 
GeneralRe: Deleting textbox created dynamically, using delete key, while there are more than 1 textbox that have been dragged and dropped on a picture box. Pin
Member 443266023-Nov-19 19:16
Member 443266023-Nov-19 19:16 
QuestionDifferences of 3 libraries in voice programming ? Pin
Member 245846721-Nov-19 15:55
Member 245846721-Nov-19 15:55 
AnswerRe: Differences of 3 libraries in voice programming ? Pin
Richard MacCutchan21-Nov-19 21:33
mveRichard MacCutchan21-Nov-19 21:33 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.