USB comunication with a device using LabWindows CVI 7.1 or more late.
Hello Partners.
I am try to get information about USB comunication with a device using CVI 7.1 or more late, I will need to developed a aplication for comunicate with a device but I have not idea of How do this. I know how comunicate with the serial port in CVI, but I never have developed any application using the USB port.
Do you know which are the requirements for do this??
I have read some information and I am seeing that I needed the driver of device for do this but I do not know what is the command line that will need to send in the aplication for comunicate with my device.
Somebory knows how can I do this in my application??
Somebory has some exemplo code in where I can see the commands that I needed to send to the USB port?
Thanks a lot for your help.
I will be to hope some suggestion.
hi,
think there are three possibilities:
1. the product comes with an own driver & api
2. the product comes with an FTDI-device to communicate over
2.1 you can talk with the device over a virtual COM (rs232)
2.2. you can talk with the device over the D2XX-layer (look at the FTDI-webside: "D2XX Programmers guide....")
best regards
Simon
Similar Messages
-
Communicating with a device using labwindows 7.0 and ethernet
I am new to this type of communication, and I was just wondering how you would accomplish something like that.
DerekDerek,
Please see/post to the following thread:
http://exchange.ni.com/servlet/ProcessRequest?RHIVEID=101&RPAGEID=135&HOID=506500000008000000B0E80000&UCATEGORY_0=_318_&UCATEGORY_S=0
Ames
Applications Engineering
National Instruments -
How do I send e-mail to a distribution list using LabWindows/CVI?
I need to be able to send e-mail to a user-defined distribution list using LabWindows/CVI? Has anyone done this? Any ideas where I could look?
I commented on something similar to this awhile back. My issue was that I had the base version and didn't have the Internet classes. So this external app worked like a charm
It has a lot of command-line inputer options to use as well.
http://forums.ni.com/t5/LabWindows-CVI/Need-Help-for-Sending-Email-with-LabWindows-8-5-or-9/m-p/1095... -
Documentation on How to Develop an OPC Client Using LabWindows/CVI?
What documentation is there on how to develop an OPC client application using LabWindows/CVI? What tutorials, if any, are there? What reference manuals, if any are there?
I am completely new to LabWindows/CVI. I will be starting soon with the tutorial, "Getting Started with LabWindows/CVI". However, our application needs to communicate with an RSLinx OPC Server. Any documentaiton on how to learn to do this would be very much appreciated.http://www.ni.com/white-paper/4626/en/ Just did a quick google and this came up, Labwindows CVI and Labview are quite different but I usually look at Labview examples then try take the general idea from the example and apply it in CVI, hope this helps
-
How to access the result list in teststand after execution using labwindows​/cvi
I am developing a user interface in labwindows/cvi that runs multiple teststand sequence files and would like to combine their reports (generated in teststand) into a single file at the end of a UUT. What is the best way to do this? At the moment, I'm trying to access the result list local variable after the execution has ended using API calls from labwindows/cvi and an end-of-execution callback event but those run-time variables do not exist anymore. How do I get a hold of the result list array at the end of an execution? I would like to grab this variable and pass it along from sequence to sequence using labwindows/cvi and not teststand itself. Is this possible? Any help would be great.
Thanks in advance,
LuisHey Luis,
Check out the response to this thread at the NI TestStand board here! -
Configure PXI-2567 to Trigger on Rising Edge using LabWindows​/CVI
I need some help configuring the trigger edge for a PXI-2567 using Labwindows/CVI. I have been able to successfully create and execute a scan list using both the ni-switch and daqmx APIs. However, currently the PXI-2567 triggers on the falling edge of an input trigger. I need to configure it to trigger on the rising edge of an input trigger. Every function I could find in the daqmx API for configuring the trigger edge gave a non-fatal runtime error, and I could find no such functions in the ni-switch API.
Any help configuring the input trigger edge on the PXI-2567 using Labwindows/CVI would be appreciated.
ThanksHi JonRice,
You can configure the scan list to execute on the rising edge of an input trigger. Here are the Labwindows/CVI and LabVIEW functions you would want to use to retrieve, specify or verify the edge of a digital signal that advances to the next entry in a scan list.
NI-DAQmx C Property: More >> Advance >> Digital Edge >> Edge
You can get/set/reset this property using:
DAQmxGetDigEdgeAdvTrigEdge
DAQmxSetDigEdgeAdvTrigEdge
DAQmxResetDigEdgeAdvTrigEdge
NI-SWITCH C Attribute: NISWITCH_ATTR_TRIGGER_INPUT_POLARITY
You can get/set/check this attribute using:
niSwitch_GetAttributeViInt32
niSwitch_SetAttributeViInt32
niSwitch_CheckAttributeViInt32
NI-DAQmx LabVIEW Property: More:Advanceigital Edge:Edge
DAQmx Trigger Property Node
Short Name: Adv.DigEdge.Edge
NI-SWITCH LabVIEW Property: Trigger Input Polarity
niSwitch Property Node
Short Name: Trigger Input Polarity
Hope this helps! Let me know if you have further questions.
Chad Erickson
Switch Product Support Engineer
NI - USA -
I am looking for a binaural USB headset with microphone to use during Go To Meeting sessions and Webinar's. Seems to be little that works with the iMac and most of the web searches have not been encouraging. Any suggestions on units that work. I have a new iMac running Snow Leopard 10.6.8.
BobI am looking for a binaural USB headset with microphone to use during Go To Meeting sessions and Webinar's. Seems to be little that works with the iMac and most of the web searches have not been encouraging. Any suggestions on units that work. I have a new iMac running Snow Leopard 10.6.8.
Bob -
Is LabWindows/CVI suitable to me more than Labview?
I know some of the LabVIEW gurus might have some insightful words to share on this thread (formerly posted on the CVI forum).
Is LabWindows/CVI suitable to me more than Labview?
WendykThere were some excellent response there. I would, however, like to make a few addtional comments.
First, LabVIEW is a compiler. The "source" code is compiled when the run button on the toolbar is pressed. The creation of an exe is done with the application builder that has been available for much longer than version 6. But, since the development environment is also a compiler, you will not see a signicificant improvement in execution speed when building an exe.
I originally started my NI programming with LabWindows v1.0. Back then, despite it's name, it was only available for DOS. I transitioned to LabVIEW when it was released for Windows 3.0. I had no great difficulties in making the transition. In fact, I had a great deal of fun in learning it and loved being able to "write" a program using only a mouse. Given some time and training, I think any text based programmer can do the same if he or she is willing to do so. Like anything else, there is a learning curve to LabVIEW but I don't think it's as steep as someone first starting to program C++ or VB.
I still do some occassional LabWindows programming but in my instrument control and DAQ applications, I simply find LabVIEW allows me to get the job done faster. If you have some specific imaging or motion application in mind, look over the tools available for each in LabVIEW and LabWindows and check over in those forums to see what they are using. -
Communication with unit under test works fine in hypterminal after I downloaded virtual driver from FTDI site.
Never done any USB communication before in LabWindows CVI. What functions can I use in labwindows CVI?Since the device presents itself as a COM port (pretty standard with the FTDI chips) you should be able to use the RS-232 library in CVI. OpenComConfig() will open a connection to the device, ComWrt() will write data to it, and the various ComRd() functions can be used to read the responses back.
-
Test NI cDAQ-9188 using LabWindows/CVI
I am looking for help to create test for cDAQ-9188 with DIO and AIO modules.
Would you please advise with information as follow:
1. Adding device driver to a project.
2. Sample of UI.
3. Sample of test script for DO (AO) control.
4. Sample of test script for DI (AI) acquisition.
Thank you.
Sincerely,
Sam.
[email protected]There is a tutorial on using DAQmx with LabWindows/CVI here: http://zone.ni.com/devzone/cda/tut/p/id/2931. That is probably a good place to start.
Another good article to check out is the NI Ethernet Data Acquisition Overview here: http://zone.ni.com/devzone/cda/tut/p/id/7374.
As far as examples go, there are several text-based examples (as long as you have DAQmx installed) located at: Start Menu >> All Programs >> National Instruments >> NI-DAQ >> Text-based Code Support >> ANSI C Examples.
National Instruments -
TCP using LabWindow/CVI ? ?
Hi !
I'm looking for ways to learn & use "TCP" communication ( Client /
Server ) together with LabWindows/CVI.
( all examples at your site are for LabView only )
Can you please let me know where to find an TCP Client / Server
applications examples for LabWindows/CVI ??
If posible i'll like the exact addresse of pages contains this
examples/information !
Also if posible i like to know if there is something about Ethernet or /
and Lan ( Local Area Network ) in the LabWindows/CVI.
I want to add that i know about the TCP Client/Server example in the
LabWindow/CVI - Samples, but it is not complete - it is only a skeleton
which not explain
it all.
I also want to know about the hardware i need to establishes a TCP
connection !!
Which cable should i use to connect the Server & Client computers ?
Where exactly should i connect the cable in the computer ?
It very importent for me to get full answer as soon.
Thank you very much !!
Regards
Noam G.I would also like to see these examples, but I can help you on some of this. You don't really need any hardware (since you are accessing this site, I assume you have an ethernet card). For a cable, if you are connecting both computers to a LAN or the internet (direct or via a hub) use a RJ-45 ethernet cable. If you are connecting the computers directly to each other, you must use an ethernet crossover cable. The cables just connect into your ethernet port (where your internet access is plugged into now).
Go here for more info on a crossover cable:
http://digital.ni.com/public.nsf/3efedde4322fef19862567740067f3cc/38528df7b4d1feae86256dcf0069b14d?OpenDocument
Derek -
Communicate with MTP device using C# desktop application
I want to communicate(Read / Write) with android phone connected with desktop machine as MTP device using C# in Desktop application.
When phone is connected in MTP mode, not as USB drive.
Ram SwamiHi,
mybe the links below can assist you:>
WPD Application Programming Interface
WPD: Transferring Content
MTP, WPD, OMG
Mark as answer or vote as helpful if you find it useful | Ammar Zaied [MCP] -
Problems with multiple devices using same apple ID
I have a Macbook, iPad and iPhone. After doing an IOS update now my devices keep saying I cannot use that same appleid because it's already taken. I cannot find away around this and want to know experience of others
That warning occurs only if you try to create a new Apple ID using an email address already in use. An existing Apple ID can be used with mutiple devices.
What exactly did you do when you got that message? -
How to write to MS Word using LabWindows/CVI
HI all
is there any toolkit available to write to MS Word in LabWindows/CVI. like the report generation toolkit in Labview is there any option in CVI.
regards
Regards
Solved!
Go to Solution.Hi,
there is an instrument driver (toolslib\activex\word\wordreport.fp) and several examples are shipped with CVI, i.e. word2000demo.cws -
Communicate with Modbus device using OPCLabVIEW.
Hi all,
I am using LabVIEW 6i with DSC. I want to connect Modbus device. At some other place I saw that this is very easy with OPCLookout server but we don't have this opc server toolset. So I want to communicate Modbus device using LabVIEW DSC only. Did any one had done it please help me out.
Thanking you.
VishalHi thanks for the reply.
In first para you are talking about some server. Is it OPCLookout / OPCLabVIEW server or anything else please let me know.
As far as the OPCLookout server is concern, we got it. But our excate requirement is as follows.
>>>>> We want to connect our modbus device with FP.
We have flow controller working with modbus protocol. this controller store some parameters. At particular time(daily) we want to get this readings in FP and then pass it to some other PC or main controller. But I am not aware how the lookoutopc server would work with FP. I think that if we could connect modbus with LabviewDscOPC server than DSC will take care for the communication ( Not sure & not know how, if u know please guide me). Due to this only I am ve
ry strict for the LabviewDsc.
In third pare u told about to make driver for modbus. Please guide me how could i do this. I tried to communicate with modbusdemobox (ni one) using serialport vis. but not able to communicate.
Please guide me.
Thanking you.
Regards,
Vishal
Maybe you are looking for
-
Can i use my laptop which is running Windows 7 Ultimate upgrade from Vista to stream photos using ICloud. The outlook programme used is 2003 and i my devices are IPad mini and IPhone 5. My problem is that i able to drag pictures into ICloud for it to
-
Hello I wish to parse a .sql file and execute the queries in it, I have looked up for some solution but could not find one. Any Clue? Thanks Wilson
-
Hi, I have a big problem!!!! When we post the goods issues for an outbound delivery, the system generates message VL608 'Delivery has not yet been completely processed by WM' and VL605 "The position have no the batch". The transfer order is confirmat
-
I am looking for a French-English iBook dictionary, not an app
I'm a newbie to my iPad and can't find a French-English iBook dictionary to purchasen. I don't want an app. This is frustrating because I bought the iPad to use instead of books when I'm in France. Help!
-
Jcontrol.exe is stopped in sap EP
trc file: "D:\usr\sap\EP2\JC01\work\dev_jcontrol", trc level: 1, release: "700" node name : jcontrol pid : 5160 system name : EP2 system nr. : 01 started at : Thu Feb 05 21:02:08 2009 arguments : arg[00] : D:\usr\sap\EP2\JC01