Motion Control and Motor Drives

cancel
Showing results for 
Search instead for 
Did you mean: 

DIO output of 7334

Hi
 
I require to genererate 6 independent and continuousTTL wave forms from the auxiliary DIO lines of the 7334. I have attached a code (for one such wave form) from which I hope to output a  digital waveform from bit 0 of port 1 of the controller . Is this possible? My code has an error. Can some one advice me on this.
0 Kudos
Message 1 of 7
(4,263 Views)
Hi,
  I'm assuming that you're using LabVIEW 7.1 (as per the previous post here :
http://forums.ni.com/ni/board/message?board.id=250&message.id=24176
)

The error is because the first item in your port direction cluster is an array. It needs to be a single True/False (depending on direction) for port zero.

If IO Polarity Bit 0 is TRUE (default) the bit is set to active low/active open. If it is FALSE the bit is set to active high/active closed.

You're trying to set it to an array of booleans currently based on the data you want to output - that's the wrong VI to be putting it to.

The MOMO vi is the actual point where the data values are written out - so you'd need to set these on a looping basis to match your data out using software timing to get the actual pattern out, element by element

Hope that helps

Sacha Emery
National Instruments (UK)

 

 

// it takes almost no time to rate an answer Smiley Wink
0 Kudos
Message 2 of 7
(4,246 Views)
Hi
 
Thanks for your advice. I am using Labview 7.1 with Ni motion (provided with the 7330). I have modified the code ( attached). Is it correct. I would appreciate if you can test it for me.
 
Thanks
 
Mal
0 Kudos
Message 3 of 7
(4,240 Views)

Hi

 

In addition to my above code will this one work? I have a problem with checking my outputs so I would appreciate if you can check this for me.

 

Thanks

Mal

0 Kudos
Message 4 of 7
(4,221 Views)
Hi Mal,

I have not had a chance to look at your code yet. However I could not test this for you anyway as our motion boards are on loan to customers at the moment, so I do not have the hardware.

Regards
JamesC
NIUK and Ireland

0 Kudos
Message 5 of 7
(4,164 Views)

Hi

 

I would appreciate if you can test my programme or check whether it is correct.

 

Thanks

 

Mal

0 Kudos
Message 6 of 7
(4,035 Views)
Mal,

I still have no hardware but looking at the VIs, The top level looks like it should work fine, however the sub VI you use Digital SubVI this always returns False, so you never get a change on the digital output.

I would look into that VI as your issue, and you can test the output without hardware as it is just software calculation.

Regards
JamesC
NIUK and Ireland

0 Kudos
Message 7 of 7
(4,013 Views)