LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

input inverted

i've got the 4351 and 6070e cards and work with the traditional daq.
the 4351 works successfully. but the 6070e inverts the output signal. if the virtual channel is inverted or not, it doesn't matter. the result is the same. there are always +5V at the output.
0 Kudos
Message 1 of 2
(2,466 Views)
Be careful when you do this. You might want to enable highlighting, and see which Port Config VI executes first.

My gut feeling, from experience, is that you're seeing a Port Config problem, because the Port Config VI isn't set up as re-entrant.

In simplist terms, your Port Config for the 6070e probably executes first; then the Port Config for the 4351. Since the Port Config VI isn't re-entrant, it "resets" when it is called the second time, and the Port Config for the 6070e is lost.

So, there's 2 ways to handle this. One is to open the Port Config VI, right click on its icon on the upper right, select VI properties, select Execution from the dropdown list, and select the "re-entrant execution" option -- then save the VI. Keep in mind that this w
ill save this VI in your LABVIEW directory, which means ALL programs which call this VI will now call this modified version, unless you do a Save As... and put it somewhere else.

Another way is to force execution in a certain sequence. For example, you can put a sequence structure around your entire 6070e port config, write, and read VIs. Then, wire the error output from the Port Read VI for the 4351 to the edge of the sequence structure...and don't wire it anywhere else. That's it.

What this does is force all of the 4351 port calls to execute first, and the sequence structure can't execute until the error out from the Port Read from the 4351 is done...so that solves your problem as well.

Give that a try, and see if that helps.

Mark
0 Kudos
Message 2 of 2
(2,466 Views)