How can I use an image from an ip address for use in labview as image data?
I want to use a stand-alone webcam on ethernet as the source for imaging control.
Greg,
Lots of possibilities here, depending on what your Webcam software serves up and how flexible you need to be with image types and whatnot.
Assuming the Webcam server provides raw JPG images that you can get at with a simple URL, one way to go is to use DataSocket, using a little trick where you append "[txt]" to the end of the URL and get the raw content back. I've attached an example that grabs a JPG from the NI site and displays it.
Best Regards,
John Lum
National Instruments
Attachments:
JPG_to_picture.vi 50 KB
Similar Messages
-
How can I use Automator to extract specific Data from a text file?
I have several hundred text files that contain a bunch of information. I only need six values from each file and ideally I need them as columns in an excel file.
How can I use Automator to extract specific Data from the text files and either create a new text file or excel file with the info? I have looked all over but can't find a solution. If anyone could please help I would be eternally grateful!!! If there is another, better solution than automator, please let me know!
Example of File Contents:
Link Time =
DD/MMM/YYYY
Random
Text
161 179
bytes of CODE memory (+ 68 range fill )
16 789
bytes of DATA memory (+ 59 absolute )
1 875
bytes of XDATA memory (+ 1 855 absolute )
90 783
bytes of FARCODE memory
What I would like to have as a final file:
EXCEL COLUMN1
Column 2
Column3
Column4
Column5
Column6
MM/DD/YYYY
filename1
161179
16789
1875
90783
MM/DD/YYYY
filename2
xxxxxx
xxxxx
xxxx
xxxxx
MM/DD/YYYY
filename3
xxxxxx
xxxxx
xxxx
xxxxx
Is this possible? I can't imagine having to go through each and every file one by one. Please help!!!Hello
You may try the following AppleScript script. It will ask you to choose a root folder where to start searching for *.map files and then create a CSV file named "out.csv" on desktop which you may import to Excel.
set f to (choose folder with prompt "Choose the root folder to start searching")'s POSIX path
if f ends with "/" then set f to f's text 1 thru -2
do shell script "/usr/bin/perl -CSDA -w <<'EOF' - " & f's quoted form & " > ~/Desktop/out.csv
use strict;
use open IN => ':crlf';
chdir $ARGV[0] or die qq($!);
local $/ = qq(\\0);
my @ff = map {chomp; $_} qx(find . -type f -iname '*.map' -print0);
local $/ = qq(\\n);
# CSV spec
# - record separator is CRLF
# - field separator is comma
# - every field is quoted
# - text encoding is UTF-8
local $\\ = qq(\\015\\012); # CRLF
local $, = qq(,); # COMMA
# print column header row
my @dd = ('column 1', 'column 2', 'column 3', 'column 4', 'column 5', 'column 6');
print map { s/\"/\"\"/og; qq(\").$_.qq(\"); } @dd;
# print data row per each file
while (@ff) {
my $f = shift @ff; # file path
if ( ! open(IN, '<', $f) ) {
warn qq(Failed to open $f: $!);
next;
$f =~ s%^.*/%%og; # file name
@dd = ('', $f, '', '', '', '');
while (<IN>) {
chomp;
$dd[0] = \"$2/$1/$3\" if m%Link Time\\s+=\\s+([0-9]{2})/([0-9]{2})/([0-9]{4})%o;
($dd[2] = $1) =~ s/ //g if m/([0-9 ]+)\\s+bytes of CODE\\s/o;
($dd[3] = $1) =~ s/ //g if m/([0-9 ]+)\\s+bytes of DATA\\s/o;
($dd[4] = $1) =~ s/ //g if m/([0-9 ]+)\\s+bytes of XDATA\\s/o;
($dd[5] = $1) =~ s/ //g if m/([0-9 ]+)\\s+bytes of FARCODE\\s/o;
last unless grep { /^$/ } @dd;
close IN;
print map { s/\"/\"\"/og; qq(\").$_.qq(\"); } @dd;
EOF
Hope this may help,
H -
How can I use the LabVIEW Symbol Editor as a Sub-VI?
How can I use the LabVIEW Symbol Editor as a Sub-VI?
mc-hase wrote:
> Thank you for your ansver.
> That means that you see no possibiltiy to use the built in window? (I
> think the built in window is programmed with LabVIEW as well...)
The icon editor at least up to version 7.0 of LabVIEW is not written as
VI but directly implemented inside LabVIEW, which is written in C/C++.
Rolf Kalbermatter
Rolf Kalbermatter
CIT Engineering Netherlands
a division of Test & Measurement Solutions -
How can i copy my contact from iphone to address book
how can i copy my contact from iphone to address book
When connection your iPhone to iTunes, go to the "info"-tab (I think it's called), and check the box "Sync contacts from Address Book". This should do the job.
Cheers -
How can I use table control to enter data
Hi all,
I want to use table control to enter data, instead of using textboxes.
So that the user can enter many data at once and just click the save button at the end of the work, only one click.
How can I use the table control at this context?
Thanks.
Deniz.Hi deniz,
go through it:
/people/ravishankar.rajan/blog/2007/02/23/an-easier-way-of-displaying-and-editing-data-using-table-control
https://www.sdn.sap.com/irj/sdn/wiki?path=/display/snippets/code%2bto%2bhandle%2bmultiple%2brecords%2bin%2bbdc%2btable%2bcontrol
Regards, -
How can I get the image data from Clipboard with LV
Anybody knows How can get the image data after pressd "print screen button" with LV?
I want to program a software which can save a image as a bmp or jpeg etc, and the image data is from pressed print screen button.
How to get it out from clipboard. I am trapping about. thanks in advance.
Try to make everything AutomaticYou can have a look at Rolf Kalbermatter's post here (give him stars) or, if you're using scripting, you can use the Application class Get Clipboard Image method.
Try to take over the world! -
Select stmt offset - how can I use select stmt to fetch data.
kna1-name2 contains store#XXXXXXX where XXXXXXX is a store number. example : store#3564261.
I must fetch this. how can i fetch this ?
Can I use
WHERE substr(name2,7,10) CS gt_soldto1-store_no
or can I use
WHERE name2+7(10) CS gt_soldto1-store_no
along with for all entries IN gt_soldto1
in the below select stmt.
*SELECT *
FROM kna1
INTO corresponding fields of TABLE gt_kna1
FOR ALL ENTRIES IN gt_soldto1
WHERE substr(name2,7,10) as gt_soldto1-store_no
OR j_3astcu = gt_soldto1-store_no
THANKS IN ADVEasiest way would be to create another field in your table gt_soldto1 as NAME2.
update all entries in gt_SOLD2-NAME2 as cocatenation of 'store#' + gt_SOLD2-STORE_no
then use your select statment
SELECT *
FROM kna1
INTO corresponding fields of TABLE gt_kna1
FOR ALL ENTRIES IN gt_soldto1
WHERE NAME2 = gt_soldto1-name2 -
JPA - How can I use the table's default Date types? e.g. CURRENT_TIME
Once again, can't find an answer anwhere.
I would like to know if/how one can use the default date/time/datetime types as declared for the target table when attempting to persist an entity having these fields set as null.
create table item
item_id INTEGER NOT NULL PRIMARY KEY DEFAULT AUTOINCREMENT,
date_created DATETIME NOT NULL DEFAULT NOW(*),
date_updated DATETIME NOT NULL DEFAULT NOW(*),
);Now how can I get the above table to work when attempting to em.persist(myItem) whereby dateCreated and dateUpdated are both null?I should also mention that TopLink has always supported the ability to retrieve the current time from the database for use in optimistic locking. The TimestampLockingPolicy offers the ability to configure the next value being retrieved from the database instead of using the local time from the JVM. Our extended optimistic locking configuration does not currently support setting this option but it could be done using a descriptor customizer which can be configured in your persistence unit properties.
Using optimistic locking may be a good solution for the last modified date since it will also ensure that you do not corrupt the database if someone else has incremented this value since your last read.
Doug -
How can I stop Top Sites from opening in Safari for Windows 4.0.2
Using Safari for Windows 4.0.2 on a PC, how can I stop the Top Sites window from opening? Any help would be appreciated.
Set any new window or tab to open a "blank" page.
Safari preferences / General tab. -
How can I use XL report to extract data in Fixed Assets module?
Can user use XL Reporter to develop reports on Fixed Assets data such as FA Master Data? In another word, can XL
Reporter be used on FA module? If so, how can this be done?Hi
As there is no reports available for Fixed Asset Module, u have to develop by taking tech help.
Or else u can use crystal reporter instead.
Regards,
Kashi -
How can i use analytic function on these data
hi ,
i have the following data:
id start end
1 11-oct-2006 03:00:34 12-oct-2006 09:00:10
1 09-oct-2006 05:00:23 11-oct-2006 03:00:34
1 08-oct-2006 03:00:23 09-oct-2006 05:00:23
2 11-oct-2006 11:00:00 11-oct-2006 14:00:00
1 08-oct-2006 03:00:00 08-oct-2006 04:00:00
my end results shld be
id start end
1 08-oct-2006 05:00:23 12-oct-2006 09:00:10
2 11-oct-2006 11:00:00 11-oct-2006 14:00:00
1 08-oct-2006 03:00:00 08-oct-2006 04:00:00
pls advise
tks & rdgsMohana ,
I think Elic's solution can be used here also
(Group by preserving the order
sql>select * from t;
ID ST ED
1 11-OCT-06 03.00.34.000000 AM 12-OCT-06 09.00.10.000000 AM
1 09-OCT-06 05.00.23.000000 AM 11-OCT-06 03.00.34.000000 AM
1 08-OCT-06 04.00.23.000000 AM 09-OCT-06 05.00.23.000000 AM
2 11-OCT-06 11.00.00.000000 AM 11-OCT-06 12.00.00.000000 PM
1 08-OCT-06 03.00.00.000000 AM 08-OCT-06 04.00.00.000000 AM
sql>
select id,min(st) st,max(ed) ed
from(
select id,st,ed, sum(grp) over(order by st) sm
from(
select id,st,ed,decode(lag(ed) over(order by st),st,0,1) grp
from t))
group by id,sm;
ID ST ED
1 08-OCT-06 03.00.00.000000 AM 08-OCT-06 04.00.00.000000 AM
1 08-OCT-06 04.00.23.000000 AM 12-OCT-06 09.00.10.000000 AM
2 11-OCT-06 11.00.00.000000 AM 11-OCT-06 12.00.00.000000 PM
Message was edited by:
jeneesh -
How can I use javascript to access netui data-repeater item?
I have a 2-dim table of <netui: checkbox> using a <netui data-repeater> to interate over a contact email (column) and an event (rows).
My problem is that I need to have a select all checkbox at the bottom of each column (per email) and be able to select all event for an email (when checked) and deselect all when the checkbox is unchecked.
I can do it in java page flow but I can't have a page refresh.
I want to do it on the page with javascript. The problem is that using
document[getNetuiTagName("aform", this)][getNetuiTagName("email1", this)].checked
with the "tagId" in each <netui> tag I can't access each iteration of the data repeater (I only get the last one).
What I need is a reference to each repeater element. I do not know how many rows or columns I will have (based on the data).
Is there any way to reference the obeject itself in javascript so I can loop through the items in the netui data-repeater?
This is what is rendered in the html netui mapping:
netui_names.con1="portlet_2_3wlw-checkbox_key:{actionForm.opts[4].cons[1].selContact}"
I really want to be able to access this and loop through the arrays for opts (event) and cons(email)
Here's the code:
<netui:form action="submitEvents" tagId="eform" focus="">
<table>
<tr>
<td>
<table id="eTable" cellpadding="2" cellspacing="1" border="0">
<tr bgcolor="#cccccc" class="BlackHeavy8">
<!-- <td>Selected</td> -->
<td colspan="2">Event</td>
<netui-data:repeater dataSource="{pageFlow.contacts}" defaultText="No contacts configured.">
<netui-data:repeaterHeader>
</netui-data:repeaterHeader>
<netui-data:repeaterItem>
<netui-data:choiceMethod object="{pageFlow}" method="getAddHeader">
<netui-data:methodParameter value="{container.item.contact_icon}" />
</netui-data:choiceMethod>
<netui-data:choice value="default">
<td nowrap="true" bgcolor="#FFCCCC"><netui:image src="{container.item.contact_icon}"/>
<netui:label value="{container.item.contact_value}" defaultValue="Â "></netui:label>
</td>
</netui-data:choice>
<netui-data:choice value="blue">
<td nowrap="true" bgcolor="#D8EBFE"><netui:image src="{container.item.contact_icon}"/>
<netui:label value="{container.item.contact_value}" defaultValue="Â "></netui:label>
</td>
</netui-data:choice>
<netui-data:choice value="green">
<td nowrap="true" bgcolor="#CCFFCC"><netui:image src="{container.item.contact_icon}"/>
<netui:label value="{container.item.contact_value}" defaultValue="Â "></netui:label>
</td>
</netui-data:choice>
<netui-data:choice value="yellow">
<td nowrap="true" bgcolor="#FFFFCC"><netui:image src="{container.item.contact_icon}"/>
<netui:label value="{container.item.contact_value}" defaultValue="Â "></netui:label>
</td>
</netui-data:choice>
</netui-data:repeaterItem>
<netui-data:repeaterFooter></netui-data:repeaterFooter>
</netui-data:repeater>
</tr>
<tr>
<td colspan="7">
<netui-data:repeater dataSource="{actionForm.opts}">
<netui-data:repeaterHeader>
</netui-data:repeaterHeader>
<netui-data:repeaterItem>
<netui-data:choiceMethod object="{pageFlow}" method="isEvenRow">
<netui-data:methodParameter type="int" value="{container.index}" />
</netui-data:choiceMethod>
<netui-data:choice value="true">
<tr class="BlackNorm8">
<!-- <td align="center"> -->
<!-- </td> -->
<td colspan="2">
<netui:label value="{container.item.eventName}" />
<netui:hidden dataSource="{container.item.eventId}" />
</td>
<netui-data:repeater dataSource="{container.item.cons}">
<netui-data:repeaterHeader>
</netui-data:repeaterHeader>
<netui-data:repeaterItem>
<netui-data:choiceMethod object="{pageFlow}" method="getAddHeader">
<netui-data:methodParameter value="{container.item.contact_icon}" />
</netui-data:choiceMethod>
<netui-data:choice value="default">
<td align="center" bgcolor="#FFCCCC" >
<netui:checkBox tagId="con1" dataSource="{container.item.selContact}" defaultValue="{container.item.selContact}" />
<netui:hidden dataSource="{container.item.contact_id}" tagId="conid1" />
</td>
</netui-data:choice>
<netui-data:choice value="blue">
<td align="center" bgcolor="#D8EBFE" >
<netui:checkBox id="con2" dataSource="{container.item.selContact}" defaultValue="{container.item.selContact}" />
<netui:hidden dataSource="{container.item.contact_id}" tagId="conid2" />
</td>
</netui-data:choice>
<netui-data:choice value="green">
<td align="center" bgcolor="#CCFFCC" >
<netui:checkBox tagId="con3" dataSource="{container.item.selContact}" defaultValue="{container.item.selContact}" />
<netui:hidden dataSource="{container.item.contact_id}" tagId="conid3" />
</td>
</netui-data:choice>
<netui-data:choice value="yellow">
<td align="center" bgcolor="#FFFFCC" >
<netui:checkBox tagId="con4" dataSource="{container.item.selContact}" defaultValue="{container.item.selContact}" />
<netui:hidden dataSource="{container.item.contact_id}" tagId="conid4" />
</td>
</netui-data:choice>
</netui-data:repeaterItem>
<netui-data:repeaterFooter>
</netui-data:repeaterFooter>
</netui-data:repeater>
</tr>
</netui-data:choice>
<netui-data:choice value="false">
<tr class="BlackNorm8" bgcolor="#eeeeee">
<!--<td align="center">-->
<!--</td>-->
<td colspan="2">
<netui:label value="{container.item.eventName}" />
<netui:hidden dataSource="{container.item.eventId}" />
</td>
<netui-data:repeater dataSource="{container.item.cons}">
<netui-data:repeaterHeader>
</netui-data:repeaterHeader>
<netui-data:repeaterItem>
<netui-data:choiceMethod object="{pageFlow}" method="getAddHeader">
<netui-data:methodParameter value="{container.item.contact_icon}" />
</netui-data:choiceMethod>
<netui-data:choice value="default">
<td align="center" bgcolor="#FFCCCC" >
<netui:checkBox tagId="conalt1" dataSource="{container.item.selContact}" defaultValue="{container.item.selContact}" />
<netui:hidden tagId="conidalt1" dataSource="{container.item.contact_id}" />
</td>
</netui-data:choice>
<netui-data:choice value="blue">
<td align="center" bgcolor="#D8EBFE" >
<netui:checkBox tagId="conalt2" dataSource="{container.item.selContact}" defaultValue="{container.item.selContact}" />
<netui:hidden tagId="conidalt2" dataSource="{container.item.contact_id}" />
</td>
</netui-data:choice>
<netui-data:choice value="green">
<td align="center" bgcolor="#CCFFCC" >
<netui:checkBox tagId="conalt3" dataSource="{container.item.selContact}" defaultValue="{container.item.selContact}" />
<netui:hidden tagId="conidalt3" dataSource="{container.item.contact_id}" />
</td>
</netui-data:choice>
<netui-data:choice value="yellow">
<td align="center" bgcolor="#FFFFCC" >
<netui:checkBox tagId="conalt4" dataSource="{container.item.selContact}" defaultValue="{container.item.selContact}" />
<netui:hidden tagId="conidalt4" dataSource="{container.item.contact_id}" />
</td>
</netui-data:choice>
</netui-data:repeaterItem>
<netui-data:repeaterFooter>
</netui-data:repeaterFooter>
</netui-data:repeater>
</tr>
</netui-data:choice>
</netui-data:repeaterItem>
<netui-data:repeaterFooter>
</netui-data:repeaterFooter>
</netui-data:repeater>
 </td>
</tr>
<!-- Select All Checkboxes -->
<tr bgcolor="#cccccc" class="BlackHeavy8">
<!-- <td>Selected</td> -->
<td colspan="2">Select ALL</td>
<netui-data:repeater dataSource="{pageFlow.contacts}" defaultText="Â ">
<netui-data:repeaterHeader>
</netui-data:repeaterHeader>
<netui-data:repeaterItem>
<netui-data:choiceMethod object="{pageFlow}" method="getAddHeader">
<netui-data:methodParameter value="{container.item.contact_icon}" />
</netui-data:choiceMethod>
<netui-data:choice value="default">
<td align="center" nowrap="true" bgcolor="#FFCCCC">
<netui:hidden dataSource="{container.item.contact_id}" tagId="chbox1" />
<input type="checkbox" value="false"
onclick="selectAllEvents('chbox1')">Select ALL
</td>
</netui-data:choice>
<netui-data:choice value="blue">
<td align="center" nowrap="true" bgcolor="#D8EBFE">
<netui:hidden dataSource="{container.item.contact_id}" tagId="chbox2" />
<input type="checkbox" value="false"
onclick="selectAllEvents('chbox2')">Select All
</td>
</netui-data:choice>
<netui-data:choice value="green">
<td align="center" nowrap="true" bgcolor="#CCFFCC">
<netui:hidden dataSource="{container.item.contact_id}" tagId="chbox3" />
<input type="checkbox" value="false" onclick="selectAllEvents('chbox3')">Select All
</td>
</netui-data:choice>
<netui-data:choice value="yellow">
<td align="center" nowrap="true" bgcolor="#FFFFCC">
<netui:hidden dataSource="{container.item.contact_id}" tagId="chbox4" />
<input type="checkbox" value="false" onclick="selectAllEvents('chbox4')">Select All
</td>
</netui-data:choice>
</netui-data:repeaterItem>
<netui-data:repeaterFooter></netui-data:repeaterFooter>
</netui-data:repeater>
</tr>
<!-- END Select ALL checkboxes -->
</table>
</td>
<tr align="right">
<td>
<netui:button type="submit" value="Cancel" action="begin" styleClass="BlackNorm8"></netui:button>
<netui:button value="Update" styleClass="BlackNorm8"/>
</tr>
</table>
</netui:form>hi ,
i dont know anything about delphi but from the experience from VB if the connection to oracle in delhpi doesnt recognise object type data field. Then try using OO4O drivers from oracle.if u use these drivers then u can access the sdo_geometry field !
Hope this helps
Vikesh -
How can I use only the most recent data in an average?
I have a class which has regular listening quizzes. If a student's average from the last three tests falls below 10 points (out of 20), then that student has to come in for extra practice.
My Sheets are set up with the students' names running down column A. Test 1 is column B. A a check box for whether students handed in the pre-listening homework is in column C. The test and homework column pattern is continued for tests 1 through 20.
I then have an average for all the tests for that student further over to the right.
Next to the overall average, I would like to make a column with an average showing only the latest three test scores. So, for example, the students have just finished test 10, the average of test 10, 9 and 8 would appear, but everything prior to that would be ignored.
I appreciate any suggestions on a formula for how I could make that happen.
Thank you!CB,
Here's one approach. Note that I used Header Columns to make the programming easier. If you choose not to use Header Columns, you can adjust the formulas to account for the difference.
The formula in Overall Average is: =IFERROR(AVERAGE(2:2), 0) for Alice. Fill Down.
The formula in Last Three Scores average is: =IF(COUNT(2:2)<3, B, AVERAGE(OFFSET(D2, 0, (COUNT(2:2)-3)*2, 1, 6))) for Alice. Fill Down.
Regards,
Jerry -
How Can I delete multiple messages from the same address in Mac Mail
Hope this is in the correct Community. Hope someone can help me to delete multiple email messages from the same email address.
At the moment I can do it by holding down the Command key and highlighting each email, but that can be difficult with many messages
to delete. Is there a quicker way?
Thanks for any help on this.Thanks for the reply, appreciate your input. I did find another way of doing it and that is to highlight the first e-mail, hold down the shift key and click on the last one. That highlights them all and then they can all be deleted. Your ideas also work of course and I thank you for that. Cheers.
-
How can I sync my contacts from my macbook address book to my iphone
i have my contacts in my macbook (address book) and now i need that on my IPhone. can any one help
on your Mac, go to System Preferences > iCloud
Check you have the "contacts" box activated
on your iPhone, go to Settings > iCloud
Check if you have the same Apple ID you use on Mac (if not, please enter the same ID)
After that, activate the "contacts" on your iPhone too.
it is supposed to work -
How can I use a labview VI as a CVI instrument driver
I have a VI for the Keithley 485 that would like to convert into a form usable by CVI. I don't have labview so I cannot generate a DLL based on the VI.
daquiry:
I've downloaded the 485 driver from both the NI Instrument Driver Network and the Keithley site, any they are both written natively in G (LabVIEW). The driver is rather simple, and is just making 488.2 / VISA calls. Keithley's site also doesn't offer drivers for the 485 in any language other than LabVIEW. This surprises me. I would suggest contacting Keithley and verifying that no C driver exists for the 485. If that's the case, then you may have to write a driver yourself. The 485 Quick Reference guide should have a description of all the available GPIB commands, along with sample code. Since you probably won't need the full range of functionality of the GPIB interface, writing a driver for what you do need shouldn't be t
oo bad.
I've written a short instrument driver which contains only a simple read() function. In implementing this, I've endeavored to translate the G code into C, but unfortunately, I don't have an instrument, so I haven't been able to test it.
Hope this helps..
-- Chris
Attachments:
cviKe485.zip 5 KB
Maybe you are looking for
-
My Lenovo G770 will not boot in normal or safe mode. I usually escape out of the boot optimizer. Today I let it run and it went to the "starting windows" screen with a brief startup of the windows 7 animation...it freezes for a second, then a quick
-
Videos in my iTunes are not playing back correctly.
Every time I choose to play on of my music videos purchased from iTunes, it playsback really distorted and fuzzy sounding. I have checked all my connections ot see it it was a speaker issue, and I also checked to see if these same videos would play o
-
Yosemite slows MacBook Pro to a crawl
Recently installed Yosemite and must now wait lengthy periods for MacBook to do anything. Read other posts but can't figure out what the specific problem is so have done a Etrecheck included here. Thanks for any help. Problem description: Yosemite
-
Is it possible to sort my albums randomly?
I know you can sort it alphabetically, by year, by genre, etc. But I miss the old days when I would browse through my stack of cds and come across a forgotten gem. I know I can do a party shuffle of complete albums. But I want to view my entire iTune
-
My 4s Goes to speakerphone automatically while calling and does not go back to normal even after disabling speaker phone button AlsO sometimes I. Cannot hear anything in normal speaker even though the call Is going through and has been re ieved on th