NI Home
Cart Cart | Help
Hello Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI
You are here: 
NI Home > NI Developer Zone > NI Discussion Forums


Reply
Member
nvhung.mctt
Posts: 19
0 Kudos

Labview with cfp -DO- 403

Hi

 

I have two small programs to test cfp - DO - 403 module in LabView.

 

The first programing,I get it from exmaple from NI. It work ok with this module.

 

The second programming, I create it with DO share, but i does not work, I don't see the error.

 

Please download and fix it help me.

 

 

 

Thanks
Nguyen Van Hung

Member
nvhung.mctt
Posts: 19
0 Kudos

Re: Labview with cfp -DO- 403

Hi,

 

I have the same issues with cfp - AO- 200

 

Please support me to fix it

 

Thanks

Nguyen Van Hung

 

Knight of NI
RavensFan
Posts: 13,225
0 Kudos

Re: Labview with cfp -DO- 403

Build an array of fieldpoint IO references.  Put the Fieldpoint write into a For Loop.  Auto index on the fieldpoint IO array and your data array to write a value to each IO point in turn.

Member
nvhung.mctt
Posts: 19
0 Kudos

Re: Labview with cfp -DO- 403

Hi Raven,

 

I work ok with Digital ouput but not ok with Analog output as your guide.

 

Thanks

Nguyen Van Hung

Knight of NI
RavensFan
Posts: 13,225
0 Kudos

Re: Labview with cfp -DO- 403

It should work equally well with both.

 

Post your code.

Member
nvhung.mctt
Posts: 19
0 Kudos

Re: Labview with cfp -DO- 403

Knight of NI
RavensFan
Posts: 13,225
0 Kudos

Re: Labview with cfp -DO- 403

[ Edited ]

I have never used the "All" channel, at least not for writing values out.  So  I don't know if there are any gotchas with that.

 

One thing I do notice is that for your first program, you are writing out an array of 8 elements.  But for the 2nd program, you are only writing out an array of 3 elements although it is an 8 channel device.  (Put a probe or indicator on that error wire to see if it says anything).

 

My suggestion was to create an array of the Fieldpoint I/O points and iterate through them in a loop.

 

 

Member
nvhung.mctt
Posts: 19
0 Kudos

Re: Labview with cfp -DO- 403

Hi Ravens,

 

This is good method.

 

Thanks for your support.

 

Best Regards,

Nguyen Van Hung

By using this web site, you accept the Terms of Use for this web site. Please read these Terms of Use carefully before using any part of this site. Please go here for information on ni.com's copyright infringement policy.
My Profile | Privacy | Legal | Contact NI © 2011 National Instruments Corporation. All rights reserved.    |    E-Mail this Page E-Mail this Page