LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Help making a event counter for beer fermentation

All that shows up is Analog output.
0 Kudos
Message 21 of 83
(2,127 Views)
Hmmmm...  Maybe you don't have your DAQ drivers installed properly.  But if it works from MAX, then it must be installed.  Anyway, on the block diagram, go to the functions palette and click on NI Measurements - Data Aquisition - Digital I/O - DIO Config.vi.  Bring this vi to your block diagram.  Wire the inputs to the config vi, device number (get from MAX), group (use 0), port list (array of strings - each element is a port number - start with one element of 0), direction (right click and select create constant - select output).  From the same functions palette, bring the DIO Write vi onto your block diagram.  Wire the Task ID output of the config vi to the Task ID input of the DIO Write vi.  Wire Error Out to Error In.  Wire in the digital data (an array of numerics).  This will send the data out of the DIO port.  You can read the DIO inputs by configuring the input ports with DIO Config, then using DIO Read vi.  At the end of your program use DIO Clear vi to clear all buffers.  Play with it by creating a small example vi to write some outputs, use LEDs or a DMM to verify that the correct lines go high and low.  You can also experiment with reading the DIO by connecting the input lines to a 5 volt source or ground, and using a vi to read the values, then display them.  Hope this gets you started.  Here is an example using the 653x DIO.  This example uses the low level function Port Config instead of the higher level DIO Config.  You can wire your DAQ Channel icon to the Port Config input.  Study the example, but it might be easier to use higher level functions before going to lower level functions.
- tbob

Inventor of the WORM Global
0 Kudos
Message 22 of 83
(2,126 Views)

No luck its empty. When I installed labview it asked for the driver disk which I dont have. The one I do have gives an error about an .ini file.

Do you know where I can get this CD?

0 Kudos
Message 23 of 83
(2,128 Views)

Chilly

 

Can you help?

0 Kudos
Message 24 of 83
(2,127 Views)

All Im asking is for someone to tell me where to pu the input on the vi. I dont know Labview nor do I really have the time to. Im a hardware kind of guy.

Please help

0 Kudos
Message 25 of 83
(2,126 Views)

Hello Again

 

Sorry for all the posts. I now have gotten the card to talk to the software (I think). At least it will show the channel I made from MAX. But it still isnt doing what the switch did on the original vi.

 

Chilly if you can spot my error with the attached vi. I would be greatfull.

0 Kudos
Message 26 of 83
(2,123 Views)
Sorry here is the vi
0 Kudos
Message 27 of 83
(2,124 Views)

Hello again

 

I have beer fermenting right now and would like to get this program going. I will make 5 gallons of beer (any type) (Pittsburgh area):smileywink: for someone to fix the vi so it will work with the digital input from my DAQ card.

 

Thanks

0 Kudos
Message 28 of 83
(2,119 Views)

Hello 3mix !

How impatient !!! 😄

Remember that we may be busy, that there is some time shift between different parts of the world, and that answers may take some time...

 

Just to keep you going, try the attached vi, and tell me what happens. Don't expect an answer within the next 12 hours, since I'm out again !

 

Message Edited by chilly charly on 07-10-2005 07:06 AM

Chilly Charly    (aka CC)
0 Kudos
Message 29 of 83
(2,113 Views)

Chilly

 

Thanks and sorry.

 

There isnt a vi attached.

 

Thanks

0 Kudos
Message 30 of 83
(2,114 Views)