How do I use a dll and C++ code to create a labview driver
I have a dll and some .net code to read temperature from a USB HID device I purchased from the website below. In addition some other people have posted their methods/codes of reading the temperatures. I am trying to convert this into a Labview VI but I am very lost.
http://www.no-feature.com/2008/01/taking-advantage-of-your-temper-device.html
It seems I can use the call function to see the functions in the DLL but I cannot use them to actually do anything. I have used serial communcation in labview before but never USB so I feel like I am in a little over my head and would really appreaciate some guidance.
This is not quite easy But to find out how try to reverse engineer this code http://pc8-termo.fis.ucm.es/~josechu/mitemper.zip
Before starting on the job I would recommend doing some testing to see if the code work with your device. I can help if you promise to post the tested code here in this forum. It doable in Labview. It just requires some bit manipulation. Also the unit drive must be installed
To establish a communication link with the device, the settings can be extracted from function SetupCommPort in MITEMPer.c, which are:
9600bps, 8 bits, no parity bit and one stop bit with DTR and RTS enabled.
To initialize the device, the function is init in functions.c. The sequence is:
Calling the Start_IIC function, which in turn calls the SetDataLine and SetClockLine passing 1 as parameters for both, and then calling those two functions again with 0 as parameters.
SetDataLine function sets the RTS line if the passed parameter is 1 or clears the RTS if the passed parameter is 0.
Similarly, the SetClockLine function sets the DTR line if the passed parameter is 1 or clears the DTR line if the passed parameter is 0.
In other words to to initializes the device, we first have to set the RTS, set the DTR, then clear RTS and clear DTR.
So to some part that involves a technique that is often referred to as bit banging. There are 3 groups of 8 bits (one byte) that need to be transferred. Which are, first group 10011110, second group 00000001, third group 01100000.
Then stop the IIC (look in the respective function on what have to be done here).
Start the IIC again.
Transfer another 3 groups of 8 bits.
Stop the IIC.
The sequence of transferring the group can be obtained from the function Transmit in functions.c:
The transmission is done through the DTR and RTS line only. Not through the usual TX data line.
If the data is 1 set the RTS or if the data is 0 clear the RTS.
Then the tick (clock), set the DTR followed by clearing the DTR.
Loop to the next data bit for 8 times.
After 8 bits, set the RTS line and set the DTR line.
Then read the CTS line for acknowledgement (inverted).
Closed by clearing the DTR.
You can follow the C code and find the necessary sequences and data that you need to talk to the device and obtained a reading.
Besides which, my opinion is that Express VIs Carthage must be destroyed deleted
(Sorry no Labview "brag list" so far)
Similar Messages
-
How we will use these Job_open and Job_submit job_close??
Hi Experts,
i am new in Developement, i need one help here my problem is
I have one issue which is a report here i am getting the data into internal table, that data fetching i want to schedule it in background job..
can any body tell me how can i use the JOB_OPEN and JOB_SUBMIT function modules....
plz provide any example..
Thanks in Advance,
Venkat NHi,
Here is the sample program
*Submit report as job(i.e. in background)
data: jobname like tbtcjob-jobname value
' TRANSFER TRANSLATION'.
data: jobcount like tbtcjob-jobcount,
host like msxxlist-host.
data: begin of starttime.
include structure tbtcstrt.
data: end of starttime.
data: starttimeimmediate like btch0000-char1.
Job open
call function 'JOB_OPEN'
exporting
delanfrep = ' '
jobgroup = ' '
jobname = jobname
sdlstrtdt = sy-datum
sdlstrttm = sy-uzeit
importing
jobcount = jobcount
exceptions
cant_create_job = 01
invalid_job_data = 02
jobname_missing = 03.
if sy-subrc ne 0.
"error processing
endif.
Insert process into job
SUBMIT zreport and return
with p_param1 = 'value'
with p_param2 = 'value'
user sy-uname
via job jobname
number jobcount.
if sy-subrc > 0.
"error processing
endif.
Close job
starttime-sdlstrtdt = sy-datum + 1.
starttime-sdlstrttm = '220000'.
call function 'JOB_CLOSE'
exporting
event_id = starttime-eventid
event_param = starttime-eventparm
event_periodic = starttime-periodic
jobcount = jobcount
jobname = jobname
laststrtdt = starttime-laststrtdt
laststrttm = starttime-laststrttm
prddays = 1
prdhours = 0
prdmins = 0
prdmonths = 0
prdweeks = 0
sdlstrtdt = starttime-sdlstrtdt
sdlstrttm = starttime-sdlstrttm
strtimmed = starttimeimmediate
targetsystem = host
exceptions
cant_start_immediate = 01
invalid_startdate = 02
jobname_missing = 03
job_close_failed = 04
job_nosteps = 05
job_notex = 06
lock_failed = 07
others = 99.
if sy-subrc eq 0.
"error processing
endif.
Regards
Sudheer -
How do i use my iMac and the macs wired internet connection to share the internet with my iPod and iPhone. For 6months I had set up a network that shared the internet through bluetooth to my iPod 5th gen but i messed it up when i tried to add my iPhone 5s and i can't remember how to do it.
The following has instructions: OS X Mavericks: Share your Internet connection
-
I have bought an used Iphone 5. I dont have the password for the existing login id of the old owner. How do i use the phone and change the log in id?
Unfortunatly the only way that you can get it off is to get the old user to input the password. You may need to contact that old user and see if he can put the old password in. hope this helps.
-
With Acrobat 6.0 I was able to copy a stamp in the same position (I mean "exactly" the same one) of different pages just by using the "copy/past" tool.
Now I am using Acrobat XI and it seems like it is not possible anymore: I am copying a stamp and I am trying to past it in anoter page, but it appears in the center of the page (or wherever it wants to...).
Does anyone have a solution?
Thanks in advance.Thank you very much. I'll be waiting for you message.
Messaggio originale----
Da: [email protected]
Data: 26/01/2015 17.56
A: "Umberto Gangi"<[email protected]>
Ogg: How can I use the "Copy and paste" tool in order get stamps in the same position in different pages (Acrobat XI for PC)?
How can I use the "Copy and paste" tool in order get stamps in the same position in different pages (Acrobat XI for PC)?
created by Gilad D (try67) in Creating, Editing & Exporting PDFs - View the full discussion
Well, I was in the same situation so I've developed a tool that allows one to do it. I will send you some additional information about it in a private message.
If the reply above answers your question, please take a moment to mark this answer as correct by visiting: https://forums.adobe.com/message/7132586#7132586 and clicking ‘Correct’ below the answer
Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page:
Please note that the Adobe Forums do not accept email attachments. If you want to embed an image in your message please visit the thread in the forum and click the camera icon: https://forums.adobe.com/message/7132586#7132586
To unsubscribe from this thread, please visit the message page at , click "Following" at the top right, & "Stop Following"
Start a new discussion in Creating, Editing & Exporting PDFs by email or at Adobe Community
For more information about maintaining your forum email notifications please go to https://forums.adobe.com/thread/1516624. -
1. I have an iPod which has purchases synced with I tunes with an apple ID. I now have an iPad with a new ID for cloud. I have cloud storage capacity of 5gb which came with the iPad. How can I use one ID and store my existing music in cloud?
HI Frostyfrog
CHeck out iTunes Match which has an annual fee of £21 or thereabouts. You can store a maximum of 25,000 songs there and they all become available on your other kit, iPhone, iPad and iPod. I know it works as I have over 23000 songs uploaded of which only a few we're bought through iTunes.
it works by comparing your music to the whole iTunes music dadata base so you access the same tunes that you could get from iTunes. If you have obscure stuff, it uploads your own music to the cloud as a copy.
I Find it incredible that on my iPhone with its 16gb memory I can view almost 200 gb of music (ie my 23000 songs) and play any of them. Anything I add to iTunes becomes available via the cloud fairly quickly from a few minutes or a little longer if adding a lot.
The first time you use it it will take quite a while to match your music if you have a lot, but after that it is all automatic. Read the stuff on the apple site. Your PC needs to be at least running Vista. I recommend it and at less than 50p a week it's good value.
Good luck -
How to find out what are the interfaces used for Job and Job Codes
HI All,
I just wanted to know how do we find out what are the interfaces used for Job and Job codes .
Thanks In Advance
SunnyHi,
Here is an idea for your request.
Basically you can create a simple query on multiprovider 0TCT_MC01.
Filter: you can use a variable for restriction of time ( calday, or calmonth) since you should be interested for a time period.
Choose following characters into your objects:
InfoProvider ( 0TCTIFPROV ) - you can create a variable for choosing infoprovider before query runs.
*Tp.[Type of BI Application Object] 0TCTBISOTYP = filter this with 'QUERY' or whatever your need is.
*BI Application Object 0TCTBISBOBJ, ( this will give you the name of the queries)
In key figures choose, Count for BI Appl. (0TCTWTCOUNT).
(number for query run)
Create a condition , for top 20.
Hope this helps.
Derya -
How can i use this sript and loade another movie?
Hi there, i used the following script to load a movie from the server;
var request:URLRequest = new URLRequest("url string");
var loader:Loader = new Loader()
loader.load(request);
addChild(loader);
How can i use this sript and loade another movie? Can someone help me please?
[edited by moderator]Sir, I changed it from:
var request:URLRequest = new URLRequest("http://agusandelsur.gov.ph/downloads/pdrrmo/agusan_del_sur/StaJosefa/Movies/Dir.swf");
var loader:Loader = new Loader()
loader.load(request);
addChild(loader);
to
var request:URLRequest = new URLRequest("http://agusandelsur.gov.ph/downloads/pdrrmo/agusan_del_sur/StaJosefa/Movies/Warning.swf");
var loader:Loader = new Loader()
loader.load(request);
addChild(loader);
When i expord the movie i get the following error.....
Scene 1, Layer 'Layer 3', Frame 1, Line 6 1151: A conflict exists with definition request in namespace internal. -
How shall I use my IMac and MacBookPro, with synchronized files
Hi, how shall I use my IMac and MacBookPro, with synchronized files? I used to work at home and office with those to machines and finally always have different version of my documents. Is there any dispositive that I should use, where all my files are moving with me? os there is something to synchronized the computers using WiFi or bluetooth?
The following has instructions: OS X Mavericks: Share your Internet connection
-
How can I use the battery and let it be perfectly healthy?
Hello everybody!
I love this forum because everyone is a great helpful person.. .. However, I'd like to ask you couple things about the MacBook battery...
I know that now the battery has been improved, it leasts longer and it can support 1000 charging cycles.
(Right now I'm performing the battery calibration)
I'd like to know how can I use the battery and let it be perfectly healthy.
For instance,
1) If I connect the laptop to the MagSafe and let it charge, when should I remove the plug from the Mac and when should I put it in charge? I don't wanna continously waste cycles and let my battery die too soon (it's too young to die! :-D ) .. I use it mainly at home connected to the MagSafe: someone tell that even if you leave the MagSafe connected after the mac has been charged it stops charging (I can see this), and others say that is not a good thing to let the mac connected to the plug for a long time... with the old model I used to disconnect the battery from the mac so I didn't have these problems but with the new one it's a long procedure...
2) I usually use to calibrate the battery once a month... Is it a good thing?
Thanks!
AndreaEverything you need to know about your battery is contained in this User Tip from frequent poster neuroanatomist:
http://discussions.apple.com/thread.jspa?threadID=1764220 -
I am going overseas to Singapore how can I use my ipad2 and my iPhone without it costing me a fortune. I am in Australia
iPhone - Locating wireless carriers
The above will provide carriers in Singapore that you can use. You would get the SIM card from the carrier. Of course if you are somewhere that has WiFi service then you won't need the cellular connection. -
How do I use Primary Key and RowID in Materialized View Logs and MVs
How do I use Primary Key and RowID in Materialized View Logs and Materialized Views????
I donât understand in the Materalized View Logs the diference between Primary Key and RowID. Besides, I could choose both Primary Key and RowID.
When I have to use RowID?? Why?? And Primary Key??? And both, Primary Key and RowID????
Thank you very much!Yes, I have already read it...
But for example I donât Understand:
This is the example 8-1
CREATE MATERIALIZED VIEW LOG ON products
WITH SEQUENCE, ROWID
(prod_id, prod_name, prod_desc, prod_subcategory, prod_subcat_desc, prod_
category, prod_cat_desc, prod_weight_class, prod_unit_of_measure, prod_pack_
size, supplier_id, prod_status, prod_list_price, prod_min_price)
INCLUDING NEW VALUES;
But if I create a Materialized View with TOAD if I choose a KEY field I receive the error:
ORA-12026: invalid filter column detected
Then I have to take out the Key (in the above example prod_id)
And then the script is
CREATE MATERIALIZED VIEW LOG ON products
WITH ROWID, SEQUENCE, PRIMARY KEY!!!!!!!!!!!!!!!!!!!!
(prod_id, prod_name, prod_desc, prod_subcategory, prod_subcat_desc, prod_
category, prod_cat_desc, prod_weight_class, prod_unit_of_measure, prod_pack_
size, supplier_id, prod_status, prod_list_price, prod_min_price)
INCLUDING NEW VALUES;
I have PRIMARY KEY in the definition (I donât choose it) and I donât have the prod_id field
Why is it????
Note: If I execute the script to create the MV Log manually the PRIMARY KEY option NO IS in the script and the prod_id field either is in the script.
And on the other hand,
What is this:
CREATE MATERIALIZED VIEW LOG ON sales
WITH ROWID;
CREATE MATERIALIZED VIEW LOG ON times
WITH ROWID;
CREATE MATERIALIZED VIEW LOG ON customers
WITH ROWID;
These MATERIALIZED VIEW LOG contain any fields????
Or it contain the primary key fields of this tables (sales, times and customers)??? Then, Why is it ROWID instead of PRIMARY KEY????
Thanks! -
How can i use PCIe 1433 and basler line camera to construct image and pocess it?
hello! every one ,I am new to machine vision.i have two problems to ask.First,how can i use line camera and 1433 to acquire 2-D image?second,if i want to pocess the 1-D signal ,how can i do it ?i expect for your answer ,thank you!
What you are trying to do is not something you can easily do in a forum, but I can give you the basics.
You have a CameraLink frame Grabber (PCIe 1433) and a LineScan Camera
The framegrabber needs to be configured to understand how to communicate with the camera. You need a file from the camera vendor. This file might already be installed. You can use MAX to check if it is, under Devices/IMAQ.
Assuming you can get to the point where you can communicate with the camera, you need to configure your acquisition.
Since the camera is a line scan camera, it captures image data one pixel ine at a time. You will need to configure the frame grabber to determine how many lines per image you want. The low limit is usually 1, and the high limit is either based on the framegrabber's internal memory, or that of the computer.
If you are using labview, you will need to open a sessing to the camera, acquire the image(s), and then close the session when you are done.
Once the image(s) are captured, you can performa analysis using the NI Vision Toolkit.
Sorry, but there is no way to condense years into one post.
Machine Vision, Robotics, Embedded Systems, Surveillance
www.movimed.com - Custom Imaging Solutions -
HT204053 how cant i use find me and see all my 3 iphones at the same time
how can i use find me and see all my 3 iphones at the same time
I assume you mean Find My iPhone.
You must have the Find My iPhone service turned on inside each phone (Settings>iCloud). Then either log into icloud.com and go to the Find My iPhone page to view a map and list of device, or use the Find My iPhone app on any device.
"at the same time" - no you only view one map (associated with one phone) at a time. You can't get all three phones on one map. -
My wife got a Iphone in Bangladesh. she do not know the password for apple ID, there is no way to collect it, as the email id for that iphone is not her. how she can use application store and itunes? please help me
If it is second hand, try putting it in recovery mode, and restoring it with itunes on a mac or pc.
Recovery mode tutoral:http://www.youtube.com/watch?v=dkVr5CxFiFM
Maybe you are looking for
-
I have an iPad 2 and so does my mom. We both have the app Slotomania and now all of sudden after having it for months, our games connected and we don't know how to fix it. Deleting it and reinstalling does not work.
-
Error while using session.processSendNotification() in PAPI code
Hi, I am writing a PAPI code inside my web-service.. When I use session.processCreateInstance() in my code and run it, it creates an instance in the process. But when I use session.processSendNotification() to invoke my Wait activity it gives me a co
-
File Sharing between iPad 2 and Mac
Hello - I have an iPad 2 (recently updated to the OS 6) and a fully updated MacBook Pro. My iTunes is also the current 10.7 version. On my PC, I am able to locate the file sharing portion of the apps section in iTunes. (I'm particularly interested
-
How to use the lcds in flex and how use the messageing serviecs in blazeds ?
I have a problem with messageing servies in Blazeds i used the romte and proxy very well but messaging services ?
-
Maintenance plans for Backward counter
Is it possible for having a preventive maintenance plan for a measurement point that counts backwards? Your inputs on this will be appreciated!