How can i write a vi in using parallel port for digital inputs
Dear all,
i am a beginner user of LabVIEW and i want to write a vi in using parallel port for digital I/O. After reading the article "Using the Parallel Port in LabVIEW
" and download the parallel.zip, i know how to write the vi for output, but i still don't know how to write the input one.i've try to use a Inport.vi to test, but nothing change when i set pin2-9 to high. (my computer:win2K & LabVIEW 6.1)
Can anybody teach me how to write it?
Can anyone write the vi for me too?
Thanks all!
p.s.i've already install the "accessHW.exe"
Are you using VISA or the accessHW VIs? You may need to goto the bios and set the parallel port to run in spp mode or standard mode. This is the simpliest configuration and where you should start.
As far as writing the VI goes, just copy the diagram out of the tutorial you mentioned.
Similar Messages
-
How can i write the below code using "For all entries"
Hi
How can we write the below code using "for all entries" and need to avoid joins...
Please help
SELECT aaufnr aobjnr aauart atxjcd a~pspel
agstrp awerks carbpl cwerks
INTO TABLE t_caufv
FROM caufv AS a
INNER JOIN afih AS b
ON aaufnr = baufnr
INNER JOIN crhd AS c
ON bgewrk = cobjid
AND c~objty = 'D'
WHERE ( a~pspel = space
OR a~txjcd = space
OR NOT a~objnr IN
( select OBJNR from COBRB AS e
WHERE objnr = a~objnr ) )
AND a~werks IN s_plant
AND a~auart IN s_wtype
AND NOT a~objnr IN
( select OBJNR from JEST AS d
WHERE objnr = a~objnr
AND ( dstat = 'A0081'OR dstat = 'A0018' )
AND d~inact 'X' ).
Reward points for all helpfull answers
Thanks
Ammi.Hi,
SELECT objnr objid aufnr
from afih
into table t_afih.
SELECT objnr
from JEST
into table t_JEST
where stat = 'A0045'
OR stat = 'A0046'
AND inact 'X'.
SELECT objnr
from COBRB
into table t_cobrb.
SELECT arbpl werks objid objty
from crhd
INTO table it_crhd
FOR ALL ENTRIES IN it_afih
WHERE objty eq 'D'
AND gewrk = it_afih-objid.
SELECT aufnr objnr auart txjcd pspel gstrp werks aufnr
FROM caufv
INTO table t_caufv
FOR ALL ENTRIES IN it_afih
WHERE aufnr = it_afih-aufnr
And pspel = ' '
AND txjcd = ' '
ANd objnr ne it_crhd-objnr
AND auart in s_wtype
AND werks in s_plant.
AND objnr ne it_jest-objnr.
dont use NE in the select statements, it may effect performance also. Instead use if statements inside
loops.
loop at t_caufv.
read table it_chrd............
if t_caufv-objnr ne it_chrd-objnr.
read table it_jest..........
if if t_caufv-objnr ne it_jest-objnr.
(proceed further).
endif.
endif.
endloop.
hope this helps.
Reward if useful.
Regards,
Anu -
How can I write bits through the COM1 serial port?
I'm trying to write bits through the serial port COM1.
Labview "Write VI" only writes everything in string. It seems. How can I write bit by bit through COM1?
Thank you,
VanSerial transmission (COM port) protocol requires sending a group of bits at one time. You cannot just send one bit. Standard COM port settings must be either 7 or 8 data bits, 1 or 2 stop bits, etc... You have to group your bits 7 or 8 at a time. You could probably send a 0 byte or a 1 byte. This would be like sending 0000 0000 for a low bit and 0000 0001 for a high bit. Your receiving end would have to know how to interpret what you are sending if you choose this method. Of course you have to convert your byte into a string before sending to COM port. Wire a U8 data type to a Build Array input. Then wire the array output to a Byte Array to String input. The output of this function will be the character representation of your byte suitable for sending acr
oss a serial port.
- tbob
Inventor of the WORM Global -
How can I get Colorful Tabs to use separate colors for 2 different gmail accounts?
Running Firefox 29.0.1 on iMac OSX 10.9.3. I have multiple Google accounts: 2 gmail accounts and 1 Google Calendar. The Add-on Colorful Tabs will allow me to choose a color for one gmail account , but it also uses that same color for the other gmail account. How can I get different colors on 2 different gmail accounts?
Also, Colorful Tabs is also doing the same thing for my homepage (google.com) and my google calendar. How can I get different colors on these 2?I personally use "Fabtabs" for my mozilla FireFox.
https://addons.mozilla.org/en-US/firefox/addon/fabtabs/
This add-on doesn't have any issues like that when I use it. -
How can I do a Header Group Using Group columns for WD ALV tables
Hi
I want to group columns into a header group.
Eg:
from Date
Availability
to date
Any ideas if it is possible with WD ALV tables?Hi,
Try to use the if_salv_wd_field_settings for the column grouping of the Model object.
Also check the class CL_SALV_WD_FIELD.
Regards,
Lekha. -
How can i write the bellow code using field symbols
data : it_mara type table of mara.
select * from mara
into it_mara.
delete it_mara where matnr = '100-100'
and meins = 'KG'.
if i do the same by using field symbols
i am getting data into <it_mara>
but
delete <it_mara> where matnr = '100-100'
and meins = 'KG'.
is showing syntax error
how to correct the error ?I think, DELETE does not allows to dynamically define the logical expression for the WHERE clausule.
Have you tried by filtering data in SELECT statement??
Something like:
if dataBase = 'MARA'.
append 'MATNR <> '100-100'' to Itab_Where[].
append 'AND MEINS <> 'KG'' to Itab_Where[].
endIf.
select * from (dataBase) where (Itab_Where) into table <my_table>.
this is possible, but I don't know if this fits your requirements. -
How can I write a script or create a macro for gaming.
Now I know this may be a petty and or silly question for most apple users but I am going to throw it out there anyway. I play an online game called Battle Pirates. When you make an attack you have up to 5 ships to control. I am looking for a way to control multiple ships with a "macro" or "script" and using only 1 key. For example: Select ship 2, 3, and 4 while leaving ship 1 and 5 alone. Yea I know it is childish but indulge me. Hahaha.
I know you can write Macros with Windows and you can even use something called "Auto Hotkey". I just wanted to see if anyone knew of a way to do this with what Apple already has in place. What I have commonly found out with Apple products is that since I have come from being a Windows user to Apple, I usually overthink the process. LOL. Mac's are soooooo much easier....if you know where to start.
Any help would be greatly appreciated! By the way, I have read the tutorial on "Script Editor" but I am having trouble understanding it mostly because you kinda would have to have SOME programming knowledge. Obviously I lack in that area. Thanks for bearing with me.Can you expand on that? How do you use automator in your game? Can you give me a rough idea of how and what you do with it? I have watched a tutorial on Automator and it seems more useful for documents.
-
Hello, i'm using a NI PCI-6503 (with CB50LP accesory) to write digital patterns to one of the output ports. Can i do it directly from NIDAQ7.0?
I know some Visual Basic 6.0 functions to configure a par as output and to write a pattern to a port, but i don't know how run it.
I've read some examples from "Help" (C:\Program Files\National Instruments\NI-DAQ\Examples\VBasic\Do) but I can't measuring TTL levels on my CB50LP accesory.
Thanks!!Hello,
What is your buffer size ? The buffer should be 0 or greater than 2. You can get this error if your buffer size is equal to 1.
Regards,
Isabelle
National Instruments France
Isabelle
Ingénieur d'applications
National Instruments France -
The airport time capsule 2TB is only connecting to the web when performing a backup, it just started doing this how do I fix it?
That is a weird one.. never heard of it drop out except doing backups.
Reset the TC to factory settings.
The Factory Reset universal
Unplug your TC/AE. Hold in reset. and power the TC/AE back on.. all without releasing reset and keep holding in for about 10sec. The time is not important.. it is the front LED rapid flashing that indicates you are in factory mode.
Release reset.
If it doesn’t flash rapidly you have released reset at some point and try again.
Be Gentle! Feel the switch click on. It has a positive feel.. add no more pressure after that.
TC/AE will reboot after a couple of minutes with default factory settings and will wipe out previous configurations.
No files are deleted on the hard disk.. No reset of the TC deletes files.. to do that you use erase from the airport utility.
Redo the setup with all short names no spaces and pure alphanumeric.
It should then work fine.. but I need more info if you still have problems.
What modem? Is it a router?
How is the TC connected?
Is the computer running Mavericks? -
How can i write a XML file with oracle data ?
How can i write a XML file using PL/SQL.
Can i do as follows.
1.Open a file using UTL_FILE.FOPEN(LC_DIR_LOC,'abc.xml','W') ;
2.write all the required tag and value using UTL.put_line
that is enough. Is not, please guide me to write.
gkHaving Oracle 9i.
One more doubt. In the speck, some constand values are there, When i write the same into file, How can i write ?.
1. l_str := ' "E27" '
or
2. l_str := ' E27 '
UTL_FILE.PUT_LINE(L_FILE_POI,l_str,TRUE);
1 case : in XML file : "E27"
In 2 case : E27
When we write a XML file through editors , we have to define the constant within quote . is it?
Which one can i use ? Or any other way is there ..
Thanks and Regards
gopi -
How can i write a Pl/sql Programme for a calender
hi all,
How can i write Pl/sql programme (may be function) for a calendar ,like after the programme is created if call the function at the prompt and give the year 2099 so on, it should display the result with all the 12 months (months and days.)
Please email the answer to
[email protected]
or send the link for the answers.
ThxWell, you can start off by reviewing the SYSDATE command and the TO_DATE and TO_CHAR functions. Also, review addmonths etc.
http://www.unix.org.ua/orelly/oracle/prog2/ch14_01.htm
Cheers -
How can I see the status of Rejected Documents sent for Approval from KM
I have a folder which is Approval Enabled. Now on sending a document to the approver ,if he rejects it from UWL ,how can i see it in KM ? Thank you for any input provided in advance . In UWL I cannot see it .
You can see if a document is rejected from KM folder in which the document is there .From the document level(which you have sent) click on the arrow and select Details . A new Window opens up .Now go to Actions>>approval .You will see the name of the approver who has rejected your document .Now you can resend it or skip it . This is how you do it .
-
How can i write the floats value in Unitronics vision230 plc using modbus Ethernet
How can i write the Float value in unitronics Vision230 PLC usinsg modbus ethernet (MB Ethernet Master Query.vi) I read and write the 32 bit register, for e.g i want to write the 23.45 value on 2nd add. of MF. And MF register is 32 bit register. I read and write the 32 bit register.
Narendra.
Solved!
Go to Solution.Thanks Amit for your solution but i can not use the string to write the value because MB Ethernet master Query.vi only accepet the integer value its not take string values or any other i.e floats values etc.....otherwise i have no problem to write or read the 32 bit register values , only problem is that the MB Ethernet master Query.vi only accept the integer value there4 how can write the float value.
Narendra
Message Edited by Artemistech on 01-30-2009 11:06 PM -
How can i write the data to PIC16F819 using labview?
how can i write the data to PIC16F819 using labview?
Need help!
im using labview in gathering the datas that i need to right to the PIC, then after getting all the datas i am using another program which is ICD2 in order to write it to the PIC. Is it possible to do this task through LV? coz we are spending a lot of time transferring the data from LV to ICD2 manually and its prone to mistake as well.
any suggestion?
thanks,
PedzLabVIEW does not currently have a built-in method to communicate with
i2c, but there are other vendors that sell devices to communicate in
this manner with LabVIEW development kits. One that I know of is
from MCC... here is a link: http://www.mcc-us.com
They sell a device called iPort, and then you can buy LabVIEW VIs to go with it. I hope this is helpful to you!
john m -
How can I write an iBook review without using iTunes?
I have a problem on how can I write a review on an iPad book or iBook without using iTunes. Some of my friends are also asking me on how can I write a review on an iBook without using iTunes. I am on dilemma and I need your help to solve this problem. I hope you can respond soon if possible. Thanks.
Simple, you cannot. You can only post reviews through the store front gateway.
Well, actually, you can write the review in any editor or tool you wish to use, but to post it, you have to login to the store account. If you do not have an AppleID and store account, you cannot post a review.
Maybe you are looking for
-
Satellite P50-B-103 - Connect my HDMI output to a VGA monitor
Hello everyone, I have just bought a satellite *P50-B-103*, which only has a HDMI output and I would like to connect it to an external VGA monitor. I thought I only need to buy a HDMI - VGA converter but the buyer said to me that Toshiba, unless this
-
Oracle XE - UTL_FILE - shared printer
Hi, I am trying to recreate a production environment on XE. I am trying to send a print command to a shared printer (share name label01). The machine running the XE database is called cobrademo. When I try the following command utl_file.fopen('\\cobr
-
Ce510 proxy ftp on port 8080 is not doing cache
why ce510 configured as a proxy ftp on port 8080 is not doing cache for transfered files? Is that a limitation?
-
Adobe premiere cs6 crash with AMD A8-5600k APU whit Radeon HD
Hello everyone, I am writing because every time I do a rendering with adobe premiere cs6 me pc crashes, blue screen error, or turns off and ariavvia from nothing .. and I noticed that this problem from me especially when laoro with avchd files (. mts
-
DFM 3.0.3 - LMS 3.1
Is it possible to delete all alerts (by selecting all) without having to ack. each and everyone manually. I was told by TAC when I had DFM 3.0 that it would be possible, but I still cannot do it. thks