How to use the CJC channel with 9211 in labview?
Hello there,
I have cDAQ-9172 with the 9211 module for some thermocouple measures.
I want to use 1 channel for the CJC and the others for normal teperature measurements.
I have the VI attached.
Thanks,
Sandro
Attachments:
Cont Acq Thermocouple Samples-HW Timed2.vi 46 KB
Hi Sandro,
By "I want to use 1 channel for the CJC", are you talking about using the NI 9211's built-in CJC channel, _cjtemp?
If so, go back to the original example code and set the CJC Source control to Built-In. This will cause DAQmx to use _cjtemp as the CJC source. You won't see the CJC temperature on the graph by default: Reading the CJC Values with the Thermocouple Measurements.
If you have an external CJC sensor connected to one of the thermocouple channels (ai0:3), then create a global channel in MAX (thermistor, or voltage w/custom scale), specify the name of that channel in the CJC Channel control, and set CJC Source to Channel. It's better to use the built-in CJC sensor unless the external CJC sensor is definitely more accurate, and not less.
Regarding the Start button you added to the example VI, I would recommend moving the call to DAQmx Create Channel out of the polling loop so that it doesn't leak memory by creating DAQmx tasks that never get used. Adding a call to Wait Until Next ms Multiple (from the Timing palette) or Wait For Front Panel Activity (from the Dialog & User Interface palette) would prevent the polling loop from wasting CPU cycles.
Brad
Brad Keryan
NI R&D
Similar Messages
-
How to use the class CL_CTMENU with the method DISABLE_FUNCTIONS
Hi Friends,
How to de-activate some functions in the Menu bar?
Eg: - Sales document
Create
Change
Display
I want to de-activate "Change"
In other words: - How to use the class CL_CTMENU with the method DISABLE_FUNCTIONS in my program.
Regards,
Hari
Edited by: Bhatlapenumarthy Hari Krishna on Jun 9, 2008 5:22 PMKrishna,
It is not possible to deactivate the CHANGE option in themenu bar using the method disable_functions of cass CL_CTMENU. This method allows you to deactivate only the function codes of the CONTEXT MENU, which is available only when u press the left mouse button.
U can use the SET PF-STATUS 'XXX' EXCLUDING fcodes option to disable the CHANGE.
*****Reward points if useful
Regards,
Kiran Bobbala -
How to use the same channel to send a file and messages to the server
I'm trying to develop a simple program that will send and receive files from the server and in the same time I need to communicate with the server through the messages
I'm using TCP Socket
my problem is
I have only one channel
so, I have no option, either I can use it for sending the file itself or sending the message .. but not both !
my question is : How can I use the same channel for sending and receiving (file & message)
I would appreciate for any clue or hint
bestkajbj wrote:
kmarwani wrote:
Thanks for reply
yes, that what I'm thinking to do
but, in case of sending binary file, if I attached a flag on its header, will it corrupt the file ?
bestThe other end would of course need to decode the messages that you get, and only write the "data" part to the file.Thanks
I'm gonna try to hard-code what you suggest and i will post what happen with me here
even though I'm not sure how can I add header to a binary file and remove it from the file at other end. (coz I read it as stream and send as array without touching its contents)
this how I'm sending the file
ConnSocket = CSocket.accept();
ToClient = new DataOutputStream(ConnSocket.getOutputStream());
File myFile = new File("abc.jpg");
FileInputStream myFileInStream = new FileInputStream(myFile);
BufferedInputStream mybuffInStream = new BufferedInputStream(myFileInStream);
myBytArray = new byte[(int) myFile.length()];
mybuffInStream.read(myBytArray, 0, myBytArray.length);
ToClient.write(myBytArray, 0, myBytArray.length);
ToClient.flush();
myFileInStream.close();best -
UIX/JSP - How to use the UIX Controller with UIX/JSP
After reading the UIX Developers Guide I am under the impression that I could use the UIX Controller with UIX/JSP pages. Is this correct and are there any available examples?
Bill G...It's correct, but I'm afraid we don't have much (read as "any")
documentation on how to do that - besides reading through the
gobs of Javadoc and guessing how to put it together.
Half of the problem is solved by registering JspPageDescriptions
on a PageBroker (e.g., UIXPageBroker) to tell the UIX Controller
to use a JSP to render a particular page, instead of a UIX XML
document.
The other half is getting the JSP to send requests back to
the UIX Controller. Depending on how you've chosen to name
your pages, create either a DefaultPageEncoder or ExtensionPageEncoder
inside your JSP, and use that to create destination URLs. -
How to use the Bloggie camera with Apple iMovie software.
Solved!
Go to Solution.Follow these steps to use the Bloggie® camera with the Apple® iMovie® program.
Power on the camera and connect directly to a USB port on the computer.
Once the camera is detected by your computer, the iMovie software should open automatically. If the iMovie software does not open automatically, go to the Applicationsfolder and open it from there.
In the iMovie window, choose Import from Camera...
Choose which clips you want to import and choose the Done button or choose the Import All...button to import all the clips.
NOTE: You can use the standard iMovie interface to edit and create movies from your video taken with the camera. For more information about how to use the iMovie program, refer to the Help menu in iMovie or visit http://www.apple.com/support/imovie. -
How to use the crypto api with gemalto cyberflex 32k ?
Hello ,
I've done many javacard programs using this method :
_compilation with javacard kit 2.2.1
_convertion into ".cap" with the javacard kit 2.1.2
All this programs work fine with this method : helloworld, read, write in the card, ....
But when i want to use the crypto api, i can't charge the program in the card (just by adding 2 lines for generating keys):
----------> returns 0x80206A80 (6A80: Wrong data / Incorrect values i data.)
I think it's because i use the 2.1.2 version , but if i use the 2.2.1 to convert , it's another error and no program work with this method.....even helloworld doesn't work...
-----------> returns 0x80206985 (6985: Command not allowed - Conditions of use not satisfied.)
I thing i must change my gpshel command , but i have read many forums but can't find the configuration for my card cyberflex 32k, some people had similar problems so they used the kit 2.1.2 combined with 2.2.1 like me, but i think they can't use the crypto api with this.........
Any help will be apreciated,
kind regards
Franck
Edited by: jojo85 on Mar 20, 2009 11:03 AMHello,
Thanks Sonnyyu,
I deleted my gpshell 1.4.2 directory and i installed gpshell 1.4.0 instead like they said , to avoid some bugs
i've tested the exemple CardEdgeII.ijc ,
here's what i got:
mode_201
enable_trace
establish_context
card_connect -readerNumber 1
select -AID a0000000030000
open_sc -security 1 -keyind 0 -keyver 0 -mac_key 404142434445464748494a4b4c4d4e4f -enc_key 404142434445464748494a4b4c4d4e4f
delete -AID A0000003230101
delete -AID A00000032301
delete -AID A00000000101
delete -AID A000000001mode_201
enable_trace
establish_context
card_connect -readerNumber 1
select -AID a0000000030000
Command --> 00A4040007A0000000030000
Wrapped command --> 00A4040007A0000000030000
Response <-- 6F188407A0000000030000A50D9F6E060011020201009F6501FF9000
open_sc -security 1 -keyind 0 -keyver 0 -mac_key 404142434445464748494a4b4c4d4e4f -enc_key 404142434445464748494a4b4c4d4e4f
Command --> 8050000008674672AE4B85E01800
Wrapped command --> 8050000008674672AE4B85E01800
Response <-- 000081410002B2C600E4010151982BB4CF843B1431E57DB6418652AE9000
Command --> 848201001073CF9B92B3F11E10BE12D1318E9A8095
Wrapped command --> 848201001073CF9B92B3F11E10BE12D1318E9A8095
Response <-- 9000
delete -AID A0000003230101
Command --> 80E40000094F07A000000323010100
Wrapped command --> 84E40000114F07A000000323010149D51E784E07966B00
Response <-- 6A88
delete_applet() returns 0x80206A88 (6A88: Referenced data not found.)
delete -AID A00000032301
Command --> 80E40000084F06A0000003230100
Wrapped command --> 84E40000104F06A00000032301E3788AF4A9E32C2100
Response <-- 6A88
delete_applet() returns 0x80206A88 (6A88: Referenced data not found.)
delete -AID A00000000101
Command --> 80E40000084F06A0000000010100
Wrapped command --> 84E40000104F06A00000000101C3CC96E6E54AF0ED00
Response <-- 6A88
delete_applet() returns 0x80206A88 (6A88: Referenced data not found.)
delete -AID A000000001
Command --> 80E40000074F05A00000000100
Wrapped command --> 84E400000F4F05A000000001DA73D168B218692C00
Response <-- 6A88
delete_applet() returns 0x80206A88 (6A88: Referenced data not found.)
install -file CardEdgeII.ijc -nvDataLimit 12000 -instParam 00 -priv 2
install -file CardEdgeII.ijc -nvDataLimit 12000 -instParam 00 -priv 2
Command --> 80E602001705A00000000107A00000000300000006EF04C60231000000
Wrapped command --> 84E602001F05A00000000107A00000000300000006EF04C60231000019F52839EB52A80200
Response <-- 009000
Command --> 80E80000EFC48230F401000FDECAFFED010204000105A00000000102001F000F001F000A00290256006C2307000A04230000067F00060000000004010004002904000107A0000000620101010107A0000000620102010107A0000000620201000107A000000062000103000A0106A0000000010119CE06006C00800313000C040400051856FFFF1BA41A2A17FB1818183718A61971008300020001011100001E4F1EC51F771F9A1FA71FAC1FB31FBC1FCD1FF41FFD20082043204B205520662071008300030001010D0000209520B520C520D52101211C21742196221F2230226F227D22E1072307000640188C00861803880010
Wrapped command --> 84E80000F7C48230F401000FDECAFFED010204000105A00000000102001F000F001F000A00290256006C2307000A04230000067F00060000000004010004002904000107A0000000620101010107A0000000620102010107A0000000620201000107A000000062000103000A0106A0000000010119CE06006C00800313000C040400051856FFFF1BA41A2A17FB1818183718A61971008300020001011100001E4F1EC51F771F9A1FA71FAC1FB31FBC1FCD1FF41FFD20082043204B205520662071008300030001010D0000209520B520C520D52101211C21742196221F2230226F227D22E1072307000640188C00861803880010C9DE1DD3FD6CD8CE
Response <-- 9000
Command --> 80E80001EF08900B7F001C7B001C03104D387B001C041075387B001C051073387B001C061063387B001C07106C387B001C081065387B001C10061030387B001C1007103038187B001C037B001C925B8C004D6108119CFF8D005318100891008087011810089100808702AD02038F00803D0610108C002037AD020324940000807B001C037B001C925B8B002A7A05361A0525321A062529071F62071F10086C08119C108D00531607610EAD021F24940000802804700CAD011F2494000080280415046708119C108D0053031A07258D002E2905198B003016056A081167008D00531605076D08119C0F8D00531A08252906160504
Wrapped command --> 84E80001F708900B7F001C7B001C03104D387B001C041075387B001C051073387B001C061063387B001C07106C387B001C081065387B001C10061030387B001C1007103038187B001C037B001C925B8C004D6108119CFF8D005318100891008087011810089100808702AD02038F00803D0610108C002037AD020324940000807B001C037B001C925B8B002A7A05361A0525321A062529071F62071F10086C08119C108D00531607610EAD021F24940000802804700CAD011F2494000080280415046708119C108D0053031A07258D002E2905198B003016056A081167008D00531605076D08119C0F8D00531A082529061605045F95980396338536
Response <-- 9000
°
°
°
there are again many lines and the response is always 9000
i'll try to find a converter to convert the .cap files of my crypto application into .ijc files
thanks,
kind regards
Franck
Edited by: jojo85 on Mar 21, 2009 2:48 PM -
I am using the video editing software "Magix Video deluxe 2008 Pro". Is it correct that after buying Quicktime Pro I can use all features from the Pro version via the export window of my video editing software (which is already offering me Quicktime export with the free QT-version)?
I have a movie made with greenscreen and in my video editing software I have already seperated the person in front from the greenscreen. Now, how do I tell Quicktime, which parts should be transparent, so that Quicktime "knows" what information to write in the alpha channel?
Thanks a lot!
NilsI don't know about the software you used. If it made the "alpha" channel then you can enable it in QuickTime Pro by following these steps:
Open the file and then open the Movie Properties window.
Highlight the "Video" track and click the Visual Settings tab.
In the lower left corner is a pull down menu for "Transparency". Set it to Straight Alpha and use Save As to make a new file leaving your original untouched for further editing. -
How to use the class CL_PT_EMPLOYEE with GET PERNR?
Hi,
I saw this sample code on the forum.
Is it more performant than using the "RP-PROVIDE-..." macros?
Does the employee instance needs to be killed after each pass? How does it affects memory?
start-of-selection.
GET pernr.
<b>* Create employee instance</b>
gif_employee = cl_pt_employee=>get_employee( pernr ).
go_employee ?= gif_employee.
<b>* Append all other required infotypes to itab</b>
APPEND '0003' TO gt_infotypes.
CALL METHOD go_employee->get_infotypes
EXPORTING
i_itlist = gt_infotypes
i_fromdate = id_fromdate " start date
i_todate = id_todate " end date
* I_FILTER =
i_noauthcheck = 'X'
IMPORTING
e_result = gt_infty_request
e_retcd = gd_retcd.I think it that way. You are trying to compare and analyse old (don't say bad) programming school with a new (OO one) approach. Although, I am OO enthusiast and in any case I will try to convice you that OO aproach is better than classical one, you should know what SE30 was designed for. If you want to stress on OO design, use the one you mentioned, otherwise stick what SAP recommmends (please note, that I am "middle" school pupil, so I tried to learn all courses with my own experience and feelings from OO).
IMHO, OO aproach is a way of thinking, not something we can messure in sec. and compare to old school teaching. Some of your report should be desinged in classical way, some should be pure OO. Which one you choose, is up to you, your conclusions, your percives of ABAP language. For me OO was not injected in ABAP enough, to affect developers or to convince them using it in any case w/o doubts you have.
Regards
Marcin -
How to use the JE database with other data types than byte arrays?
Hi! I searched the javadoc of Berkley DB JE, for a way to introduce entry (but I need also retrieve) data with other type than byte arrays, e.g. String, or anything else, as int may be, etc.
Still, I didn't find any such way, because the main (only?!) method to entry data into an open database - according what I found in javadoc - is:
"public OperationStatus put(Transaction txn, DatabaseEntry key, DatabaseEntry data) throws DatabaseException"
and both this and the corresponding method for retrieves, are based on the same DatabaseEntry type, which allow only entry data on byte[] support.
What if I need to use Strings or int, or even char? I must do a special conversion from these types, to byte[], to use the database?
Thank you!On the doc page (this is also in the download package),
http://download.oracle.com/docs/cd/E17277_02/html/index.html
see:
Getting Started Guide
Java Collections Tutorial
Direct Persistence Layer (DPL)
All of these describe how to use data types other than byte arrays.
--mark -
Don't know how to use the air print with my ipads.
i just bought an mg3222 printer and i don't know how to figure out how to use air print with my ipad and ipad minis. Can anybody help??? Thanks
Hello.
In order to use the printer with your iOS devices, please make sure that the units are all connected to the same WI-Fi router. Once this has been done you should be able to print.
The initial Wi-Fi setup of the MG3222 would have to be done from a compatible Windows or Mac OSX computer.
If additional assistance is needed, feel free to call us at 1-800-OKCANON.
Did this answer your question? Please click the Accept as Solution button so that others may find the answer as well. -
How to use the pid vis with a two-state output
Hello
Could someone tell me how to regulate the temperature of a room with
a two-state heater (on/off), using the pid vi's.
Thanks,>> Could someone tell me how to regulate the temperature of a room
>> with a two-state heater (on/off), using the pid vi's.
In <[email protected]> [email protected] (Helmut Hullen) writes:
>You don't need the PID. A simple 2-state control does the work.
^^^^^^ ^^^^^^^ ^^^^^^^
Frankly, I tend to agree. However, if you _need_ PID control and _if_
your two-state heater is solid-state switched, there are other
options. For example, commerical PID temperature controllers with
zero-voltage switching (ZVS) operate by generating a slow enabling
pulse, then achieving proportional control by varying the duty cycle of
this enabling pulse. For instanance, if your enabling pulse is running
at 10-Hz, with 50% duty cycle,
then your heating element will be on for
50% of the time every 0.1 second.
You can use a programmable timer (National includes two on their MIO
cards) to program the 5 or 10 Hz output and its duty cycle. You might
have LabView execute the PID subVI once every two or three seconds to
adjust the duty cycle on the programmable timer so as to minimize the
feedback error=(tempSetPoint-currentTemp).
Why are you wanting to use LabView for PID temperature control in the
first place? There are some very good PID temperature controllers
(programmable through a serial port) with built-in solid-state ZVSs
and readouts for $900 that you can buy. They'll fit right into
a control panel, display and all. Sure beats messing with a
programmable timer card and its outputs, plus you get a digital panel
readout to boot.
/\ Mark M Mehl, alias Superticker (Supertickler to some)
<><> Internet: [email protected]
\/ Preferred UUCP: uunet!iastate.edu!mehl
Disclaimer: You got to be kidding; who would w
ant to claim anything I said? -
How to use the Camileo H30 with Power Supply
Hello
First: excuse my english, im from germany ;)
I have a Camilio H30. its was boughted used. I only got the camcorder & the original battery.
no extras (like usb cable or original power supply)
what i want: i need to film over some hours. The Battery cant make it. so i wanna use it with a power supply but when i put it in (throughh the mini usb a connector) the camcorder goes to charing mode (no actions are possible) but i want to use it fully functionality when power supply is connected.
how do i handle it ??
i got a power supply with 5V an 2,25A , i think its enough... or not??
The Label on the bottum side from the camcorder tells me 5V 2A....
Thanks 4 helping me :D
greetzoh ok i thought this is possible because in the main manual at the part when the display icons being explaind they show a full, half-full, emtpy- battery and a power connector icon. they call it "gleichstrommodus" sorry i have only the german manual. in english it should be co-corent flow mode or ac power mode.
im looking for a way to make the cam work with power supply only. i dont want to charge or even use the battery because i film over few hours ago and for that i dont need it.
my old dv cam works when the battery was plugged out with ac adapter only. thats very nice for me.
whatever. if this is not possible i sell this cam and buy another one ;)
thanks for your help ! -
How to use the sharing function with other pc on the Finder sidebar?
I discver my housemates' pc's names under "sharing" on the Finder sidebar. We all use the same wifi network at home. Neither they nor I have enabled anything so I'm just wondering what is that for and where am I able to control sharing options?
Also I can even access their iTunes libraries. How do these all work? Am I able to set any security options at all?On the doc page (this is also in the download package),
http://download.oracle.com/docs/cd/E17277_02/html/index.html
see:
Getting Started Guide
Java Collections Tutorial
Direct Persistence Layer (DPL)
All of these describe how to use data types other than byte arrays.
--mark -
How to use the same BSA with more than an operating unit ?
we have three operating units, sometimes a sales agreement is released from the three operating units, is there a way i can use the same sales agreemnet with the three operating units?
We had the same issue recently.
Users wanted same locator in the same org under different subinventories.
We suggested 2 solutions
1) Make the 1st locator segment=subinventory name (e.g. East.A.3.10, West.A.3.10)
2) Add a character to the first locator (e.g. EA.3.10, WA.3.10)
They picked up the 2nd option.
Hope this helps
Sandeep Gandhi
Omkar Technologies Inc.
Independent Techno-functional Consultant
513-325-9026 -
How to use the html:link with a arraylist
Hi everyone:
I want to display the data using struts html:link.
I query the database and place all the data to javabean,later place all the javabean to ArrayList.In Action,I use the "request.setAttribute("lovetable",articlelist) to set request to jsp page.
I want to pass a parameter "id" use the hyperlink so I can get the parameter when I click the hyperlink.
But how to use html:link to display it?
I use <html:link action="viewtopic.do" paramId="id" paramName="lovetable" paramProperty="id"/>,it can't work and Tomcat report error :
org.apache.jasper.JasperException: No getter method for property id of bean lovetable
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:248)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
The lovetable is a ArrayList and it don't have a getter or setter method.
How to use it pass parameter? :( ThksThank you.
I use the bean:define successful.And display all the data to jsp.My jsp code is:
<logic:iterate id="love" name="lovetable">
<bean:define id="idbean" name="love"/>
<tr bgcolor="<%=color%>">
<td><bean:write name="love" property="id"/></td>
<td><html:link forward="viewtopic" paramId="id" paramName="idbean" paramProperty="id"><bean:write name="love" property="title"/></html:link></td>
<td><bean:write name="love" property="name"/></td>
<td><bean:write name="love" property="time"/></td>
</tr>
</logic:iterate>
In Action : request.setAttribute("lovetable",articlelist)
ResutlSet rs=.............
List articlelist=new ArrayList();
while(rs.next()){
articlebean bean=new articlebean();
bean.setName(rs.getString("name"));
bean.setTitle(rs.getString("title"));
articlelist.add(bean);
The above code will work property.
The Tag "html:link" need bean to work other than arraylist so I iterate all the bean out.
The Tag "logic:iterate" need collection to work so I make Action return a List.
right?
Any idea? :)
Maybe you are looking for
-
Macbook Pro VGA adapter resolution issue
I have an Optoma projector that has been connected to my Lenovo laptop for the last 2 years. I have just decided to set my mac up to it, and had a mini display port to VGA adapter. The native resolution of my projector is 1280x800, yet when I plug in
-
Search Button in Transaction SM30
Good Morning, I want to know if it's possible to activate de search button in transaction SM30. What i mean is, when you call transaction SM30 and you choose to modify some data from a table, the search button (binoculars) is deactivated. It looks to
-
Problems with non-existent waveform cache...
I previously posted this: +I cannot open Final Cut. I have an error saying 'The Waveform Cache Files Folder does not have read/write access. Please select a new folder in the System Settings Dialog or correct the problem on disk'. Final Cut then proc
-
How do I get to talk to a live agent online about my account?
-
IMCEAMAILTO issue causing "Delivery has failed ...".
What started as a single user experiencing an issue sending emails to some addresses has started to become multiple users. In Outlook 2007, when a user does a reply to some emails the E-mail Type: changes from the normal SMTP to MAILTO and then when