How to catch ACK signal by using LabVIEW?
Hi everyone,
I use 8451 to read/write and follow I2C protocol. Now, I want to catch the ACK signal. Does anyone knows how I should do by using LabVIEW?
Thanks.
Best Regards,
Catherine
Duplicate post.
Regards
JamesC
NIUK and Ireland
Similar Messages
-
hai every one ...i have a doubt how to interface N5181A MXG signal Generator with Labview by using LAN Interface???? and
how to find IP Address of N5181A MXG signal Generator????????
when i connect instrument with labview it shows that no instrument connected and what are the requirements for LAN interfacing with that instruments in labview and please help me??????You can set the IP Address on the instrument. You may need to be in the same subnet of your controlling computer, so you may need to set your computer's IP Address to something static.
Use VISA. It makes life easier if you decide to use another bus (like GPIB, USB, serial, etc). In MAX, create a network session with the static IP address you set the instrument to and use that as the VISA Resource.
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines -
How to implement a callback function using LabView's Call Library Function Node?
I am trying to call a fuction from a SDK.dll library using the Call Library Function Node. The SDK was provided to
me and I do not have the source code, just the .dll and .h files.
The SdkSetPropertyEventHandler function has a callback fuction as one of its parameters. How do I implement the
callback using the CLF node? I am a good LabView programmer but this is my first time using the Call Library
Function Node. I have read all the info I can find on NI's web site and the discussion board but cannot figure
this one out. I am using LabView 8.6.
The SDK.h deacribes the function as:
// Function: SdkSetPropertyEventHandler
SdkError SDKAPI SdkSetPropertyEventHandler(
SdkCameraRef inCameraRef,
SdkPropertyEvent inEvnet,
SdkPropertyEventHandler inPropertyEventHandler,
SdkVoid* inContext );
// Description:
// Registers a callback function for receiving status
// change notification events for property states on a camera.
// Parameters:
// In: inCameraRef - Designate the camera object.
// inEvent - Designate one or all events to be supplemented.
// inPropertyEventHandler - Designate the pointer to the callback
// function for receiving property-related camera events.
// inContext - Designate application information to be passed by
// means of the callback function. Any data needed for
// your application can be passed.
// Out: None
// Returns: Any of the sdk errors.
A separate header file called SDKTypes.h contains the following data:
typedef SdkUInt32 SdkPropertyEvent;
typedef SdkUInt32 SdkPropertyID;
typedef void SdkVoid;
typedef struct __SdkObject* SdkBaseRef;
typedef SdkBaseRef SdkCameraRef;
SdkPropertyEventHandler
typedef SdkError ( SDKCALLBACK *SdkPropertyEventHandler )(
SdkPropertyEvent inEvent,
SdkPropertyID inPropertyID,
SdkUInt32 inParam,
SdkVoid * inContext );
Thanks for your help.
Alejandro
Solved!
Go to Solution.alejandroandreatta wrote:
I am trying to call a fuction from a SDK.dll library using the Call Library Function Node. The SDK was provided to
me and I do not have the source code, just the .dll and .h files.
The SdkSetPropertyEventHandler function has a callback fuction as one of its parameters. How do I implement the
callback using the CLF node? I am a good LabView programmer but this is my first time using the Call Library
Function Node. I have read all the info I can find on NI's web site and the discussion board but cannot figure
this one out. I am using LabView 8.6.
Basically you do not do that. LabVIEW does not know pointers and certainly not function pointers. What you should do instead is writing a C DLL that implements the callback and also exports a function to be called by LabVIEW that translates between the callback and a LabVIEW user event. Look for PostLVUserEvent() here on the NI site to find examples how to do that.
Rolf Kalbermatter
Message Edited by rolfk on 02-11-2009 08:00 PM
Rolf Kalbermatter
CIT Engineering Netherlands
a division of Test & Measurement Solutions -
How to create an SQL Database using LabVIEW??
Hi all,
I have been using LabVIEW for quite a long time but now I am doing something which I am totally new to. I have a VI which gives out a table as output. What I am trying to do is, I want to create an SQL databse and save this table in the database and I want to pass the value of this table to the SQL Database once in every 24 hours. As I dont have any knowledge of My SQL I am totally stuck.
Can anyone help me by telling me how to do this.?? An example code will be well appreciated.
Regards,
Nitz..Hi Nitzz,
what have you done and where do you have problems? Did you make a search here in the forum?
http://forums.ni.com/t5/forums/searchpage/tab/message?q=create+database#message-list
Mike -
How to actuate 20 solenoid valves using labview
I want to perform an action of detaching materials from a fixture by actuating 20 pneumatic pistons controlled by 20 solenoid valves.
If the valve is actuated the piston moves and stays in the location for 1 sec and then return back. Each of these cylinders should be able to be controlled separately.
Kindly provide me with the necessary equipments i should buy.
How can i control 20 solenoids using a DAQ card. is it possible?
Also i need to accept around 20 Digital Signals too.
Could you specify any card that will meet the spec.?
Thank you in advance.
Regards
grugh
Regards
Grugh Mike
Success is Everything !!With the equipment that you have, a good choice would be Opto-22 series for the G4 series of the Opto-22. Select the screw terminal base and an ODC module appropriate to your power/voltage requirements. this will use the TTL digital output to control a power solid state relay. If you look to the other signal conditioning products from NI, they will allow you to do the same thing as well.
Stu McFarlane
Viewpoint Systems, Inc. -
How to create fourier transform properties using labview
Hi everyone
i am a new user to Labview and i only have 2 weeks left to complete an assignment.
This assignment involves the implementation of the various types of fourier transform properties using Labview. These properties include linearity, time shifting, frequency shifting, time scaling,
I do not really know how to implement them using Labview
PLS HELP!!!
Thanksi am refering to the fourier transform properties listed below:
A) time shifting
x(t-a) ------- > exp (-jwa) X(w)
For the time shifting property above, i have problem creating the exponential term using labview
B) time scaling
x(at)-----------> 1/a X (w/a)
C) Time convolution
Y(w) = F[h(t) * x(t)] = H(w)X(w)
where * stands for the convolution operation and F stands for fourier transform
Please provide diagrams if possible. Thank you
PLEASE HELP!!!!!!!! THANKS!!!!!!! -
How to measure PLL lock time using LabView?
Hi.
I have to measure PLL, especially PLL lock time, using LabView.
How can I do it?
Is there is some dedicated LabView Toolkit that can do PLL lock time measurement?
Thanks :-)Hi Igor,
you want to measure the time it takes the PLL to lock in to a change in the source frequency?
So you need to measure the frequency and you need to know the state of the PLL. Then you can calculate the time the PLL needs to work.
Best regards,
GerdW
CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
Kudos are welcome -
How to control darwin op robot using labview
hey eveyrone,
i have just started working on a project..
i want to know how to control the darwin op robot using labview.. want to get a head start....
thanx...Hi Preetisar,
You can use LabVIEW robotics to start your project.
You can find some informations from our website regarding this Software:
Overview of the LabVIEW Robotics Module
<link no longer exists>
<link no longer exists>
Robotics Fundamentals Series
Regards,
Rémi D.
National Instruments France
#adMrkt{text-align: center;font-size:11px; font-weight: bold;} #adMrkt a {text-decoration: none;} #adMrkt a:hover{font-size: 9px;} #adMrkt a span{display: none;} #adMrkt a:hover span{display: block;}
>> Les rencontres techniques de NI - Mesures et acquisition de données : de la théorie à la mise en ... -
How to control an electric motor using LabVIEW?
Hi,
is there a simple way to control the rotation speed of a electric motor (12V) using LabVIEW?
I have an idea how to achieve this by using NI measurment card, by its not that cheap. Any ideas?
Maciek.
LabView 2009.
Solved!
Go to Solution.Rubid wrote:
Let's complicate the problem. Is there a way to control the output voltage of the USB port in my PC?
Do you know what a USB-RS232 converter is??
Buy one together with that power supply and your problem is solved
What do you mean with "control the output voltage of the USB port" do you want to drive the motor directly from the USB port -
How to get PC host name using labview
hi,
I have a need to display the pc host name(login name) in my application. How can i get it using labview in runtime i.e. if i write a program and execute it in different PC systems/same system with different users, then i should get the corresponding login names.
Can any one help me on this?
Thanks,
Regards,
Arvinth
Solved!
Go to Solution.Well, the PC host name and the login name are two different things, so which one are you trying to get? Darin's snippet gives you the login name. If you want the PC name use this method.
-
How to simulate a mobile robot using labview
Hello,
Is it possible to simulate the movement of a mobile robot using labview?
I mean, is it possible to have a graphics window to show these movements?
ThanksIn LabVIEW there are several options to display animated graphics in 2D and 3D. Here are some examples that can be found in the example library that ships with LabVIEW:
If you need further information I would suggest to post this question with some more details (e. g. a picture of your robot, type of movements,...) in the LabVIEW forum.
Best regards,
Jochen Klier
National Instruments Germany
Message Edited by Jochen on 04-23-2007 10:46 AM
Attachments:
2D robot.jpg 113 KB
solarsystem.jpg 114 KB -
How do I control serial power using LabView?
I need to use LabView to alter the voltage coming from the serial port. Is it as easy as writing to the serial port? I know that if you write to the serial port that it'll produce a binary number, does this binary number correspond to a voltage.
If you want to create a scalable voltage value coming from the serial port you must have a Dig -> Analog conversion circuit.
If your goal is to vary a voltage from 1 - 10 vdc, then you must create:
1) a an external circuit that will convert/buffer digital serial interfaced binary values to analog values (ni makes these things)
2) labview code that transfers info to serial port. (driver/etc)
hope that helps!
did that answer your question?
Chances are if you have seen VI in the forest it hasn't fallen. -
How access to Smart Card Readers using Labview?
I´am trying access to Smart Card Readers by Labview, but I have problems.
I want to read SIM card GSM using Labview.!
The file winscard.dll has the functions to access, but I dont have skill with "Using External codes in LabView".
In MSDN library there is the specification about the functions for winscard.dll
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/secauthn/security/smart_card_authentication.asp
When you install a driver for some smart card reader you access to it by winscard.dll.
Att. EnriqueFinally I can acces to the smart card readers (PC/SC) with Labview, this is the first part where I can establish the context and realease it, and I can get the first name of my list of PC/SC readers that I have connected to my computer.
I was wearing the "Call Library Function" for winscard.dll
For Establish the context you need :
function name : SCardEstablishContext
Calling conventions : stdcall (WINAPI)
function prototype : long SCardEstablishContext(long SCARD_SCOPE_USER, long NULL1, long NULL2, unsigned long *hContextHandle);
function name : SCardReleaseContext
Calling conventions : stdcall (WINAPI)
function prototype : void SCardReleaseContext(unsigned long hContextHandle); -
Anybody knows how to verify USB link operation using Labview
I am trying to verify the operation of a USB link on a system I am testing. Does Labview have USB drivers that provide data communication.
hamid00 wrote:
>
> I am trying to verify the operation of a USB link on a system I am
> testing. Does Labview have USB drivers that provide data
> communication.
No.
Using LabVIEW, the best way might be to verify the operation of a device
on the other end of the link ...
Best, Mark -
How to view an AVI file using labVIEW
hi
I m working on LAbVIEW 5.1. I want to know how to view an AVI video file in LabVIEW. The image should be displayed on an intensity graph.Use Windows media player via ActiveX. Find attached example (it plays an AVI on top of graph area and hides at the end).I attached a screen capture in case you have problems with the converted version of my 6.0 VI. Let me know if it's working.
Good Luck
Attachments:
play_AVI.vi 30 KB
Count16.avi 343 KB
play_AVI.gif 15 KB
Maybe you are looking for
-
ECC 6.0 Installation error at ABAP Import Stage-- Phase 15 of 24
Dear all I am trying to Install ECC 6.0 for our R&D Server and i have 240 GB HDD and 4 GB RAM. I have only one drive (C:\) and i know its a bad practice to install ECC on one drive but i have to do it. I cannot format it either. The INstallation star
-
Logical data base in Web dynpro
Hi all, I want to add LDB (PNP) into my web dynpro program.by which i can get the data from database to the Application server.After Authrization check. I also want to use Infotypes 0082 in my program. Points will be sured. Thanks.
-
Want to export output of alv grid to excel automatically
hi friends............. i want to export output of alv grid without displaying on screen to excel file ....................... how i m able to do it .............................. in the same way as after alv grid display click on LOCAL FILE-> SPRE
-
Tree with custom labels crashes during scrolling
We have a tree that uses custom icons for different folder/data types. The tree contains about 150 items of around 15 types. The icons are assigned correctly and the tree works just fine. However: If we scroll the tree up and down, it eats up some re
-
Please instruct how to display Chinese in URL-based portlet
Hi, I have installed Chinese support opca for my oracle portal and I tried to display Java Chinese portlet successfully. I've been testing the url-service now, and I can see the url sample portlets successfully too. However, when I try to display a w