11-18-2005 07:30 AM
11-21-2005 08:16 PM
11-22-2005 12:36 PM
Thanks for the info, but I can not find the NI-Motion Visual Basic Reference Help document that shows a short code example. Is this on the NI Web site or in the Flex CD? Also I havent seen the command: flex_read_adc16 or the flex_read_adc_rtn16. I must have an older referance manual. I'm still a bit confused....I'll work on it.
Thanks
peter
11-22-2005
05:28 PM
- last edited on
07-11-2025
09:19 AM
by
Content Cleaner
11-28-2005 01:59 PM
DJ L.,
I installed Motion v7.0 and lost the capability to initialize the flex6 in max. Max couldn't even see it. Even though I made sure legacy support was installed. Any Ideas? Should I uninstall v7.0 and reinstall v5.1.1?
peter
12-05-2005 03:36 PM
12-22-2005 12:57 PM
I have had success in reading the ADC on the FlexMotion. It looks like this:
Private Sub Read_ADC_Click()
abort = False
'Set the range of the ADC's +/-10vdc (+/-2048)
status = flex_set_adc_range(boardID, ADC, NIMC_ADC_BIPOLAR)
'This sets three ADC's active
status = flex_enable_adcs(boardID, 3, 255)
Do While (Cancel_ADC.Enabled = True)
'Valid addresses for adc are &H51 To &H58 (1-8)
status = flex_read_adc_rtn(boardID. &H51, returnData)
ADC_Window.Text = returnData
Refresh
DoEvents
If abort Then Exit Do Loop
End Sub
It was the mix of ASCII and Hex that made it work..I still can not make the FlexMotion work under v7 Motion Drivers. I still use V5.1.1 so making it work under Component Works 8 and VB.net might not be possible. We invested quite a bit in these flex boards to bad their not supported under new software..they still work great.
Thanks
peter
12-22-2005 01:13 PM
Just a thought...Has anyone recompiled FLEXMOTN.BAS, MotnCnst.bas, and MotnErr.bas under VB.net
Thanks peter