One of channel is read at 5V ONLY when X 5V and Y 5V by dmm
I want to take two voltage simultaneously. One of the data record and hold at 5V when it is over 5V while other is below 5V. Other cases are normal say both are over 5V or blow 5V.
Attachments:
Simple_Digital_Multimeter_x2.vi 50 KB
I've written an example that does what you want without hardware. If you run the example you will see that the waveform chart will hold at 5 only when reading1 is above 5 AND reading2 is below 5. Go ahead and change reading1 and reading2 manually while the program is running and you'll get the idea. You will need to add the VIs to read from your hardware and you will be set. I hope this helps.
Regards,
Todd D.
Applications Engineer
National Instruments
Attachments:
OverNBelow5.vi 28 KB
Similar Messages
-
How to read serial port only when new data has been sent to it
I've written this very simple vi to read the serial port whenever the MKS Helium Detector sends a new value. The timing of new data is controlled directly from the front panel of the MKS instrument. I thought it was as simple as looking at the "bytes at port", and reading the port only if the value is not zero. The problem I'm having is that the read function is occuring whether I want it to or not. Consequently, the "Scan from String" function is returning an error (0) once in a while, because it's reading the serial port as it's being updated (I think). Apparently, when the port is in the process of being updated, it is not zero. Anyway, I'm assuming there is a simple fix, but I'm having no luck finding the Easter egg. Any help would be, as always, very much appreciated.
Attachments:
MKSRead.vi 55 KBYou can approach your problem in a couple of ways. The way you've got it written now, as soon as the number of bytes is non-zero, you read and convert. This means that when a partial string is there, you conversion is nor correct. One way is to wait until non-zero bytes like you do now, and then in another loop, read until the byte count is equal to zero and then do the conversion. You can also read until the cr\lf is detected and then do the conversion on the string. You can also enable the termination character for the read but then you'll have to increase the number of bytes to read to something other than just the number of bytes first available. If the instrument always returns the same number of bytes, you can use that as a constant for the VISA Read. Then the read will terminate whenever the byte count OR the termination character is detected.
I modified your VI to show you how you might put it in a loop and what for the CR/LF to be detected. You would want to add a timeout to this so that if the character does not show up, the loop will not run infinitely
Attachments:
MKSRead_mod.vi 68 KB -
Can I use more than one version of Adobe Reader on an iPad, 8.1 touch and 11.1
Can I use more than one version of Adobe Reader on an iPad adobe Reader Touch and Reader 11.1 . . I use Acrobat XI Pro although I had some old files that were stored on adobe.com from a prior version of acrobat 9 student edition.
I guess the same question for my Surface Pro2 Computer might apply, although I gather from what I read that you shouldn't have two versions of reader on a computer.If I may add a qualification: on a device running full Windows 8, you may have both Adobe Reader Touch and Adobe Reader (normal desktop edition). This does not apply to the primitive devices which cannot run desktop apps (running "Windows RT"), and while I may be wrong, I believe that the Surface 2 is such a device.
-
I am using the 6031E series board. The EXTMUX is setup to pulse on each convert pulse. While taking data, I am getting a pulse on the EXTMUX for each sample taken, and a pulse for each time the 6031E switches its own internal mux. Is there anyway to only have the EXTMUX line pulse ONLY when a sample is taken, and not when the internal mux switches?
If you are reading the DAQ-STC manual, the signal I am talking about is the EXTMUX. If you are reading the PCI E Series manuals, the signal I am talking about is called SCANCLK (just to make things easier to understand, I guess??). The EXTMUX is setup through the MITE, and will pulse after every convert signal. My problem is that it also pulses when the internal mux changes as well.
So (for simplicity), if I wanted 2 channels, with 5 samples on each channel, and a mux outside the card on each line, the EXTMUX signal would sync the external hardware with the card/software.
In theory I would expect 10 pulses on the EXTMUX/SCANCLK pin, but in reality I get 12 pulses. If I had 3 channels, 5 samples per channel, (Expected 15 pulses) I end up getting 18 pu
lses in reality. This throws off any kind of sync to the outside world. -
Sometimes when starting up my iMac it shows only a folder icon with a question mark in it. Nothing happened. Only when start up again it runs ok.
What can be the cause of this.
thanks for your help
HansThat's an indication your Mac can't find a system folder to boot from.
Open System Preferences > Startup Disk
Select: MacintoshHD OS X
For OS X v10.4, v10.5, and v10.6 > A flashing question mark appears when you start your Mac
Helps when you ask for help to tell us which Mac OS X is installed.
If you aren't certain, click your Apple menu icon top left in your screen. From the drop down menu click About This Mac.
The version is noted there. -
Hi all.
My plugin reads a ini file to configurate the main menu.
It is possible read this file when starting InDesing and hide some submenus created in Myplugin.fr?
I have no problem to hide/show a menu, but I don´t know what is the first event that runs after loading my plugin.
Is there other possible way to do this?
Thanks in advance.
Best regards,
Juanma.Have you tried implementing a startup/shutdown service provider (IID_IAPPSTARTUPSHUTDOWN)? If it's too late to hide the menu, then an IMenuFilter/IActionFilter should do the job for you to hide menu. Or you can dynamically build the menu on the fly too (see dynamicmenu sample from SDK)
-lee -
Can read sharred variable only when the vi is ran a second time
In an initialization VI, a shared variable is populated with information from a config file. There is no problem here. The variable is written to. However, when I read from the shared variable in a second vi, the variable only appears to have content the second time the vi is open and ran. First time the vi is open an ran, it errors, saying the shared variable is empty. I tried saving the shared variable library, click deploy and even auto deploy on the library and then saving the project, but nothing happens. Any experiences, tips, ideas or handfulls of money that may help?
You have not specified whether you are creating a single-process shared variable or a network published. In both cases, LabVIEW creates the 'client-side' buffer the first time a Shared Variable node
attempts to read from the shared variable. This behavior
results in a value not being read the first time or a slighlty longer time on the initial execution. Try to read the variable at least once outside the loop to 'warm up' and then read inside the loop. Have a look at the following article:
Using the LabVIEW Shared Variable
Let me know if that helps or if you have additional questions.
Adnan Zafar
Certified LabVIEW Architect
Coleman Technologies -
I recently traveled to Europe and subscribed to the European 3G for one month (as this was the minimum amount of time to purchase). I am back in states and it seems to be slowing my ipad down distinctly. How do I unsubscibe to the European 3G?
Hi Mike, Should not be necessary to unsubscribe to the European 3G provider - you just need to remove the micro sim card from your Ipad. If by chance you find out that your Ipad is "locked" into this European provider then you will need to contact them to unlock. You then need to sign up to a local broadband internet provider to buy another 3G micro sim card on a plan, insert this into your Ipad and set up again. NickGS
-
Error reading/writing file message when opening garageband and/or files
I've been recently getting this message when I open garageband and files
"Error reading/writing file\U201Ccom.apple.garageband.cs\U201D
I've been in and repaired disk permissions and all that it says it is all fine, reinstall garageband and message still comes up, weird.
not only is garageband being a nuisance, Mac OS X 10.6.2 is being a pain when shutting down telling me to restart the computer. This only happened since upgrading to 10.6. No one as yet knows this promble so I'm gonna have to ring apple and see what is going on here.
and also my other problem is that mac doesn't seem as snappy anymore I noticed this before upgrading to 10.6 and made no difference when "cleanly" installing 10.6. I get a colour wheel popping up and i'm having to wait with simple tasks. iMac only 2 years old.i give up with this discussion forum no no one knows anything
-
How to open Reader in firefox tab when both acrobat and reader are installed.
I would like to open pdf files in firefox using Adobe Acrobat Reader.
I have both Acrobat Pro or whatever its called and Acrobat Reader installed.
Presently going to firefox's tools, options, then selecting the file types option I cannot select any plugin to open my pdf's besides what's labeled as "adobe acrobat" but which executes an in-tab instance of Adobe Acrobat Pro, despite the ambiguous language on the plugin which I suspect stems from Adobe's evolving and confusing conventions regarding just what Adobe Reader, Adobe Acrobat, Adobe Acrobat Reader, and Adobe Acrobat Pro really is.
Anyways, how to make pdfs open in-tab instances of Adobe Acrobat Reader while I have both the Reader and the Pro installed?
Is there a sepperate plugin I need or something? Any way to get the "adobe acrobat plugin" open acrobat reader and not acrobat pro?
Any help is very Appreciated
I can not find this point explained in any of the documentation adobe suppliesAnswered in your other thread.
http://www.adobeforums.com/webx/.59b54f25/1 -
Ejb3 app functions only when both .jsf and .jsp is present
Hi All,
I have the following problem: when I try to remove either of booking.jsp and booking.jsf (having same contents) from the directory tree of app.war (following), I get the message HTTP status 404 The requested resource (/s_ejb3_jb421_tobbfele/pages/booking.jsp) is not available.
Thank you in advance: Balazs Bamer
JBoss 4.2.1 output:
16:23:21,101 INFO [MyfacesConfig] No context init parameter 'org.apache.myfaces.PRETTY_HTML' found, using default value true
16:23:21,101 INFO [MyfacesConfig] No context init parameter 'org.apache.myfaces.ALLOW_JAVASCRIPT' found, using default value true
16:23:21,101 INFO [MyfacesConfig] No context init parameter 'org.apache.myfaces.DETECT_JAVASCRIPT' found, using default value false
16:23:21,101 INFO [MyfacesConfig] No context init parameter 'org.apache.myfaces.AUTO_SCROLL' found, using default value false
16:23:21,101 INFO [MyfacesConfig] No context init parameter 'org.apache.myfaces.ADD_RESOURCE_CLASS' found, using default value org.apache.myfaces.renderkit.html.util.DefaultAddResource
16:23:21,101 INFO [MyfacesConfig] No context init parameter 'org.apache.myfaces.ADD_RESOURCE_CLASS' found, using default value org.apache.myfaces.renderkit.html.util.DefaultAddResource
16:23:21,121 INFO [MyfacesConfig] No context init parameter 'org.apache.myfaces.CHECK_EXTENSIONS_FILTER' found, using default value true
app.war (inside s_ejb3_jb421_tobbfele.ear) contents, with only the booking.jsf:
META-INF/
META-INF/MANIFEST.MF
WEB-INF/
WEB-INF/web.xml
WEB-INF/lib/
WEB-INF/lib/com-sun-rave-designtime.jar
WEB-INF/lib/commons-beanutils.jar
WEB-INF/lib/commons-chain.jar
WEB-INF/lib/commons-codec.jar
WEB-INF/lib/commons-collections.jar
WEB-INF/lib/commons-digester.jar
WEB-INF/lib/commons-el.jar
WEB-INF/lib/commons-fileupload.jar
WEB-INF/lib/commons-lang.jar
WEB-INF/lib/commons-logging.jar
WEB-INF/lib/commons-validator.jar
WEB-INF/lib/jakarta-oro.jar
WEB-INF/lib/jsfcl-dt.jar
WEB-INF/lib/jsfcl.jar
WEB-INF/lib/jstl-api.jar
WEB-INF/lib/jstl-impl.jar
WEB-INF/lib/openide.jar
WEB-INF/lib/propertyeditors.jar
WEB-INF/lib/shale-clay.jar
WEB-INF/lib/shale-core.jar
WEB-INF/lib/shale-remoting.jar
WEB-INF/lib/shale-tiger.jar
WEB-INF/lib/shale-tiles.jar
WEB-INF/lib/shale-view-1.0.4.jar
WEB-INF/lib/tiles-core.jar
WEB-INF/lib/tomahawk-1.1.2-SNAPSHOT.jar
WEB-INF/classes/
WEB-INF/classes/com/
WEB-INF/classes/com/loxon/
WEB-INF/classes/com/loxon/shaleproba/
WEB-INF/classes/com/loxon/shaleproba/FlightServlet.class
booking_messages.properties
booking_messages_en.properties
booking_messages_es.properties
booking_messages_fr.properties
images/
pages/
theme/
index.html
pages/booking.jsf
theme/style.css
WEB-INF/faces-config.xml
index.html:
<html>
<head>
<meta http-equiv="Refresh" content="0; URL=pages/booking.jsf">
</head>
</html>faces-config.xml:
<?xml version="1.0"?>
<!DOCTYPE faces-config PUBLIC
"-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.1//EN"
"http://java.sun.com/dtd/web-facesconfig_1_1.dtd">
<faces-config>
<managed-bean>
<managed-bean-name>flightServlet</managed-bean-name>
<managed-bean-class>com.loxon.shaleproba.FlightServlet</managed-bean-class>
<managed-bean-scope>request</managed-bean-scope>
</managed-bean>
</faces-config>web.xml:
<?xml version="1.0"?>
<web-app xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
version="2.4">
<description>debug web.xml</description>
<context-param>
<param-name>javax.faces.STATE_SAVING_METHOD</param-name>
<param-value>client</param-value>
<description>
State saving method: "client" or "server" (= default)
See JSF Specification 2.5.2
</description>
</context-param>
<context-param>
<param-name>javax.faces.ALLOW_JAVASCRIPT</param-name>
<param-value>true</param-value>
<description>
This parameter tells MyFaces if javascript code should be allowed in the
</description>
</context-param>
<context-param>
<param-name>javax.faces.DETECT_JAVASCRIPT</param-name>
<param-value>false</param-value>
</context-param>
<context-param>
<param-name>javax.faces.PRETTY_HTML</param-name>
<param-value>true</param-value>
<description>
If true, rendered HTML code will be formatted, so that it is "human readable".
i.e. additional line separators and whitespace will be written, that do not
influence the HTML code.
Default: "true"
</description>
</context-param>
<context-param>
<param-name>javax.faces.AUTO_SCROLL</param-name>
<param-value>true</param-value>
<description>
If true, a javascript function will be rendered that is able to restore the
former vertical scroll on every request. Convenient feature if you have pages
with long lists and you do not want the browser page to always jump to the top
if you trigger a link or button action that stays on the same page.
Default: "false"
</description>
</context-param>
<filter>
<filter-name>extensionsFilter</filter-name>
<filter-class>org.apache.myfaces.webapp.filter.ExtensionsFilter</filter-class>
<init-param>
<param-name>maxFileSize</param-name>
<param-value>20m</param-value>
<description>Set the size limit for uploaded files.
Format: 10 - 10 bytes
10k - 10 KB
10m - 10 MB
1g - 1 GB
</description>
</init-param>
<init-param>
<param-name>uploadThresholdSize</param-name>
<param-value>100k</param-value>
<description>Set the threshold size - files
below this limit are stored in memory, files above
this limit are stored on disk.
Format: 10 - 10 bytes
10k - 10 KB
10m - 10 MB
1g - 1 GB
</description>
</init-param>
</filter>
<filter-mapping>
<filter-name>extensionsFilter</filter-name>
<servlet-name>Faces Servlet</servlet-name>
</filter-mapping>
<filter-mapping>
<filter-name>extensionsFilter</filter-name>
<url-pattern>/faces/myFacesExtensionResource/*</url-pattern>
</filter-mapping>
<filter>
<filter-name>shale</filter-name>
<filter-class>
org.apache.shale.faces.ShaleApplicationFilter
</filter-class>
</filter>
<filter-mapping>
<filter-name>shale</filter-name>
<url-pattern>/*</url-pattern>
<dispatcher>REQUEST</dispatcher>
<dispatcher>FORWARD</dispatcher>
</filter-mapping>
<servlet>
<servlet-name>Faces Servlet</servlet-name>
<servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>Faces Servlet</servlet-name>
<url-pattern>*.jsf</url-pattern>
</servlet-mapping>
<welcome-file-list>
<welcome-file>index.html</welcome-file>
</welcome-file-list>
</web-app>booking.jsf:
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
<%@ taglib uri="http://struts.apache.org/shale/core" prefix="s" %>
<%@ taglib uri="http://myfaces.apache.org/tomahawk" prefix="t"%>
<html>
<head>
<title>Metro Systems </title>
<link href="../theme/style.css" rel="stylesheet" type="text/css">
</head>
<body>
<div id="container">
<f:loadBundle basename="booking_messages" var="booking_messages"/>
<f:view>
<h3> <h:outputText value="#{booking_messages['welcome']}"/> </h3>
<h:form onsubmit="return validateForm(this);">
<table align="center" cellpadding="5" cellspacing="5">
<tr>
<td>Email</td>
<td><h:inputText id="email" value="#{flightServlet.flight.email}">
<s:commonsValidator type="required"
arg="Email"
server="true"
client="true"/>
<s:commonsValidator type="email"
arg="#{flightServlet.flight.email}"
server="true"
client="true"/>
</h:inputText>
</td>
</tr>
<tr>
<td><h:outputText id="departure" value="#{booking_messages['date']}"/></td>
<td>
<t:inputCalendar monthYearRowClass="yearMonthHeader" weekRowClass="weekHeader"
currentDayCellClass="currentDayCell" value="#{flightServlet.flight.departure}" renderAsPopup="true"
popupTodayString="#{booking_messages['popup_today_string']}" popupWeekString="#{booking_messages['popup_week_string']}">
<s:commonsValidator type="required"
arg="Departure date"
server="true"
client="true"/>
</t:inputCalendar>
</td>
</tr>
<tr>
<td><h:outputText value="#{booking_messages['city']}"/> </td>
<td> <h:selectOneMenu value="#{flightServlet.flight.city}" required="true">
<f:selectItem itemLabel="Los Angeles" itemValue="Los Angeles"/>
<f:selectItem itemLabel="Madrid" itemValue="Madrid"/>
<f:selectItem itemLabel="Mexico City" itemValue="Mexico City"/>
<f:selectItem itemLabel="New York" itemValue="New York"/>
<f:selectItem itemLabel="Paris" itemValue="Paris"/>
</h:selectOneMenu></td>
</tr>
</table>
<h:message for="email" styleClass="errors"/>
<h:message for="departure" styleClass="errors"/>
<s:validatorScript functionName="validateForm"/>
<h:commandButton type="submit" value="#{booking_messages['reserve']}" action="#{flightServlet.reserve}"/>
<h:messages/>
</h:form>
</f:view>
</div>
</body>
</html>ear application.xml:
<application>
<display-name>JSF Shale EJB3 JBoss 4.2.1</display-name>
<module>
<web>
<web-uri>app.war</web-uri>
<context-root>/s_ejb3_jb421_tobbfele</context-root>
</web>
</module>
<module>
<ejb>app.jar</ejb>
</module>
</application>ear jboss-ap.xml:
<jboss-app>
<loader-repository>
s_ejb3_jb421_tobbfele:archive=s_ejb3_jb421_tobbfele.ear
</loader-repository>
</jboss-app><servlet-mapping>
<servlet-name>Faces Servlet</servlet-name>
<url-pattern>*.jsf</url-pattern>
</servlet-mapping>tells JSF, that it will get accessed via urls which end in jsf. So it's just a logical name
e.g. index.jsf
<context-param>
<param-name>javax.faces.DEFAULT_SUFFIX</param-name>
<param-value>.jsp</param-value>
</context-param>Tells JSF that the content filename will end in .jsp
Default is jsp anyway, so this param is optional.
Edit:
http://www.exadel.com/tutorial/jsf/jsftutorial-kickstart.html
Chapter "Creating the index.jsp File" might help you with the question about processing "jsp only" pages
Edited by: dube on Oct 26, 2007 2:11 AM -
A couple days ago the font in the apps I am playing like Farmville, Puzzled Hearts and Cafe World went small and doesn't show the whole page either. Its not like that in Internet Explorer so that tells me its either a Facebook or Firefox problem. The Home page is the right size font I use. It's just so strange...
Thanks and hope it can be fixedReset the page zoom on pages that cause problems: <b>View > Zoom > Reset</b> (Ctrl+0 (zero); Cmd+0 on Mac)
* http://kb.mozillazine.org/Zoom_text_of_web_pages -
i had problem for my itunes wifi sync, in general setting itunes wifi sync, i got 2 folder name 1st one is one i want sync for app, movie,music and tones, somehow i got second one folder i dont want is photos only when plug into it only sync for photo the rest are gone on itunes screen and not sync, please help me how can i delete second one folder? i tried click on first one not moved and syns only sync on second one folder
thanks. i did try delete itunes and download back but still there, i tried restore iphone to itunes a few months back but itunes screen still on new second folder not the first one
mjphu
[email protected]I own the movies and I want them to stay in my iTunes library basically forever.
But in both cases the file name no longer shows in the movie list, so I don't know how to re-download it from the Cloud.
iTunes prefs > Store > Show iTunes in the Cloud purchases.
This will show all your iTunes purchases in your library with a cloud icon down arrow. Click the icon to redownload or click on Play to stream without downloading.
Also see this , -> Download past purchases
and techncially, you don't "own" the movie, You simply have a license to use it.
Yet the first thing iTunes does when you hit the delete key is tell you that it will remove the movie forever from all devices and the library.
Actually, no it does not tell you that.
FYI: You should keep copies of all yoru iTnue spurahses as the labels/movie studios/copyright owners can pull their product at anytime and it won't be available to redownload.
Suggestions here -> http://www.apple.com/feedback/ -
This is a Question: I have one random Apple ID that comes up only when I'm trying to access Apps or iTunes. I have another Apple ID with a password that works just fine for everything else. I do not have a password for this random id. How can I get rid of it? I can't perform updates is the big issue.
Jonathan:This seems to make a lot of sense. My only follow up question is: will I have any trouble getting iTunes and
Apps back?
Will apple charge me? I really can't remember clearly, but it seems to me that iTunes and Apps were present on the
iPad2 that was given to me as a gift, but I could be mistaken.
If I am all clear for getting those two stores back with an easy selection, then I will use your solution.
Have a great season, my friend- this was driving me nuts! Thank you so much!
Dianep -
JavaScript Function Calls it is called twice only when add the component
Hi,
I am developing a SAP Design Studio Extension and I noticed that when I add the component on Application, SAP Design Studio calls the JavaScript SDK Functions twice only when I drag and drop the component.
I found out about this just put an alert message in which JavaScript Function (init, beforeUpdate and afterUpdate).
Is it ok to work this way?
I am really curious if anyone else has come across this issue.
Thank you,
Fabio AlmeidaHi Fabio,
Yes, there does appear to be an issue with SDK component functions being called twice. Mike Howles has implemented a workaround in this Toolbar example code. Refer to the code in the this.init function at the end.
Regards,
Mustafa.
Maybe you are looking for
-
Cannot login to secure banking website - Chase - Security Certificates?
I cannot find another post by anyone who is having this problem. At the login web page for Chase, here: https://chaseonline.chase.com I do not have autocaps or caps lock on. I have been very meticulous when entering my password, many times, with no l
-
Lookup Local Interface from client app
I have had an entity bean running using the remote interface. When I convert over to using a local interface I have problems with the jndi lookup. My environment is JDK 1.4, J2EE 1.3.1, Win 2k. The deployment using the J2EE RI works fine. I need to k
-
Mapping buttons from imac Bluetooth Keyboard to Macpro
I tried a friend's new mini bluetooth keyboard (one that sells with new imac) on my Macpro, and some of the buttons do not seem to map correctly. Example: volume was effecting expose. Is it just not meant to be used with anything other than an imac,
-
Urgent!!!Need code to fetch all sales order data and download to flat file
urgent!!!Need code to fetch all sales order data and download to flat file
-
Notes should sync with stickies
am I the only one who would like the see the Notes application on the iPhone sync with the Stickies application on my Mac? I know there is a desire for Notes to sync with the Notes function of Mail on the desktop but I'm just curious if anyone else w