Digital I/O

cancel
Showing results for 
Search instead for 
Did you mean: 

Building an Application that reads html filename

I want to build an application that displays html files on the screen and when the user presses a button that gives a cue to the PCI-DIO-96 to give an o/p to external connected modular distribution panel that uses shift registers and from the panel (that's fed from a DC P.S.) to some bulbs. each html filename will be corresponding to a specific bulb.
0 Kudos
Message 1 of 5
(3,534 Views)
Hello,

Are you using LabVIEW? If not, what development environment are you using? Are you wanting to have the DIO-96 card be on the user machine or access it remotely? Can you just install and run an EXE file from the html page? What environment will you be doing the web publishing from?

Depending on your environment, there are many example programs that come with the environment or are available for free on our website. It is likely that one of these will partially or entirely fit your needs as you get started.
I would suggest getting started at the NI Example Code Library at http://www.ni.com/devzone/dev_exchange/ex_search.htm

Please let me know if you would like further assistance. Have a great day!

Liz F.
National Instruments
Message 2 of 5
(3,534 Views)
Hi Liz,
Let me give you some details about me needs, i'm new to using Labview and i want to use it to build a very simple one button application, the button will be at the top of the screen and there will be an (html) file displayed on the screen, when pressing the button, it will take the file name (which is a number) and compare the name to a list in (.def) file which defines what file is related to which port on a (PCI-DIO-96) card, when finding the filename in the list and getting the port number there will be some data to be written to this port as an output.
That's the application i wanna build.
Regarding the DIO-96 it will be on a machine that will be considered as a server and only one client is connected to that server and it will be running the s
ame application. the application that will be installed will run automatically when starting up the PC and it calls the html file to be displayed. The EXE file will be installed permenantly on the PC and there is no remote access.
I hope that clarifies the issue.
Thanks
0 Kudos
Message 3 of 5
(3,534 Views)
Hello Taher,

I apologize for the long delay in responding to your support request. We've had a restructuring and I unfortunately misplaced our thread in the shuffle.

There are a lot of great resources for each portion of the program you are wanting to develop. It sounds like you have several components:
1)displaying an HTML file
2)conditional logic
3)digital output to DIO-96

You could display the HTML file in an embedded ActiveX control with a web browser (like Internet Explorer), if you are using Windows. There are several examples in LabVIEW that can help you do this, and you might take a look at the example at the following link:
http://sine.ni.com/apps/we/niepd_web_display.display_epd4?p_guid=B123AE0CB9AD111EE034080020E74861&p_nod
e=DZ52051


To accomplish the conditional logic that you need, you will probably want to use a loop and/or a case structure to determine which output port to pass to. To learn more about these structures, navigate to Help >> LabVIEW Bookshelf, and look at the Getting Started with LabVIEW manual. You can also find some great examples that use these structures by going to Help >> Find Examples and navigating to Fundamentals >> Loops and Structures.

The last requirement of your program, writing to the digital lines of your DIO card, offers a lot of possibilities. The best place to look when getting started with this type of program is again, to the example code. If you go to Help >> Find Examples, and navigate to Hardware Input and Output >> Traditional DAQ >> Digital Input and Output, there are quite a number of pre-written, working applications that you can start from.

I hope this helps! Please let me know if you would like help on any specific aspect of your application.
Good luck!

Liz F
National Instruments
0 Kudos
Message 4 of 5
(3,534 Views)
Hi Liz,
Long Time 🙂
I made a good progress regarding my application, but now i need to permanently configure ports 0 to 9 of PCI-DIO-96 as Digital O/P and ports 10, 11 as Digital I/P. Any Idea how to do it??
0 Kudos
Message 5 of 5
(3,534 Views)