LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I program more than one VI in one main VI?

Sorry, guess the attachment did not go with the e-mail.
 
 
Download All
0 Kudos
Message 11 of 29
(1,253 Views)

Hi Kenny:

 

I cannot seem to get the attachment onto the e-mail.  I will try again.

 

 

0 Kudos
Message 12 of 29
(1,251 Views)
The attachement did go through, I just posted the same time you did.
 
It sppears that the step value array is still not populated.  what values do you have in the array for the step values??
 
Kenny

0 Kudos
Message 13 of 29
(1,249 Views)

Hi have them populated from 0 through 8.  The AO Update does update the values.  I have a wave form chart monitoring it.  Guess the problem I have is updating the channel with the values.  Guess, I will send you the modified VI.

 

Thanks for the help.

 

Mizar

0 Kudos
Message 14 of 29
(1,249 Views)
Why you add that AO Update Channel function? The AO Single Update is enough. You also don't have a channel list wired to the function you added. I think that all you managed to do was reset the analog output after the AO Single Update is called. You might want to read the shipping document called "LabVIEW Measurements Manual". In your version of LabVIEW it can be gotten by going Help>Search the LabVIEW Bookshelf.
0 Kudos
Message 15 of 29
(1,237 Views)
I know that it should nto matter, but try changing the opcode to 1 instead of 0 on the single update.  Also, make an indicator for the boolean data written on the update vi to verify that the data was actually written to the device.
 
I do not have a module handy, so i cant test it myself.
 
Kenny
Kenny

0 Kudos
Message 16 of 29
(1,236 Views)

Hi Dennis:

 

Thanks for the update.  I have remodified the VI without the AO channel update function.  However, the channel list is already wired into the AO config.  Guess, I am missing something.  I am reading the document you had indicated.

 

Thanks,

 

Mizar.

 

P.S.  I have enclosed the modified VI

0 Kudos
Message 17 of 29
(1,228 Views)

Stop doing that. You just added a second analog read when there already was one there!

My suggestion is for you go to the very beginning and not worry about LabVIEW for a little while. Go to MAX (Measurement & Automation Explorer) and run the test panel for your board. Set an output voltage and see if you can measure it with an external DMM. Then, apply a know voltage to the analog inputs you want to use and run the test panel for that. See if you are measuring the applied voltage. If all looks correct, go back to LabVIEW and run the example. While the VI runs, again monitor the voltage output to see if it's working there. Then look at the results from the analog read. The array indicator in the original example will show the results. Make sure you have added all of the inputs channels to the front panel channel control. The default is only channel 0.

0 Kudos
Message 18 of 29
(1,222 Views)

Hi Dennis:

 

I did what you had suggested.  The analog output channels work correctly when the test panel for the PCI6052E is run.  The same holds good for the AI channel.  However it does not seem to cooperate with the example in labview.  I am absolutely sure that all the channels are listed in the front panel of the VI.  Also, I have populated the voltages to be used for the AO channel.  When I run the VI, I get the following error message:  AI Buffer Read (-10368).

 

Thanks,

 

Mizar.

0 Kudos
Message 19 of 29
(1,211 Views)
That error code doesn't make much sense to me. I thought that was only associated with the old serial port driver. Hve you tried running any of the simple shipping examples to see if you get the error there? I could have easily missed something as I've only used DAQmx in the past few years.
0 Kudos
Message 20 of 29
(1,205 Views)